/* assets/css/style.css */
:root {
    --white: #ffffff;
    --celeste: #38b6ff;
    --primary-blue: #0056b3;
    --brand-green: #76BC21;
    --brand-orange: #ff9800; /* Color para botón UP */
    --gray: #f4f4f4;
    --black: #000000;
    --dark-blue: #002244;
    --text-color: #333333;
    --header-yellow: #ffeb3b; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Arial, sans-serif; }
/* SE AGREGÓ overflow-x: hidden para evitar que los botones se corten a los lados */
html, body { overflow-x: hidden; max-width: 100vw; }
body { background-color: var(--white); color: var(--text-color); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.font-lobster { font-family: 'Lobster Two', cursive; font-weight: 700; }

.btn { display: inline-block; padding: 12px 25px; border-radius: 5px; font-weight: bold; text-decoration: none; cursor: pointer; border: none; transition: 0.3s ease; text-align: center; }
.btn-primary { background-color: var(--celeste); color: var(--black); }
.btn-primary:hover { background-color: var(--primary-blue); color: var(--white); }

/* =======================================================
   --- HEADER & MENU (DESKTOP) ---
   ======================================================= */
/* SE CAMBIÓ a position: fixed y width: 100% */
header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; padding: 20px 0; transition: all 0.4s ease; }
.header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; position: relative; }

