/* --- Variables y Reseteo Básico --- */
:root {
    --color-primary-dark: #1A1A2E; /* Azul noche profundo */
    --color-accent-blue: #007BFF; /* Azul logo */
    --color-accent-teal: #00A99D; /* Teal logo/acento */
    --color-text-light: #F0F0F0;
    --color-text-medium: #ADB5BD;
    --color-background-light: #2A2A3E; /* Un poco más claro que el primario para cards */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1140px;
    --section-padding: 60px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para REM */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text-light);
    background-color: var(--color-primary-dark);
    overflow-x: hidden; /* Prevenir scroll horizontal por animaciones */
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--section-padding);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; font-weight: 900; }
h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 2rem; text-align: center;}
h3 { font-size: 1.5rem; font-weight: 700; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-medium);
}

a {
    text-decoration: none;
    color: var(--color-accent-teal);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-accent-blue);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

.boton-center {
	position: absolute;
	left: 40%;
}


/* --- Botones CTA --- */
.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-accent-blue);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px; /* Botones más redondeados */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.cta-button:hover {
    background-color: var(--color-accent-teal);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 169, 157, 0.4);
}
.cta-button .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.cta-button:hover .arrow {
    transform: translateX(5px);
}


/* --- Navbar --- */
.main-header {
    background-color: rgba(26, 26, 46, 0.85); /* Semi-transparente */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px; /* Ajusta según tu logo */
    /* Si es SVG blanco, puedes usar filter: invert(1) si es necesario */
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--color-text-light);
    font-weight: 700;
    padding: 0.5rem 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-teal);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none; /* Oculto en desktop */
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 2rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden; /* Para animaciones de fondo */
	background: transparent;
    /*background: linear-gradient(135deg, var(--color-primary-dark) 0%, #23233B 100%); */ /* Gradiente sutil */
}
.hero-content h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-medium);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.hero-background-animation { /* Placeholder para animación JS */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
	overflow: hidden; /* Por si alguna partícula intenta salirse por error de cálculo */
    /* background-image: url('fondo.png'); */
}
.hero-background-animation canvas {
    display: block; /* Elimina espacio extra debajo del canvas */
    width: 100%;
    height: 100%;
}

/* --- Problema Section --- */
.problema-section h2 {
    text-align: left;
    margin-bottom: 1rem;
}
.problema-content {
    max-width: 800px;
}
.problema-content strong {
    color: var(--color-accent-teal);
}


/* --- Servicios Section --- */
.servicios-section {
    background-color: var(--color-background-light);
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.servicio-card {
    background-color: var(--color-primary-dark);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}
.servicio-icon {
    width: 60px; /* Ajusta según tus iconos */
    height: 60px;
    margin: 0 auto 1.5rem auto;
    /* background-color: var(--color-accent-blue); Pra iconos SVG simples se puede dar color así */
    /* -webkit-mask: url(icon.svg) no-repeat center;
            mask: url(icon.svg) no-repeat center; */
}
.servicio-card h3 {
    color: var(--color-accent-teal);
    margin-bottom: 0.5rem;
}

/* --- Porque Nosotros Section --- */
.porque-nosotros-section {
    /* background: var(--color-primary-dark); */
}
.porque-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 2rem auto 0 auto;
}
.porque-list li {
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-medium);
}
.porque-list .check-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
    /* background-color: var(--color-accent-teal); si es SVG */
}
.porque-list strong {
    color: var(--color-text-light);
}

/* --- Proceso Section --- */
.proceso-section {
    background-color: var(--color-background-light);
}
.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}
.proceso-paso {
    padding: 1.5rem;
}
.paso-numero {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
    box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.2);
}
.proceso-paso h3 {
    margin-bottom: 0.5rem;
    color: var(--color-accent-teal);
}

/* --- Testimonios Section --- */
.testimonios-slider { 
    display: flex; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 3rem;
	overflow-x: auto; /* Para scroll horizontal en mobile si hay muchos */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
	padding-bottom: 20px; /* Espacio para la barra de scroll */
	
}

