/* --- ESTILOS DE LA PÁGINA DE CONTACTO DINÁMICA --- */

:root {
    --color-primario: #1a4c25;
    --color-secundario: #ffcb86;
    --color-texto-claro: #f4f4f4;
    --color-texto-oscuro: #333;
    --fuente-principal: 'Outfit', sans-serif;
}

body {
    background: #f8f9fa;
    color: var(--color-texto-oscuro);
    font-family: var(--fuente-principal);
    margin: 0;
    padding: 0;
}

/* Saneo global y anti-overflow en móvil */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; 
}

img, video, svg, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.contenedor {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 2rem;
}

.encabezado {
    background: rgba(253, 253, 253, 0.121);
    padding: 2rem 0;
    position: fixed;
    width: 95%;
    max-width: 1650px;
    z-index: 1000;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 35px;
    backdrop-filter: blur(5px);
    transition: all .6s;
    transform-origin: center;
}

.encabezado:hover {
    background: rgba(233, 233, 233, 0.091);
    box-shadow: 1px 50px 55px rgba(0, 0, 0, 0.193);
    backdrop-filter: blur(15px);
    scale: 1.02;
    transform-origin: center;
}

.encabezado .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-imagen img {
    height: 50px;
    display: block;
}

.navegacion a {
    color: #ffffff;
    text-decoration: none;
    padding: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Animated underline para la navegación del header */
.navegacion a {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    transition: color 250ms ease;
}

.navegacion a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px; 
    height: 3px;   
    background: #339e3c;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.2,.9,.3,1), opacity 220ms ease;
    opacity: 0;
    border-radius: 3px;
}

/* Mostrar la línea solo en el enlace que está en hover/focus o en estado activo */
.navegacion a:hover::after,
.navegacion a:focus::after,
.navegacion a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Accesibilidad: foco visible */
.navegacion a:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(49,190,98,0.08);
    border-radius: 4px;
}

.navegacion a:hover {
    color: #339e3c;
}

/* Evitar que hijos flex provoquen overflow por contenido largo */
[style*="display:flex"], .fila, .row, .grid, .contenedor {
  min-width: 0;
}
[style*="display:flex"] > *, .fila > *, .row > *, .grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Links header (subrayado animado que ya tienes) se mantienen */


.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-right: 15px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #ffffff; 
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: absolute;
    left: 0;
}

.menu-toggle:active span {
    background: #21861e; 
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }


.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Navegación móvil: overlay y animación de links */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .navegacion {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgb(26, 76, 37), rgba(13, 38, 19, 0.918));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        border-radius: 25px;
    }

    .navegacion.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;

    }

    .navegacion a {
        margin: 1rem 0;
        font-size: 1.2rem;
        color: #fff;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navegacion.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation para los links */
    .navegacion.active a:nth-child(1) { transition-delay: 0.08s; }
    .navegacion.active a:nth-child(2) { transition-delay: 0.16s; }
    .navegacion.active a:nth-child(3) { transition-delay: 0.24s; }
    .navegacion.active a:nth-child(4) { transition-delay: 0.32s; }
    .navegacion.active a:nth-child(5) { transition-delay: 0.40s; }

    .logo-imagen img {
        height: 30px;
    }

}

/* Respeto prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle span,
    .navegacion,
    .navegacion a {
        transition: none !important;
    }
}


/* --- SECCIÓN HERO --- */
.hero-contacto {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: #1a4c25;
    /* Color de respaldo */
}

/* Hero: asegurar que fondos no se deformen en pantallas pequeñas */
.hero-contacto {
    /* si usas background-image en algún momento, forza cover */
    background-position: center;
    background-size: cover;   
    background-repeat: no-repeat;
    background-attachment: scroll; 
}

.video-fondo {
    position: absolute;
    inset: 0;             
    width: 100%;
    height: 100%;
    object-fit: cover;    
    object-position: center;
    transform: none;      
    min-width: 0;
    min-height: 0;
    z-index: 1;
}

/* iOS tweak para escalado del video */
@supports (-webkit-touch-callout: none) {
  .video-fondo {
    width: 100%;
    height: 100%;
  }
}