/* Logo y Textos */
.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; z-index: 1001; flex-shrink: 0; }
.logo-img { height: 75px; width: auto; transition: all 0.4s ease; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: var(--primary-blue); transition: all 0.4s ease; line-height: 1.1; }
.brand-slogan { font-size: 0.85rem; color: #666; font-weight: bold; font-style: italic; margin-top: 2px; transition: all 0.3s; }

/* Menú Central */
.nav-menu { display: flex; gap: 15px; list-style: none; align-items: center; margin: 0 15px; transition: all 0.3s ease; }
.nav-menu a { text-decoration: none; color: var(--text-color); font-weight: 600; font-size: 1.1rem; white-space: nowrap; transition: all 0.4s ease; }
.nav-menu a:hover { color: var(--celeste); }

/* Acciones (Derecha) */
.header-cta { display: flex; flex-direction: column; align-items: center; z-index: 1001; flex-shrink: 0; }
.cta-row-top { display: flex; align-items: center; gap: 15px; }
.cta-row-bottom { display: none; } /* Oculto en PC */

.btn-quote-menu { background-color: var(--primary-blue); color: var(--white); padding: 10px 20px; border-radius: 25px; font-weight: bold; text-decoration: none; transition: all 0.4s ease; white-space: nowrap; }
.header-phone-desktop { color: var(--primary-blue); font-size: 1.1rem; font-weight: bold; text-decoration: none; transition: color 0.3s; display: flex; align-items: center; gap: 5px; }
.header-phone-desktop:hover { color: var(--brand-green); }

/* Iconos */
.header-wa-icon { color: #25D366; font-size: 1.8rem; text-decoration: none; transition: transform 0.3s ease; display: flex; align-items: center; }
.header-wa-icon:hover { transform: scale(1.1); }
.header-phone-icon { display: none; } /* Oculto en PC (Solo usamos el texto) */
.menu-toggle { display: none; }

/* Scrolled PC */
header.scrolled { background-color: var(--header-yellow); padding: 10px 0; }
header.scrolled .logo-img { height: 50px; }
header.scrolled .brand-name { color: var(--black); font-size: 1.1rem; }
header.scrolled .brand-slogan { display: none; }
header.scrolled .nav-menu a { font-size: 1rem; }
header.scrolled .btn-quote-menu { background-color: var(--brand-green); color: var(--white); }
header.scrolled .header-phone-desktop { color: var(--black); }


/* =======================================================
   --- RESPONSIVE MOBILE MENU ---
   ======================================================= */
@media (max-width: 992px) {
    /* ESTADO INICIAL (Fondo Blanco) */
    .header-container { flex-direction: column; align-items: center; padding-top: 5px; }
    
    .logo-container { width: 100%; justify-content: flex-start; padding-right: 50px; margin-bottom: 10px; }
    .logo-img { height: 55px; }
    .brand-name { font-size: 1.1rem; }
    .brand-slogan { display: none; } /* Eslogan nunca en móvil */

    .menu-toggle { display: block; position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--brand-green); cursor: pointer; z-index: 1002; transition: all 0.3s; }
    
    .header-cta { width: 100%; }
    .cta-row-top { justify-content: center; width: 100%; gap: 10px; }
    .cta-row-bottom { display: block; text-align: center; margin-top: 10px; }

    .hide-mobile { display: none; } /* Quita el "Get A " */
    .header-phone-desktop { display: none; } /* Quita teléfono texto */
    
    /* Configura iconos en círculos */
    .header-phone-icon, .header-wa-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--white); font-size: 1.2rem; text-decoration: none; }
    .header-phone-icon { background-color: var(--primary-blue); }
    .header-wa-icon { background-color: #25D366; font-size: 1.4rem; }

    .header-phone-mobile-text { color: var(--primary-blue); font-size: 1.25rem; font-weight: bold; text-decoration: none; }

    /* Menú desplegable hamburguesa */
    #main-nav { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); box-shadow: 0 10px 10px rgba(0,0,0,0.1); display: none; padding: 20px; z-index: 999; }
    #main-nav.active { display: block; }
    .nav-menu { flex-direction: column; gap: 15px; text-align: center; margin: 0; }
    .nav-menu a { font-size: 1.2rem; display: block; padding: 10px; border-bottom: 1px solid var(--gray); }

    /* ========================================================
       MÓVIL SCROLLED (Amarillo - Todo en 1 sola línea) 
       ======================================================== */
    header.scrolled { padding: 8px 0; }
    header.scrolled .header-container { flex-direction: row; flex-wrap: nowrap; padding: 0 15px; justify-content: space-between; }
    
    /* Ocultar nombre y teléfono de abajo */
    header.scrolled .brand-text { display: none; }
    header.scrolled .cta-row-bottom { display: none; }
    
    /* Logo compacto (Ahora sí se mantendrá siempre) */
    header.scrolled .logo-container { width: auto; margin-bottom: 0; padding-right: 0; flex-shrink: 0; }
    header.scrolled .logo-img { height: 45px; }
    
    /* Alinear Botones y Menu a la derecha */
    header.scrolled .header-cta { width: auto; flex-grow: 1; }
    header.scrolled .cta-row-top { justify-content: flex-end; gap: 8px; }
    
    /* Reducir botones para que encajen perfectos */
    header.scrolled .btn-quote-menu { padding: 8px 12px; font-size: 0.9rem; }
    header.scrolled .header-phone-icon, header.scrolled .header-wa-icon { width: 35px; height: 35px; font-size: 1rem; }
    header.scrolled .header-wa-icon { font-size: 1.2rem; }

    /* Mover menú sándwich a la fila */
    header.scrolled .menu-toggle { position: static; margin-left: 8px; color: var(--black); font-size: 1.6rem; display: flex; align-items: center; }
}

@media (max-width: 400px) {
    header.scrolled .btn-quote-menu { padding: 6px 8px; font-size: 0.8rem; }
    header.scrolled .header-phone-icon, header.scrolled .header-wa-icon { width: 32px; height: 32px; }
    header.scrolled .logo-img { height: 38px; }
}

/* --- BOTONES FLOTANTES (Mensaje Izquierda, UP Derecha) --- */
.fab-msg { position: fixed; bottom: 20px; left: 20px; background-color: var(--primary-blue); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 9999; text-decoration: none; transition: transform 0.3s; }
.fab-msg:hover { transform: scale(1.1); background-color: var(--brand-green); color: white; }