.testimonio-card {
    background-color: var(--color-background-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.testimonio-img {
    max-width: 250px;
    height: 150px;
    object-fit: cover; 
    margin-bottom: 1.5rem;
    border: 4px solid var(--color-accent-teal);
}
.testimonio-card p {
    font-style: italic;
    color: var(--color-text-medium);
    margin-bottom: 1rem;
    flex-grow: 1; /* Para que todas las cards tengan la misma altura si el texto varía */
}
.testimonio-card h4 {
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}
.testimonio-card span {
    font-size: 0.9rem;
    color: var(--color-accent-blue);
}


/* --- CTA Reforzada Section --- */
.cta-reforzada-section {
    background-color: var(--color-accent-blue);
    color: #fff;
}
.cta-reforzada-section h2 {
    color: #fff;
}
.cta-reforzada-section p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.cta-reforzada-section .cta-button {
    background-color: #fff;
    color: var(--color-accent-blue);
    border-color: #fff;
}
.cta-reforzada-section .cta-button:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-dark);
}

/* --- Contacto Section --- */
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    background-color: var(--color-background-light);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-text-light);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #4A5568; /* Gris azulado */
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}
#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}
#form-status.success { color: var(--color-accent-teal); }
#form-status.error { color: #ff6b6b; }


/* --- Footer --- */
.main-footer {
    background-color: #121223; /* Un poco más oscuro que el primario */
    color: var(--color-text-medium);
    padding-top: 3rem;
    padding-bottom: 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}
.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}
.footer-links h4, .footer-contact h4 {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-links ul li {
    margin-bottom: 0.5rem;
}
.footer-links a, .footer-contact a {
    color: var(--color-text-medium);
}
.footer-links a:hover, .footer-contact a:hover {
    color: var(--color-accent-teal);
}
.copyright {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 1rem;
}
.copyright #currentYear {
    font-weight: bold;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
    .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar en móvil por defecto */
        flex-direction: column;
        position: absolute;
        top: 75px; /* Altura de la navbar */
        left: 0;
        width: 100%;
        background-color: var(--color-primary-dark);
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .nav-links.active {
        display: flex; /* Mostrar cuando está activo */
    }
    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }
    .nav-cta {
        display: none; /* Ocultar CTA de nav en móvil, ya está el del menú */
    }
    .mobile-menu-toggle {
        display: block;
    }

    .problema-section {
        text-align: center;
    }
    .problema-section h2 {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo-social, .footer-links, .footer-contact {
        margin-bottom: 1.5rem;
    }
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-content p { font-size: 1rem; }
    .cta-button { padding: 10px 20px; font-size: 0.9rem; }
    .hero-cta { padding: 12px 25px; font-size: 1rem; }

    .servicio-card, .testimonio-card, .contact-form {
        padding: 1.5rem;
    }
    .section-padding {
        padding: 40px 0;
    }
}

/* --- Animaciones AOS --- */
[data-aos] { /* Previene "flashing" de elementos antes de animar */
  opacity: 0;
  transition-property: transform, opacity;
}



/* --- FAQ Section --- */
.faq-section {
    background-color: var(--color-background-light); /* O el color de fondo que prefieras */
}

.faq-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--color-text-medium);
    font-size: 1.1rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-primary-dark);
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    overflow: hidden; /* Para que el borde redondeado funcione con la respuesta */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 25px;
    background-color: transparent; /* Hereda de faq-item o puedes darle uno específico */
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.15rem; /* Ajusta según tu gusto */
    font-weight: 700;
    color: var(--color-text-light);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Sutil hover */
}

.faq-question span {
    flex-grow: 1;
    margin-right: 15px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-teal); /* Color del icono */
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0; /* Para que no se encoja */
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    background-color: rgba(0,0,0,0.1); /* Un fondo ligeramente diferente para la respuesta */
}

.faq-answer p {
    padding: 0px 25px 20px 25px; /* Se ajusta el padding top con la transición */
    margin-bottom: 0; /* Reset margin de p para controlar con padding */
    color: var(--color-text-medium);
    line-height: 1.8;
}

/* Estado activo/abierto de la respuesta */
.faq-question[aria-expanded="true"] + .faq-answer {
    /* max-height se establecerá con JS, aquí un valor grande para la transición */
    /* padding-top: 20px; ya no es necesario si el p tiene padding */
}


.recaptcha-legal-text {
    font-size: 0.75rem;
    color: var(--color-text-medium);
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.recaptcha-legal-text a {
    color: var(--color-accent-teal);
}
