/* 
 * ESTILOS PARA DOMAIN - AUDITORÍA FINANCIERA
 * Paleta de colores:
 * - Principal: #0B132B (azul oscuro)
 * - Acento: #F75C03 (naranja)
 * - Fondo: #EEF0F2 (gris claro)
 * - Títulos: #1C2541 (grafito)
 * - Iconos/Líneas: #5BC0BE (turquesa pastel)
 */

/* Reset y estilos base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #EEF0F2;
    line-height: 1.6;
}

/* Anclajes para secciones - para que aparezcan por encima del header */
section[id] {
    scroll-margin-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1C2541;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: #0B132B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #F75C03;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #F75C03;
    color: white;
}

.btn-primary:hover {
    background-color: #e14d00;
    color: white;
}

.btn-secondary {
    background-color: #0B132B;
    color: white;
}

.btn-secondary:hover {
    background-color: #162549;
    color: white;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    font-size: 2rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #5BC0BE;
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0B132B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-menu ul {
    display: flex;
    gap: 1.5rem;
}

.main-menu a {
    padding: 0.5rem;
    font-weight: 600;
}

.btn-contact {
    color: #F75C03;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
}

/* Hero Section */
.hero {
    background-image: url('../img/SE8M00.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar contenido horizontalmente */
    text-align: center; /* Centrar texto */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 19, 43, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto; /* Centrar el contenedor */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar contenido verticalmente */
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Sobre Nosotros */
.about {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Altura igual para todas las tarjetas */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin: 1rem 0;
    color: #0B132B;
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Por qué elegirnos */
.features {
    background-color: #0B132B;
    color: white;
}

.features .section-title h2 {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    color: #5BC0BE;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: white;
}

/* Testimonios */
.testimonials {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #EEF0F2;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    position: absolute;
    left: -1.5rem;
    top: -1.5rem;
    color: #5BC0BE;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-info h4 {
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: #666;
}

/* FAQ */
.faq {
    background-color: #EEF0F2;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: white;
    padding: 1.5rem;
    font-weight: 600;
    display: block;
    position: relative;
    cursor: pointer;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #5BC0BE;
}

.faq-question:focus {
    outline: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: max-height 0.3s ease;
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #EEF0F2;
}

/* Hacemos un checkbox escondido para controlar el estado del FAQ */
.faq-toggle {
    display: none;
}

.faq-toggle:checked + .faq-question::after {
    content: '-';
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
}

/* Formulario de Contacto */
.contact {
    background-color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #EEF0F2;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.form-control:focus {
    border-color: #5BC0BE;
    outline: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.35rem;
}

/* Footer */
.site-footer {
    background-color: #0B132B;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact {
    margin-top: 1.5rem;
    line-height: 1.8;
}

.footer-contact a {
    color: #5BC0BE;
}

.footer-links h4, .footer-legal h4 {
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-links h4::after, .footer-legal h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #5BC0BE;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a, .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover, .footer-legal a:hover {
    color: #F75C03;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(11, 19, 43, 0.95);
    padding: 1rem;
    color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
}

.cookie-content a {
    color: #5BC0BE;
}

#accept-cookies {
    background-color: #F75C03;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#accept-cookies:hover {
    background-color: #e14d00;
}

/* Páginas legales */
.legal-page {
    padding: 4rem 0;
    background-color: white;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #EEF0F2;
}

.legal-content h1 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #5BC0BE;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* Página de gracias */
.thank-you {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #EEF0F2;
}

.thank-you-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 3.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(91, 192, 190, 0.2);
}

.thank-you-icon {
    margin-bottom: 1.5rem;
}

.thank-you h1 {
    color: #0B132B;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.thank-you p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-contact {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #EEF0F2;
    border-radius: 8px;
    width: 100%;
}

.thank-you-contact p {
    margin-bottom: 0.5rem;
}

.thank-you-contact a {
    color: #F75C03;
    font-weight: 600;
}

.thank-you .btn {
    margin-top: 1rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 2;
    }

    .menu-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #0B132B;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }

    .menu-icon span:nth-child(1) {
        top: 0;
    }

    .menu-icon span:nth-child(2) {
        top: 8px;
    }

    .menu-icon span:nth-child(3) {
        top: 16px;
    }

    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        top: 8px;
        transform: rotate(135deg);
    }

    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        top: 8px;
        transform: rotate(-135deg);
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: white;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle:checked ~ .main-menu {
        right: 0;
    }

    .main-menu ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-contact {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .feature-item, .service-card, .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .thank-you-content {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links h4::after, .footer-legal h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul, .footer-legal ul {
        align-items: center;
    }
    
    .thank-you-content {
        padding: 1.5rem;
    }
    
    .thank-you h1 {
        font-size: 1.8rem;
    }
} 