.fab-up { position: fixed; bottom: 20px; right: 20px; background-color: var(--brand-orange); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 9999; border: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s, background-color 0.3s; }
.fab-up.show { opacity: 1; pointer-events: auto; }
.fab-up:hover { transform: translateY(-5px); background-color: #e68a00; }

/* --- FORMULARIO Y COTIZACIÓN --- */
.quote-section { background-color: var(--gray); padding: 50px 0; }
.quote-form-wrapper { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 40px; border-top: 5px solid var(--brand-green); scroll-margin-top: 120px; }
.quote-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group-full { grid-column: 1 / -1; }

/* Bordes del input en verde */
.form-control { width: 100%; padding: 12px; border: 2px solid var(--brand-green); border-radius: 5px; font-size: 1rem; outline: none; transition: box-shadow 0.3s; }
.form-control:focus { box-shadow: 0 0 8px rgba(118, 188, 33, 0.4); }

.quote-content-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-bottom: 60px; }
.quote-list-wrapper { flex: 1; min-width: 300px; }
.benefits-list { list-style: none; margin-top: 20px; }
.benefits-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: flex-start; gap: 10px; }
.benefits-list li i { color: var(--brand-green); margin-top: 5px; }
.quote-slider-wrapper { flex: 0 0 400px; display: flex; justify-content: center; }

@media (max-width: 768px) {
    .quote-form-grid { grid-template-columns: 1fr; }
    .quote-content-split { flex-direction: column; }
    .quote-slider-wrapper { flex: 1; width: 100%; max-width: 400px; }
}

/* Nueva tipografía Titan One */
.font-titan { font-family: 'Titan One', cursive; font-weight: 400; letter-spacing: 1px; }

/* --- HERO IMPACT DESIGN --- */
.hero-impact {
    position: relative;
    padding: 60px 20px 80px;
    background-color: #0056b3; /* Azul más claro para móviles */
    color: var(--white);
}