/* Respeto a reduce motion: usar imagen estática en lugar de video */
@media (prefers-reduced-motion: reduce) {
  .video-fondo { display: none !important; }
  .hero-contacto {
    background-image: url('../img/contacto-poster.jpg'); 
  }
}

.hero-contenido {
    position: relative;
    z-index: 3;
    animation: fadeInDown 1s ease-out;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.titulo-hero {
    font-size: 7rem;
    font-weight: 800;
    letter-spacing: 0px;
    animation: fadeInDown 1s ease-out;
    color: #333;
}

.subtitulo-hero {
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.cta-scroll {
    position: absolute;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* --- SECCIÓN FORMULARIO WIZARD --- */
.seccion-formulario-wizard {
    padding: 50px 0;
    background: linear-gradient(135deg, #f6f6f6, #a5a5a5);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.seccion-formulario-wizard.visible {
    opacity: 1;
    transform: translateY(0);
}

.seccion-formulario-wizard .contenedor{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /* Se elimina el padding fijo para manejarlo en media queries */
}

.texto-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 600px;
    text-align: left;
    color: #333;
}

.texto-intro h1 {
    font-size: 6rem;
    margin: 0;
    line-height: .8;
    letter-spacing: -6px;
    font-weight: 800;
}

.texto-intro .subtitulo-hero {
    font-size: 1.2rem;
    text-align: right;
    margin-top: 15px;
}

.form-wizard-container {
    max-width: 500px; 
    width: 100%;      
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.819);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 45px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 40px;
    box-shadow: 0 45px 35px rgba(0, 0, 0, 0.1);
    animation: fadeInSection 1s ease-out;
    height: 550px;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barra de Progreso */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 50%;
    height: 100%;
    background-color: var(--color-primario);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Pasos del Formulario */
.form-step {
    display: none;
    animation: fadeStep 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.8rem;
    color: var(--color-primario);
    margin-bottom: 25px;
    text-align: center;
}

.step-subtitle {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 25px;
    color: #777;
}

.seccion-faq-dinamico {
    padding: 100px 0;
    background-color: #f8f9fa; 
}

.seccion-formulario-wizard,
.seccion-faq-dinamico {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.seccion-formulario-wizard.visible,
.seccion-faq-dinamico.visible {
    opacity: 1;
    transform: translateY(0);
}

.boton-secundario {
    height: 35px;
    width: 95px;
    border-radius: 15px;
    background-color: #be3131;
    border: 0px;
    color: white;
    transition: all .1s ease;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.boton-secundario:hover{
    width: 125px;
    background-color: #631515;
}

.boton-accion {
    height: 35px;
    width: 125px;
    border-radius: 15px;
    background-color: #31be3d;
    border: 0px;
    color: white;
    transition: all .1s ease;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    
}

.boton-accion:hover{
    width: 125px;
    background-color: #156322;
    transform: translateY(-5px);
}

/* Botones de Navegación */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-next,
.btn-prev,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next,
.btn-submit {
    background-color: var(--color-primario);
    color: white;
}

.btn-prev {
    background-color: #e0e0e0;
    color: #333;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 76, 37, 0.2);
    background-color: #31be62;
}

.btn-prev:hover {
    background-color: #ccc;
}

/* --- SECCIÓN FAQ DINÁMICO --- */
.seccion-faq-dinamico {
    padding: 50px 0;
    background: #fff;
}

.titulo-seccion {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.faq-search-container {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
}

.faq-list {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

#faq-search {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.faq-search-container .fa-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

/* Estilos de FAQ refinados */
.faq-item {
    background: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.faq-pregunta {
    width: 100%;
    background: transparent;
    border: none;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--fuente-principal);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-texto-oscuro);
}

.faq-respuesta {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.faq-respuesta p {
    margin: 0;
    padding-bottom: 25px;
    line-height: 1.7;
    color: #555;
    font-size: 1rem;
}

.faq-item.activo .faq-pregunta {
    color: var(--color-primario);
}

.faq-item.activo .faq-respuesta {
    max-height: 300px; 
    opacity: 1;
}

/* Animación del ícono '+' a 'x' */
.faq-item.activo .faq-icono {
    transform: rotate(45deg);
}

.faq-icono {
    font-size: 1rem;
    color: var(--color-primario);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0; 
    margin-left: 15px;
}


.faq-item.activo {
    border-color: var(--color-secundario);
}

.service-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px; 
    margin-bottom: 30px;
    padding: 0 20px;
}

.service-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 5px;
    background-color: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 120px; 
    box-shadow: 0  0 50px #0000003d;
}

.service-option .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px; 
    transition: all 0.3s ease;
}

.service-option .service-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    line-height: 1.2;
    display: block;
    transition: all .3s ease;
}

.service-options-grid .service-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-option:hover {
    border-color: var(--color-secundario);
    transform: translateY(-5px);
    box-shadow: 0  20px 50px #0000004d;
}

.service-options-grid input[type="radio"]:checked + .service-option {
    background-color: #f8f5f5;
    border-color: var(--color-primario);
    box-shadow: inset 0 0px 20px rgba(28, 56, 38, 0.61);
}

.service-options-grid input[type="radio"]:checked + .service-option .service-text {
    color: var(--color-primario);
    font-weight: 600;

}

.service-options-grid input[type="radio"] {
    display: none;
}

.grupo-formulario {
    margin-bottom: 25px;
}

.grupo-formulario textarea {
    width: 92%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 25px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical; 
    font-family: 'Outfit', sans-serif; 
    box-shadow: 0 0 60px rgba(26, 76, 37, 0.098);
}

.grupo-formulario textarea:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 8px rgba(26, 76, 37, 0.2);
}

.grupo-formulario textarea::placeholder {
    color: #aaa;
    opacity: 0.8;
}

.grupo-formulario label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.grupo-formulario input[type="text"],
.grupo-formulario input[type="email"],
.grupo-formulario input[type="tel"],
.grupo-formulario input[type="date"],

.grupo-formulario select {
    width: calc(100% - 22px); 
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    background: url('data:image/svg+xml;utf8,<svg fill="%23888" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 15px center;
    -webkit-appearance: none;  
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 60px rgba(26, 76, 37, 0.098);
    background-color: #ffffff;
}

.grupo-formulario select option {
    padding: 8px 15px;
    font-size: 1rem;
}

.iti {
    width: 100%;
}

input#telefono-quito,
input#telefono-guayaquil {
    padding-left: 95px !important;
}

/* --- ESTILOS DE VALIDACIÓN DE ERRORES --- */

/* Estilos para el borde de los campos de texto no válidos */
.grupo-formulario.error input:not([type="radio"]):not([type="checkbox"]),
.grupo-formulario.error select,
.grupo-formulario.error textarea {
    border-color: #D32F2F !important;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.5) !important;
}

/* Estilos para los botones de servicio no seleccionados */
.grupo-formulario.error .service-option {
    border-color: #D32F2F !important;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.5) !important;
}

/* Estilos para el checkbox de términos y condiciones */
.grupo-formulario.error input[type="checkbox"] {
    outline: 2px solid #D32F2F !important;
    outline-offset: 2px !important;
}

/* Puedes hacer que la etiqueta de texto también se vuelva roja */
.grupo-formulario.error label {
    color: #D32F2F !important;
}

.grupo-formulario input[type="date"] {
    color: #969696;
}

.grupo-formulario input:focus,
.grupo-formulario select:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 8px rgba(26, 76, 37, 0.2);
}

.fila-formulario {
    display: flex;
    gap: 20px;
}

.fila-formulario .grupo-formulario {
    flex: 1;
}

.terminos-grupo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.terminos-grupo input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primario);
    cursor: pointer;
}

