/* 
* Estilos principales para el sitio de servicios de contabilidad
* Colores principales:
* - Fondo principal: #FFF2E6 (crema-melocotón)
* - Acentos: #2C3E91 (cobalto profundo)
* - Texto: #222222 (negro antracita)
* - Botones: #33C59C (verde menta)
* - Hover botones: #FFF700 (amarillo limón)
*/

/* Reseteo y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* Para facilitar el cálculo con rem (1rem = 10px) */
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #222222;
    background-color: #FFF2E6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2C3E91;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #33C59C;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: #2C3E91;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.4rem;
    background-color: #33C59C;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

/* Secciones */
.section {
    padding: 8rem 0;
}

.bg-light {
    background-color: #fff;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 5rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    font-size: 1.6rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #33C59C;
    color: #fff;
}

.btn-primary:hover {
    background-color: #FFF700;
    color: #222222;
}

.btn-secondary {
    background-color: #2C3E91;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #33C59C;
}

/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 242, 230, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    width: 4rem;
    height: 4rem;
    margin-right: 1rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #2C3E91;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2.5rem;
}

.nav-menu a {
    font-size: 1.6rem;
    font-weight: 600;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 0.2rem;
    background-color: #33C59C;
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

/* Menú móvil (con checkbox hack) */
.menu-toggle {
    display: none;
}

.menu-btn {
    display: none;
    cursor: pointer;
    width: 3rem;
    height: 2.4rem;
    position: relative;
    z-index: 2;
}

.menu-btn span {
    display: block;
    position: absolute;
    height: 0.3rem;
    width: 100%;
    background-color: #2C3E91;
    border-radius: 0.3rem;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 1rem; }
.menu-btn span:nth-child(3) { top: 2rem; }

.menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    top: 1rem;
    transform: rotate(135deg);
}

.menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
    left: -6rem;
}

.menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    top: 1rem;
    transform: rotate(-135deg);
}

/* Hero Section */
.hero-section {
    padding: 17rem 0 10rem;
    background-color: #FFF2E6;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 70rem;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-content h1,
.hero-content p {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.text-center {
    text-align: center;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.service-card img {
    height: 20rem;
    object-fit: cover;
}

.service-card h3, 
.service-card p,
.service-card ul,
.service-card a {
    padding: 0 2rem;
}

.service-card h3 {
    margin-top: 2rem;
}

.service-card ul.service-list {
    margin-bottom: 2rem;
    list-style-position: inside;
    padding-left: 0;
    text-align: left;
}

.service-card .btn-container {
    padding: 0 2rem 2rem;
    text-align: center;
}

.service-card .btn {
    margin: 0 auto;
    display: inline-block;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem 2rem;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    margin: 0 auto 2rem;
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(44, 62, 145, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background-color: rgba(44, 62, 145, 0.2);
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.testimonial {
    flex: 1 1 30rem;
    background-color: #fff;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 8rem;
    color: rgba(44, 62, 145, 0.1);
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 2rem;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    opacity: 0.7;
    font-size: 1.4rem;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1 1 40rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item svg {
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-form {
    flex: 1 1 50rem;
    background-color: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #33C59C;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 1rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* FAQ Section */
.faq-container {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item h3 {
    padding: 2rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    font-size: 1.8rem;
}

.faq-item h3:after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
}

.faq-item.active h3:after {
    content: '-';
}

.faq-answer {
    padding: 0 2rem 2rem;
}

/* Map Section */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.map-info {
    margin-top: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    max-width: 30rem;
}

.map-info h3 {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #2C3E91;
    color: #fff;
    padding: 6rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-column p,
.footer-column address {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: #33C59C;
}

.copyright {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 145, 0.95);
    color: #fff;
    padding: 2rem;
    z-index: 1000;
    box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    margin-right: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Gracias page */
.thanks-container {
    text-align: center;
    padding: 15rem 2rem;
    max-width: 70rem;
    margin: 0 auto;
}

.thanks-icon {
    width: 10rem;
    height: 10rem;
    background-color: #33C59C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem;
}

.thanks-icon svg {
    width: 5rem;
    height: 5rem;
}

/* Policy Pages */
.policy-content {
    max-width: 80rem;
    margin: 12rem auto 6rem;
    padding: 0 2rem;
}

.policy-content h1 {
    margin-bottom: 4rem;
}

.policy-content h2 {
    text-align: left;
    margin-top: 4rem;
}

.policy-content h2:after {
    left: 0;
    transform: none;
}

.policy-content p {
    margin-bottom: 2rem;
}

.policy-content ul, 
.policy-content ol {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

/* Media Queries para Responsividad */
@media (max-width: 991px) {
    html {
        font-size: 60%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 57.5%;
    }
    
    .menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 242, 230, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -0.5rem 0 2rem rgba(0, 0, 0, 0.1);
        padding: 5rem 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        right: 0;
    }
    
    .hero-section {
        padding: 15rem 0 6rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .nav-menu {
        width: 100%;
    }
    
    .benefits-grid {
        gap: 3rem 1rem;
    }
    
    .testimonial {
        padding: 2rem;
    }
    
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-text {
        margin-bottom: 2rem;
        margin-right: 0;
    }
} 