
:root{
    --bg:#f6f7fb;
    --card:#ffffff;
    --text:#1f2937;
    --muted:#6b7280;
    --primary:#f97316;
    --primary-dark:#ea580c;
    --border:#e5e7eb;
    --ok:#059669;
    --shadow:0 10px 25px rgba(0,0,0,.08);
    --radius:16px;
    /* Tonos auxiliares para fondos secundarios y rows alternativas */
    --surface-1:#f8fafc;       /* fondos suaves (editor, group headers) */
    --surface-2:#f1f5f9;       /* segment toggles, hover */
    --surface-3:#fefce8;       /* row resaltado (qty>0) */
    --highlight:#fef3c7;       /* badge selected, tooltips */
    --input-bg:#ffffff;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
___________________________________________________________________________________________
Importación de fuentes
_____________________________________________________________________________________________
*/
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Italic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: Libre Baskerville;
    src: url('../fonts/Libre_Baskerville/LibreBaskerville-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Libre Baskerville;
    src: url('../fonts/Libre_Baskerville/LibreBaskerville-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}   

@font-face {
    font-family: Libre Baskerville;
    src: url('../fonts/Libre_Baskerville/LibreBaskerville-Italic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}   

/* 
_________________________________________________________________________________________________________________________
Estilo y tipo de letra para el body 
_________________________________________________________________________________________________________________
*/

body {
    padding-top: 78.96px;
    font-family: Plus Jakarta Sans;
}

/* 
_________________________________________________________________________________________________________________________
Estilos para el header
_________________________________________________________________________________________________________________
*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #F9F3F0;
    padding: 16px 24px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.icon-header {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
/* 
_________________________________________________________________________________________________________________________
Estilos para el logo y pastillas de colaboradores
_________________________________________________________________________________________________________________
*/
.header-logo {
    display: block;
    max-width: 150px;
    width: 100%;
    height: auto;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.pill-bluespace { /* Estilo para la pastilla azul */
    display: inline-block;
    background-color: #302E3D;
    color: #F9F3F0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    bottom: -10px;
    right: 0px;
}

.pill-beigeseashell { /* Estilo para la pastilla beige */
    display: inline-block;
    background-color: #F9F3F0;
    color: #302E3D;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    position: absolute;
    bottom: -15px;
    right: 0px;
}

/* La hamburguesa está oculta por defecto (solo aparece en móvil) */
.hamburguesa {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburguesa .barraIcono1,
.hamburguesa .barraIcono2,
.hamburguesa .barraIcono3 {
    width: 26px;
    height: 3px;
    background-color: #302E3D;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* El link de llamar duplicado dentro del menú, oculto en desktop */
.nav-call-mobile {
    display: none;
}

/* 
_________________________________________________________________________________________________________________________
Estilos para los enlaces de navegación y el botón de llamada a la acción
_________________________________________________________________________________________________________________
*/
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #302E3D;
    text-decoration: none;
}

.btn-call {
    display: flex;
    align-items: center;
    background-color: #302E3D;
    color: #F9F3F0 !important; 
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease;
}

.btn-call:hover {
    background-color: #4a4760;
}

/*
____________________________________________________________________________________
Estilos para la sección hero 
_________________________________________________________________________________*/
.hero{
    position: relative;
    background-color: #EEEFF2;
    overflow: hidden;
    background-image: url('../img/pexels-vibes.jpg');
    background-size: cover;
    background-position: center 15%;
    padding: 40px 20px;
}

/* 
______________________________________________________________________________________
Estilo para el overlay oscuro sobre la imagen de fondo 
______________________________________________________________________________________*/

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    min-height: 500px;

}



.hero-text { /* Estilo para el contenedor de texto de la sección hero */
    position: relative;
    z-index: 2;
    flex: 0 0 700px; /* mismo ancho exacto que .hero-image */
    padding: 60px 40px;
    color: #fff;
}

.hero-text h1,
.hero-text p {
    font-size: 5rem;
    color: #fff;
    
}


#vibras { /*Cambio de fuente con id para resaltar palabras clave en el texto de la sección hero */
    color: #fff;
    font-family: Libre Baskerville;
    font-style: italic;
}

.hero-text-h2 { /* Estilo para el h2 en hero*/
    font-size: 2.5rem;
    margin-bottom: 16px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/*
___________________________________________________________________________________________
Estilos para el contenedor del formulario c2c en la sección hero 
_______________________________________________________________________________________*/

.hero-form-box { 
    flex: 0 0 380px;
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 24px auto;
}

.hero-form-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-form-box input {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.hero-form-box button {
    padding: 14px;
    background-color: #302E3D;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #E7F7F3;
    color: #1a7a5e;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.form-success::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-color: #1a7a5e;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
}

.form-error {
    background-color: #FDECEC;
    color: #B3261E;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* errores en el formulario*/

/* Estado normal */
  input {
    border: 1px solid #ccc;
    outline: none;
  }
  .error-texto {
    color: red;
    font-size: 12px;
    display: none;
    /* Oculto por defecto */
  }

  /* Clases que se activarán con JavaScript */
  input.input-error {
    border: 2px solid red;
  }
  .error-texto.activo {
    display: block; /* Se muestra el texto */
  }

/*
______________________________________________________________________
Estilo para centrar texto claim / principal que esté sobre una sección
____________________________________________________________________*/

.claim {
    padding: 12px 24px;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    margin-bottom: 7px;
    align-items: center;
    justify-content: center;
}

/* 
___________________________________________________________________
Estilos para la sección de ventajas
___________________________________________________________________ */

.ventajas{
    margin: 0 auto;
    color: #17191E;
    background-color: #E7F7F3;
    text-align: center;
    padding: 24px;
    padding-bottom: 60px;
}

.ventajas h2 {
    margin-bottom: 16px;
    color: #17191E;
}


.contenedor { /*no usado, posible aplicación para resaltar contenedores con hover*/
  display: inline-block;
  cursor: pointer;
}

.barraIcono1, .barraIcono2, .barraIcono3 { /*no usado, posible aplicación para iconos simples*/
  width: 30px;
  height: 4px;
  background-color: #000;
  margin: 5px 0;
}

.boxes { /* Estilo para el contenedor (aplicado a una ul) de las cajas de ventajas */
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.icon-derecha-responsive {
    display: none;


}

/*Estilos para cada caja de ventaja individual, incluyendo el icono, título y descripción*/

.content-card {
    flex: 1;
    background-color: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-card h3 {
    margin-bottom: 8px;
    color: #302E3D;
}

.content-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.box-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*________________________________________________________________________________-
Estilos para el botón de scroll lateral
_____________________________________________________________________________________*/

.boxes-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.2s ease;
}

.scroll-btn img {
    width: 20px;
    height: 20px;
}

.scroll-btn-left {
    left: -8px;
}

.scroll-btn-right {
    right: -8px;
}

/* Estado oculto: usamos visibility en vez de display para que no salte el layout */
.scroll-btn.oculto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Estos botones solo tienen sentido en el modo de scroll horizontal (móvil) */
@media (min-width: 769px) {
    .scroll-btn {
        display: none;
    }
}

/* 
____________________________________________________________________--
Estilos para la sección de preguntas frecuentes (FAQ) 
_____________________________________________________________________*/

.faq { /*estilo sección*/
    background-color: #FAFAFA33;
    color: #17191E;
    padding: 24px;
    text-align: center;
    padding-bottom: 60px;
}

.faq-container { /*Estilo contenedor de todas las faqs, disposición columnar y centrado*/
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item { /*quitar borde a cada faq dejando solo el borde inferior, para separar visualmente cada pregunta*/
    border-bottom: 1px solid #ddd;
}

.faq-question { /*Estilo para hacer cada pregunta un botón que despliega la respuesta*/
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #302E3D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

/* 
____________________________________________________________________________----
Estilo para la respuesta de cada pregunta, inicialmente oculta y con transición suave al desplegarse 
__________________________________________________________________________________________*/

.faq-answer { 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    text-align: left;
}

.faq-answer p {
    padding-bottom: 16px;
    color: #555;
    line-height: 1.6;
}

/*
_____________________________________________________________________________________________________
Estilo para cuando se activa una pregunta, mostrando la respuesta y rotando el icono de más a menos
____________________________________________________________________________________________________*/

.faq-item.activo .faq-answer { /*varía el tamaño del contenedor de la respuesta cuando se activa la pregunta*/
    max-height: 200px; /* suficiente para el texto más largo */
}

.faq-item.activo .faq-icon { /* rotar el icono de más a menos cuando la respuesta está visible */
    transform: rotate(45deg);
}

/*
______________________________________________________________________________________________-
Estilos para el footer, contenedores, nav link y sticky button de llamada a la acción
________________________________________________________________________________________________*/
.page-footer{
    background-color: #302E3D;
    color: #F9F3F0;
    text-align:center;
    padding:24px;
    font-size:12px;
    letter-spacing:.03em;
    line-height:1.6;
}

.btn-call-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #42A390;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-call-float:hover {
    transform: scale(1.08);
    background-color: #4a4760;
}

.nav-links-footer {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    padding-top: 12px;
    align-items: center;
}

.nav-links-footer a {
    color: #F9F3F0;
    text-decoration: none;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logos-horizontal{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/*
_________________________________________________________--
Modals
_____________________________________________________________
*/

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3001;
    align-items: center;
    justify-content: center;
}

#modalPersonalizarPoliticas{
    z-index: 3000;
}

.modal-overlay.activo {
    display: flex;
}

.modal-box {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #302E3D;
    line-height: 1;
}

.modal-header {
    padding: 12px 24px;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    margin-bottom: 7px;
    align-items: center;
}

.abrir-modal-preferencias{
    text-decoration: none;
    font-weight: bold;
    color: #000;
}

/*
_____________________________________________________________________________________________________
banner y Switch para cookies
*__________________________________________________________________________________________________
*/

.banner-cookies {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background-color: #444B59;
    padding: 20px 24px;
    color: #fff;
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookies-text h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.cookies-text p {
    font-size: 0.85rem;
    color: #d0d2d8;
    line-height: 1.5;
    margin-bottom: 10px;
}

.cookies-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.btn-cookies-aceptar,
.btn-cookies-rechazar,
.btn-cookies-personalizar {
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-cookies-aceptar {
    background-color: #AEE6D8;
    color: #302E3D;
}

.btn-cookies-rechazar {
    background-color: transparent;
    color: #fff;
    border: 1.5px solid #fff;
}

.btn-cookies-personalizar {
    background-color: #fff;
    color: #302E3D;
    border: 1.5px solid #fff;
}

.cookie-categoria {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.cookie-categoria-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #302E3D;
}

.cookie-categoria-info p {
    font-size: 0.85rem;
    color: #666;
}

/* ---------- Switch ---------- */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #17191E;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.switch input:checked + .slider {
    background-color: #2196F3;
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

.switch input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
#btnVolverArriba {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    background-color: #AEE6D8;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    
    display: flex; 
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    
    transition: background-color 0.3s, opacity 0.4s ease, visibility 0.4s;
}

#btnVolverArriba.show {
    opacity: 1;
    visibility: visible;
}

#btnVolverArriba img {
    width: 30px;
    height: 30px;
}

#btnVolverArriba:hover {
    background-color: #555;
}



/*__________________________________________________________________________________________-
responsive
_____________________________________________________________________________________________
*/

@media (max-width: 1180px){

    .hero-image {
        width: 600px;
        height: 90vh;
    }

    .hero-text { /* Estilo para el contenedor de texto de la sección hero */
        flex: 0 0 600px; /* mismo ancho exacto que .hero-image */
    }
    
}

@media (max-width: 1024px){

    .hero-container {
        gap: 0px;
        min-height: 300px;
    }

    .hero-image {
        left: 0px;
        width: 320px;
    }


    .hero-text { /* Estilo para el contenedor de texto de la sección hero */
        flex: 0 0 320px; /* mismo ancho exacto que .hero-image */
    }

}

@media (max-width: 768px) {

    /* Ocultamos el botón de llamar de desktop */
    .btn-call {
        display: none;
    }

    /* Mostramos la hamburguesa */
    .hamburguesa {
        display: flex;
    }

    /* El menú se oculta por defecto en móvil, se despliega con JS */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; /* justo debajo del header */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .nav-links.activo {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links li a {
        display: block;
        padding: 16px;
    }

    /* Mostramos el link de llamar solo dentro del menú móvil */
    .nav-call-mobile {
        display: block;
    }

    /* header necesita position: relative para que el menú desplegado (absolute) 
    se posicione bien respecto a él */
    header {
        position: fixed; 
    }

    .header-container {
        position: relative;
    }

    /* Animación: hamburguesa -> X cuando está activa */
    .hamburguesa.activo .barraIcono1 {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburguesa.activo .barraIcono2 {
        opacity: 0;
    }

    .hamburguesa.activo .barraIcono3 {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* La imagen de fondo va en .hero, cubriendo TODA la sección */
    .hero {
        background-image: url('../img/pexels-vibes.jpg');
        background-size: cover;
        background-position: center;
        padding: 40px 20px;
    }


    /* Overlay oscuro sobre toda la sección, para que el texto se lea bien */
    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

    /* El contenedor pasa a columna, y por encima del overlay */
    .hero-container {
        position: relative;
        z-index: 2;
        flex-direction: column;
        height: auto;
        gap: 24px;
    }

    /* El texto ya no necesita un ancho fijo de 700px */
    .hero-text {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    /* El formulario centrado, ocupando el ancho disponible sin desbordar */
    .hero-form-box {
        flex: 0 0 auto;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .icon-derecha-responsive {
        display: flex;
    }

    .boxes {
        display: flex;
        flex-direction: row; /* se mantienen en fila, no en columna */
        overflow-x: auto;
        gap: 16px;
        padding: 8px 20px 20px; /* espacio a los lados para que no queden pegadas al borde */
        scroll-snap-type: x mandatory; /* opcional: efecto de "encaje" al deslizar */
        -webkit-overflow-scrolling: touch; /* scroll más suave en iOS */
    }

    .content-card {
        flex: 0 0 260px; /* ancho fijo, NO se encoge ni se estira */
        scroll-snap-align: center; /* opcional: cada tarjeta se centra al parar el scroll */
    }
}

@media (min-width: 769px) {
    .contenedor {
        display: none; /* la hamburguesa no se ve en desktop */
    }
}

@media (max-width: 480px) {
    .nav-links-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}