.terminos-grupo label {
    font-size: 0.9rem;
    color: #555;
}

.terminos-grupo a {
    color: var(--color-primario);
    font-weight: 600;
    text-decoration: underline;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-submit:disabled:hover {
    background-color: #ccc;
}

.terminos-contenido {
    max-height: 40vh;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    padding-right: 10px;
}

.modal-overlay {
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-contenido {
    transform: scale(1);
}

.modal-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}

.modal-contenido h3 {
    margin-top: 0;
    color: var(--color-primario);
}

.modal-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

/* TCN */

.tcn-section {
    background: linear-gradient(191deg, rgba(242, 242, 242, 1) 50%, rgb(207, 207, 207) 100%);
    padding-top: 20px;
    text-align: space-between;
    height: 770px;
    position: relative;
    z-index: 1;
}

.alpha-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 45%;
    text-align: right;
}

.hero-text h2 {
    font-size: 4rem;
    color: #131313;
    margin-bottom: 1rem;
    line-height: 52px;
    max-width: 100%; 
}

.hero-text .subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 100%;
    margin: 0;
    line-height: 1.6;
}

/* Columna de la imagen */
.hero-image {
    flex: 2;
    max-width: 95%;
    text-align: right;
    animation: float 4s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.boton-conocer2 {
    background: linear-gradient(to right, #e9e9e9c0, #79797956);
    color: rgb(22, 22, 22);
    border: 2px solid rgb(22, 22, 22);;
    padding: 2rem 2.5rem;
    margin-top: 2rem;
    text-decoration: none;
    font-weight: 800;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    height: 20px;
    backdrop-filter: blur(2.5px);
    width: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 15px;
    box-shadow: 0 0px 50px rgba(0, 0, 0, 0.22);
}

.boton-conocer2:hover{
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.431);
    width: 290px;
    height: 35px;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #2e8340;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.pie-pagina {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding-top: 60px;
}

.grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.pie-pagina h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
}