@media (min-width: 769px) {
    .hero-impact {
        background-image: url('../img/hero-placeholder.jpg'); 
        background-size: cover;
        background-position: center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente reducido al 50% de oscuridad para ver mejor la imagen */
    background: linear-gradient(to bottom, rgba(0, 34, 68, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-orange); /* Cambiado al naranja del botón */
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 40px;
}

.hero-comparison {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* --- COMPARISON CARDS --- */
.comp-card {
    background: var(--white);
    border-radius: 8px;
    overflow: visible; /* IMPORTANTE: Cambiado a 'visible' para que la estrella pueda salirse de la tarjeta */
    width: 250px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 3px solid var(--white);
    position: relative; /* Para poder anclar la estrella */
}

/* Evitamos que el color se salga por las esquinas ahora que el overflow es visible */
.comp-card .comp-header { border-radius: 4px 4px 0 0; }
.comp-card .comp-subtext { border-radius: 0 0 4px 4px; }

/* Header Verde */
.card-green .comp-header { background-color: var(--brand-green); color: var(--white); font-weight: bold; padding: 10px; font-size: 1.2rem; text-transform: uppercase; }
.card-green .comp-price { color: var(--black); font-size: 3.5rem; font-weight: 900; padding: 10px 0 0; line-height: 1; } /* El $390 ahora es negro */
.card-green .comp-subtext { 
    background-color: var(--brand-green); 
    color: var(--white); 
    font-weight: bold; 
    padding: 12px 8px; 
    margin-top: 10px; 
    font-size: 1.35rem;
}

/* Header Negro */
.card-black .comp-header { background-color: var(--black); color: var(--white); font-weight: bold; padding: 10px; font-size: 1.2rem; text-transform: uppercase; }
.card-black .comp-price { color: #d32f2f; font-size: 3.5rem; font-weight: 900; padding: 10px 0 0; line-height: 1; }
/* --- COMPARISON CARDS TEXT SIZES --- */
.card-black .comp-subtext { 
    background-color: var(--black); 
    color: var(--white); 
    font-weight: bold; 
    padding: 12px 8px; 
    margin-top: 10px; 
    font-size: 1.35rem; /* Texto más grande */
}

.btn-hero-action {
    background: linear-gradient(to bottom, #ff9800, #e65c00);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 900;
    padding: 15px 30px;
    border: 2px solid var(--white);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.btn-hero-action:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 2.5rem; }
    .btn-hero-action { font-size: 1.1rem; width: 100%; max-width: 350px; padding: 15px 10px; }
    .hero-comparison { gap: 15px; }
    .comp-card { width: 100%; max-width: 300px; }
}

/* --- MODAL STYLES --- */
.custom-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.7); 
    align-items: center; justify-content: center;
}
.custom-modal.show { display: flex; }

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}
.close-modal:hover { color: var(--black); }

/* --- CORRECCIÓN DE ANCLA EN MÓVILES --- */
@media (max-width: 768px) {
    .quote-form-wrapper {
        /* En celulares el menú o el diseño ocupa más espacio, le damos más margen de salto */
        scroll-margin-top: 170px !important; 
    }
}

/* --- VISOR DE COLORES MINI APP --- */
.color-app-container {
    background: var(--gray);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    max-width: 320px; /* Limita el ancho para que queden agrupados de a 3 */
    margin: 0 auto;
}

.color-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.color-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    border: 2px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.color-label {
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    max-width: 60px;
    line-height: 1.1;
}

/* Animación de Ola (Wave) */
@keyframes wave-effect {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wave-anim {
    animation: wave-effect 0.4s ease-in-out;
}

/* --- MODAL ESPECÍFICO DEL VISOR --- */
.color-modal-content {
    max-width: 500px; /* Un poco más grande para el visor */
}

.bathtub-preview-container {
    text-align: center;
    padding: 40px 0;
    background-color: var(--gray);
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: background-color 0.3s;
}

#modal-bathtub-icon {
    font-size: 120px; /* Tamaño grande para la bañera */
    transition: color 0.4s ease; /* Transición suave al cambiar color */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.mini-color-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.mini-color-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: transform 0.2s;
}

.mini-color-circle:hover, .mini-color-circle.active {
    transform: scale(1.2);
    border-color: var(--brand-green);
}

/* --- GRID PARA LAS APPS --- */
.apps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.app-column {
    flex: 1;
    min-width: 300px; /* Se apila en móviles */
}

/* --- ESTILOS VIDEO INTERACTIVO Y APPS --- */
.apps-grid { display: flex; flex-wrap: wrap; gap: 30px; margin: 40px 0; }
.app-column { flex: 1; min-width: 300px; }

.video-app-container {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-blue);
    height: 100%;
}

/* El contenedor del video (Arreglado) */
.video-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto; 
    aspect-ratio: 1 / 1; /* Cuadrado perfecto 300x300 */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block; /* Evita espacios extra abajo */
}

/* --- BOTÓN PLAY/STOP SUPERPUESTO --- */
.play-pause-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white; border: 2px solid white;
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease; /* Anima tanto el color como la opacidad */
    z-index: 10;
}

.play-pause-overlay:hover { background-color: rgba(0, 0, 0, 0.8); transform: translate(-50%, -50%) scale(1.1); }

/* Estado Stop */
.play-pause-overlay.is-playing { border-radius: 10px; background-color: rgba(0, 0, 0, 0.2); }
.play-pause-overlay.is-playing:hover { background-color: rgba(0, 0, 0, 0.6); }