.pie-pagina h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background-color: #31be62;
}

.info-footer .logo-imagen-footer img {
    max-width: 200px;
    margin-bottom: 15px;
}

.info-footer p {
    color: #b3b3b3;
    line-height: 1.6;
}

.navegacion-footer a,
.redes-sociales a {
    color: #f0f0f0;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.navegacion-footer a:hover,
.redes-sociales a:hover {
    color: #31be62;
    padding-left: 8px;
}

.contacto-footer p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.derechos-reservados {
    background-color: #0d0d0d;
    text-align: center;
    padding: 20px 10px;
    border-top: 1px solid #d8a25e;
}

.derechos-reservados p {
    margin: 0;
    font-size: 0.9rem;
    color: #8c8c8c;
}
/* ===== RESPONSIVE + MENÚ HAMBURGUESA ===== */

/* --- Para tablets grandes y laptops pequeñas (hasta 1200px) --- */
@media (max-width: 1200px) {
    .texto-intro {
        max-width: 500px;
        margin-left: 20px;
    }

    .texto-intro h1 {
        font-size: 5rem;
    }

    .hero-text h2 {
        font-size: 3.5rem;
    }

    .tcn-section {
        height: auto;
        padding-bottom: 4rem;
    }
}


/* --- Para tablets en modo vertical (hasta 992px) --- */
@media (max-width: 992px) {
    
    .menu-toggle {
        display: flex;
    }

    .navegacion {
        position: fixed;
        inset: 0;
        background: linear-gradient(135deg, rgba(26, 76, 37, 0.98), rgba(13, 38, 19, 0.98));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }

    .navegacion.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .navegacion a {
        color: #fff;
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    /* --- Ajustes generales a los títulos grandes --- */
    .titulo-hero,
    .contenedor h1 {
        font-size: 4rem;
        line-height: 1.1;
    }

    /* --- Sección del Formulario Wizard --- */
    .seccion-formulario-wizard .contenedor {
        flex-direction: column; 
        gap: 40px;
        padding: 40px 20px;
    }

    .texto-intro {
        align-items: center; 
        text-align: center;
        max-width: 100%;
        margin-left: 0;
    }

    .texto-intro .subtitulo-hero {
        text-align: center;
    }

    .form-wizard-container {
        height: auto;
        padding: 30px;
    }
    
    /* --- Sección TCN (Texto con Imagen) --- */
    .hero-layout {
        flex-direction: column; 
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        max-width: 600px;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 3rem;
    }

    .hero-image {
        text-align: center;
        max-width: 80%;
    }

    .boton-conocer2 {
        margin-bottom: 2rem;
    }
}


/* --- Para móviles (hasta 768px) --- */
@media (max-width: 768px) {
    .encabezado {
        padding: 1.5rem 0;
        top: 1rem;
        width: 90%;
        border-radius: 25px;
    }
    
    .logo-imagen img {
        height: 30px;
    }

    /* --- Ajustes de texto y secciones --- */
    .titulo-hero, .contenedor h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .texto-intro h1 {
        font-size: clamp(3rem, 12vw, 4rem);
        letter-spacing: -3px;
    }

    .subtitulo-hero {
        font-size: 1.2rem;
    }
    
    /* --- Ajustes del Formulario --- */
    .fila-formulario {
        flex-direction: column;
        gap: 0;
    }

    .step-title {
        font-size: 1.5rem;
    }
    
    .service-options-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
        padding: 0;
    }

    .service-option {
        height: 100px;
    }
    
    .titulo-seccion {
        font-size: 2.5rem;
    }

    /* --- Ajustes de la sección TCN --- */
    .hero-text h2 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .boton-conocer2 {
        padding: 1.5rem 2rem;
        width: auto; 
        max-width: 90%;
        height: auto;
    }

    .boton-conocer2:hover {
        width: auto; 
        height: auto;
    }
}


/* --- Para móviles pequeños (hasta 480px) --- */
@media (max-width: 480px) {
    .contenedor {
        padding: 0 1rem; 
    }
    
    .hero-contacto {
        height: 60vh; 
    }

    .form-wizard-container {
        padding: 20px;
    }

    .form-navigation {
        flex-direction: column; 
        gap: 15px;
    }
    
    .btn-next, .btn-prev, .btn-submit {
        width: 100%;
        text-align: center;
    }

    .terminos-grupo label {
        font-size: 0.8rem;
    }
    
    .faq-pregunta {
        font-size: 1rem;
        padding: 20px;
    }

    /* Botón flotante de WhatsApp más pequeño y accesible */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    /* El footer ya es responsivo, pero podemos ajustar detalles */
    .grid-footer {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    
    .pie-pagina h4::after {
        left: 50%;
        transform: translateX(-50%); 
    }
}

/* Botón “Ver todas las preguntas frecuentes” */
.btn-faq {
  --bg1: #31be62;
  --bg2: var(--color-primario, #1a4c25);
  --ring: rgba(49,190,98,0.35);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;

  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
 
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  background-size: 200% auto;
  box-shadow: 0 10px 30px rgba(26,76,37,0.22), inset 0 0 0 1px rgba(255,255,255,0.12);
  transition: transform .2s ease, box-shadow .2s ease, background-position .35s ease;
}

.btn-faq:hover {
  transform: translateY(-2px);
  background-position: 100% center;
  box-shadow: 0 16px 36px rgba(26,76,37,0.28), 0 0 0 0 rgba(49,190,98,0);
}

.btn-faq:active {
  transform: translateY(0) scale(0.99);
}

.btn-faq:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring), 0 10px 30px rgba(26,76,37,0.22);
}

/* Brillo sutil */
.btn-faq::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120px 60px at 20% 0%, rgba(255,255,255,.35), transparent 60%);
  opacity: .35;
  border-radius: inherit;
  transition: opacity .3s ease;
}

.btn-faq:hover::after { opacity: .5; }

/* Tamaño fluido en pantallas pequeñas */
@media (max-width: 480px) {
  .btn-faq {
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Respeto por reduce motion */
@media (prefers-reduced-motion: reduce) {
  .btn-faq { transition: none; }
  .btn-faq:hover { transform: none; background-position: 0% center; }
  .btn-faq::after { transition: none; }
}

/* Título centrado solo en móviles */
.header-title-mobile {
  display: none;
  font-weight: 800;
  letter-spacing: .06em;
  color: #ffffff;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 768px) {
  .header-title-mobile {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.05rem;
  }
}