/* Controles Centrados */
.video-controls { display: flex; gap: 10px; margin-top: 20px; }
/* --- CORRECCIÓN BOTÓN BEFORE/AFTER EN PC --- */
.video-controls-centered { 
    max-width: 380px; /* Aumentamos el ancho de 300px a 380px */
    margin: 20px auto 0; 
}
    .btn-video { 
    flex: 1; 
    padding: 15px 5px; /* Reducimos un poco el padding lateral */
    border: none; 
    border-radius: 5px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.3s; 
    color: white; 
    font-size: 1rem; 
    white-space: nowrap; /* ESTA ES LA CLAVE: Evita que el texto baje a otra línea */
}
.btn-before { background-color: #555; }
.btn-after { background-color: var(--brand-green); }
.btn-video:hover { opacity: 0.9; transform: translateY(-2px); }

@media (max-width: 768px) {
    .apps-grid { flex-direction: column; }
    .btn-video { font-size: 0.9rem; padding: 12px 5px; }
}

/* Estilos para el SVG en el modal */
.bathtub-preview-container {
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-bathtub-svg {
    width: 100%;
    max-width: 250px; /* Tamaño aumentado */
    height: auto;
    transition: fill 0.4s ease; /* Transición suave de color */
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

/* Aseguramos que los títulos sean responsivos aunque sean grandes */
@media (max-width: 768px) {
    .font-lobster.text-center[style*="font-size: 3rem"] {
        font-size: 2.2rem !important;
    }
}


.bathtub-preview-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}

#modal-bathtub-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.color-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    /* MÁSCARA: Obliga al color a tomar la forma exacta de la bañera */
    /* Asegúrate de que la ruta coincida con tu imagen sin fondo */
    -webkit-mask-image: url('../img/das.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('../img/das.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;

    mix-blend-mode: multiply;
    transition: background-color 0.4s ease;
    pointer-events: none;
}

/* --- BOTÓN HOW (Círculo Naranja) --- */
.btn-how-circle {
    background-color: var(--brand-orange); 
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0; /* Evita que el botón se aplaste al reducir la pantalla */
    z-index: 2;
}

.btn-how-circle:hover {
    transform: scale(1.1);
    background-color: #e68a00;
}

/* --- ESTILOS DEL MODAL HOW IT WORKS --- */
.how-modal-content {
    max-width: 600px; /* Un poco más ancho para dar espacio al texto */
    max-height: 90vh; /* Evita que se desborde la pantalla */
    overflow-y: auto; /* Permite hacer scroll interno si la pantalla es muy pequeña */
}

.how-process-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.how-text-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: justify;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .btn-how-circle {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
}

/* --- CORRECCIÓN FORMULARIO MÓVIL (TURNSTILE) --- */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden; /* Evita que el ancho de 300px del captcha rompa la pantalla */
    margin-top: 10px;
}

@media (max-width: 480px) {
    /* Reducimos el padding lateral en celulares para dar espacio a los inputs y al captcha */
    .quote-form-wrapper { padding: 25px 15px; }
}

/* --- GOOGLE REVIEWS SECTION --- */
.reviews-section {
    padding: 60px 0 80px;
    background-color: var(--gray);
}

.reviews-header { margin-bottom: 40px; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #4285F4; /* Azul de Google */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    background-size: cover;
    background-position: center;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.05rem;
}

.author-date {
    font-size: 0.85rem;
    color: #777;
}

.google-icon {
    position: absolute;
    right: 0;
    top: 5px;
    color: #4285F4;
    font-size: 1.5rem;
}

.review-stars {
    color: #fbbc05; /* Amarillo estándar de reseñas */
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin: 0;
}

/* --- GOOGLE REVIEWS DINÁMICO & CAROUSEL --- */
.reviews-section { padding: 60px 0 80px; background-color: var(--gray); }

.reviews-top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }

.reviews-stats { display: flex; align-items: center; gap: 15px; }
.score-number { font-size: 3.5rem; font-weight: bold; color: #e7711b; line-height: 1; }
.score-details .global-stars { color: #fbbc05; font-size: 1.5rem; }
.total-reviews { font-size: 1rem; color: #555; }

.reviews-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-google-blue { background-color: #1a73e8; color: white; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; transition: background 0.2s; border: none; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.btn-google-blue:hover { background-color: #1557b0; }

.carousel-wrapper { position: relative; width: 100%; display: flex; align-items: center; }

/* El track oculta el scrollbar pero permite el scroll nativo o por JS */
.carousel-track { 
    display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; 
    padding: 10px 5px; width: 100%; -ms-overflow-style: none; scrollbar-width: none; 
    scroll-snap-type: x mandatory; /* <--- Faltaba esto: Activa el imán al hacer swipe */
}
.carousel-track::-webkit-scrollbar { display: none; } /* Oculta la barra en Chrome/Safari */

.review-card { 
    min-width: 320px; max-width: 350px; background: var(--white); padding: 25px; 
    border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); flex-shrink: 0; 
    scroll-snap-align: start; /* <--- Faltaba esto: El imán se pega al inicio de cada tarjeta */
}
.review-author { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; position: relative; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; }
.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: bold; color: var(--text-color); font-size: 1rem; }
.author-date { font-size: 0.85rem; color: #777; }
.google-icon { position: absolute; right: 0; top: 0; color: #4285F4; font-size: 1.3rem; }
.review-stars { color: #fbbc05; margin-bottom: 10px; font-size: 1rem; }
.review-text { font-size: 0.95rem; line-height: 1.5; color: #444; }

/* Flechas semitransparentes */
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; background: rgba(255,255,255,0.85); border: 1px solid #ddd; border-radius: 50%; color: #333; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 8px rgba(0,0,0,0.15); z-index: 10; transition: all 0.2s; }
.carousel-arrow:hover { background: white; transform: translateY(-50%) scale(1.1); color: var(--primary-blue); }
.left-arrow { left: -20px; }
.right-arrow { right: -20px; }

@media (max-width: 768px) {
    .reviews-top-bar { flex-direction: column; align-items: center; text-align: center; }
    
    /* --- CORRECCIÓN ANCHO DE TARJETA EN MÓVIL --- */
    .review-card { 
        min-width: unset; /* Quitamos los 320px forzados de PC */
        max-width: unset;
        width: 85vw; /* Ocupa el 85% de la pantalla para que no se corte y asome la siguiente */
    }

    .left-arrow { left: -10px; }
    .right-arrow { right: -10px; }
}

/* --- ESTRELLA PROMOCIONAL (CORNER BADGE) --- */
.promo-star-badge {
    position: absolute;
    top: -55px;      /* En PC: Movido más arriba (antes -30px) */
    right: -95px;    /* En PC: Movido más a la derecha (antes -30px) para no tapar el precio */
    width: 155px;    /* Aumentamos el tamaño para acomodar la letra más grande */
    height: 155px;
    background-color: #ffe600;
    color: #e65100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem; /* Texto base bastante más grande */
    font-weight: 800;
    line-height: 1.1; /* Interlineado bien pegadito */
    padding: 15px;
    z-index: 10;
    
    /* Nueva estrella de 20 puntas (da más espacio en el centro para el texto) */
    clip-path: polygon(50% 0%, 56% 11%, 68% 5%, 71% 16%, 83% 14%, 82% 26%, 94% 28%, 89% 39%, 99% 45%, 91% 54%, 98% 63%, 88% 69%, 92% 81%, 80% 83%, 78% 95%, 66% 91%, 59% 100%, 50% 90%, 41% 100%, 34% 91%, 22% 95%, 20% 83%, 8% 81%, 12% 69%, 2% 63%, 9% 54%, 1% 45%, 11% 39%, 6% 28%, 18% 26%, 17% 14%, 29% 16%, 32% 5%, 44% 11%);
    
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4));
    transform: rotate(10deg);
}

.promo-star-badge span {
    transform: rotate(-10deg); /* Enderezamos el texto */
    margin-top: 5px; /* Lo centra visualmente respecto a las puntas */
}

/* Estilo para la palabra FREE, ahora sin display: block para que no empuje el texto hacia abajo */
.free-text {
    color: #d32f2f;
    font-size: 1.3rem; 
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .promo-star-badge {
        width: 130px;
        height: 130px;
        top: -20px;
        right: -50px; /* En móvil: 5px más a la derecha como pediste (antes -15px) */
        font-size: 0.70rem; /* Letra más grande en móvil */
        padding: 10px;
    }
    .free-text { font-size: 1.1rem; }
}

/* --- ANIMACIÓN PEEK (ASOMO/TIRÓN) PARA CELULARES --- */
@keyframes mobile-peek {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-50px); } /* Tira a la izquierda para asomar la reseña 2 */
    30% { transform: translateX(10px); }  /* Rebota un poquito */
    45% { transform: translateX(0); }     /* Vuelve a su lugar */
}

.track-peek {
    /* Ejecuta la animación durando 2 segundos, con un retraso de 0.5s tras aparecer en pantalla */
    animation: mobile-peek 2s cubic-bezier(0.25, 1, 0.5, 1) 0.5s; 
}

/* --- Promotional Styles --- */
:root {
    --promo-orange: #fd7e14;
    --promo-white: #ffffff;
}

/* 1. Marquee Sticky */
.promo-marquee-wrapper {
    background-color: var(--promo-orange);
    color: var(--promo-white);
    padding: 10px 0;
    overflow: hidden;
    /* SE CAMBIÓ a position: fixed y width: 100% */
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1100;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.promo-marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- NUEVO: Estilo del Botón en la Marquesina --- */
.promo-click-btn {
    background: var(--promo-white);
    color: var(--promo-orange);
    padding: 4px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    margin-left: 20px;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: inline-block;
    vertical-align: middle;
}

/* 2. Modal Styles (Corregido: Scroll y Zoom) */
.notice-modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}

.notice-modal.active { display: flex; opacity: 1; }

.modal-card {
    background: white; width: 90%; max-width: 650px; border-radius: 12px;
    position: relative; color: #333; 
    max-height: 85vh; /* Altura máxima para no chocar con bordes del celular */
    display: flex; flex-direction: column; overflow: hidden;
    
    /* ANIMACIÓN ZOOM */
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* Al abrirse el modal, dispara el zoom tipo rebote */
.notice-modal.active .modal-card {
    transform: scale(1);
    opacity: 1;
}

.modal-card.with-bg { background-size: cover; background-position: center; }

.modal-overlay {
    background: rgba(255, 255, 255, 0.95); 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    max-height: 100%;
    box-sizing: border-box; /* Asegura que el padding no desborde el alto */
    overflow: hidden; /* Evita que el overlay crezca más de la tarjeta */
}

.modal-card.with-bg .modal-overlay { 
    background: rgba(0, 0, 0, 0.8); 
    color: white; 
}

.close-notice {
    position: absolute; top: 10px; right: 20px; font-size: 35px; cursor: pointer; z-index: 10; line-height: 1;
}

/* El cuerpo ahora tomará el espacio sobrante y creará su propio scroll */
.modal-body {
    flex-grow: 1;
    overflow-y: auto; /* Aparece scrollbar solo si es necesario */
    margin: 20px 0;
    padding-right: 15px; /* Espacio para que el scroll no tape el texto */
    min-height: 0; /* ¡ESTA ES LA CLAVE! Obliga a Flexbox a respetar los límites y usar la barra de scroll */
}

/* Hacemos el scrollbar bonito y elegante */
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 10px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--promo-orange); border-radius: 10px; }

/* Asegurar que las imágenes/videos WYSIWYG no desborden */
.modal-body img, .modal-body iframe, .promo-body-wysiwyg img, .promo-body-wysiwyg iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* =======================================================
   3. STATIC PROMO BANNER (SERVICES PAGE)
   ======================================================= */
.static-promo-banner {
    margin: 30px 0 50px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.static-promo-content {
    /* Aquí está la clave del espaciado: 40px de padding por todos lados */
    padding: 40px; 
    border-radius: 12px;
}

/* Espaciado dentro del editor WYSIWYG para el banner */
.promo-body-wysiwyg {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 15px;
}

/* Hacer que en celulares el padding sea un poco menor pero igual respete los bordes en services.php*/
@media (max-width: 768px) {
    .static-promo-content {
        padding: 25px 20px; 
    }
    .static-promo-banner h2.font-titan {
        font-size: 1.8rem !important; /* Ajusta el título en móvil */
    }
}

/* --- CORRECCIÓN DE Z-INDEX PARA SWEETALERT TOAST --- */
.swal2-container {
    z-index: 99999 !important; /* Fuerza a la notificación a estar por encima de TODO (incluso la franja naranja) */
}