/* Reset & Foundation */
:root {
    scroll-behavior: smooth;
    --white: #FFFFFF;
    --black: #0F0F0F;
    --gold: #D4AF37;
    /* Metallic Gold */
    --gold-hover: #C5A028;
    --gray-light: #F9F9F9;
    --gray-medium: #E0E0E0;
    --font-main: 'Outfit', sans-serif;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SOLUCIÓN DEFINITIVA al desbordamiento horizontal en móvil:
   - overflow-x: clip en body NO crea un nuevo bloque de contención,
     así que NO rompe position:fixed (a diferencia de overflow-x: hidden).
   - max-width: 100vw impide que el contenido estire el viewport.
   - overflow-x: hidden en html como fallback para navegadores viejos. */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-weight: 500;
    overflow-x: clip;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-center {
    text-align: center;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gold-text {
    color: var(--gold);
    font-weight: 600;
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    padding: 0.6rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    /* IMPORTANTE: NO usar backface-visibility, will-change, ni translateZ aquí.
       Estas propiedades crean capas de compositing que causan clipping
       del header en navegadores móviles durante el scroll nativo. */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--black);
    padding-left: 0.5rem;
}

.nav {
    display: flex;
    gap: 0.1rem;
    align-items: center;
}

.nav a {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    transition: var(--transition);
    color: #333;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    background: #fdfaf3;
    /* Light cream background as in the mockup */
    color: var(--gold);
}

/* Hide the extra Contact link on desktop */
#nav-contacto-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    #nav-contacto-desktop {
        display: inline-block !important; /* Keep it in mobile menu */
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
    border-radius: 100px;
    padding: 0.9rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(184, 151, 88, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Ensure the header button keeps its gold style */
.header .btn-primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    padding: 0.6rem 1.6rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.header .btn-primary:hover {
    background-color: #a0814a;
    /* Slightly darker gold on hover */
    transform: translateY(-2px);
}

.btn-primary:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--black);
    border-radius: 100px;
    padding: 0.9rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-secondary:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--black);
    color: var(--black);
    width: 100%;
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Mobile Menu Button & Close Button - Hidden by default for desktop */
.mobile-close-btn {
    display: none !important;
}

.mobile-menu-btn {
    display: none !important;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    z-index: 1100;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--black);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh; /* Dynamic Viewport Height para evitar saltos en móvil */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Header offset */
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    /* ELIMINADO: transform: translateZ(0) causaba que el header position:fixed
       se recortara en navegadores móviles al hacer scroll.
       translateZ(0) crea una capa de compositing que interfiere con fixed elements. */
}

.sub-hero {
    height: 60vh;
    height: 60dvh; /* Estabiliza el height al aparecer/desaparecer la barra de dirección */
    min-height: 400px;
}

.hero-title {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
}

.hero-buttons .btn {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
        min-width: unset !important;
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--gray-light);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    opacity: 0;
    animation: slideInFromLeft 0.8s ease-out forwards;
    display: inline-block;
    /* Ensure centered text works with block transform */
}

/* Alternate animation for odd sections if desired, or keep consistent */
.section:nth-child(even) .section-title {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border: 1px solid var(--gray-medium);
    border-radius: 16px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    padding: 3rem 2rem;
    border: 1px solid var(--gray-medium);
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gold);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-medium);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--black);
}

.period {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

.features-list {
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #444;
}

.features-list li span {
    color: var(--gold);
    font-weight: 700;
}

/* Categorized Pricing */
.pricing-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* Expanded gap to separate autonomous and salon groups clearly */
}

.pricing-category-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.category-label {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--black);
    padding: 0.5rem 0;
    margin: 3rem 0 2rem 0;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.category-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15%;
    width: 70%;
    height: 3px;
    background: var(--gold);
    border-radius: 10px;
}

.category-label.blue {
    background: var(--black);
    /* Removed blue for premium monochromatic look */
}

.pricing-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    flex-grow: 1;
}

.pricing-card {
    padding: 3rem 2.2rem; /* Restore generous padding */
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    position: relative;
    box-sizing: border-box;
    align-items: stretch; /* Keep content stretched/left-aligned */
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(184, 151, 88, 0.3);
    z-index: 10;
}

.pricing-card.premium {
    border: none;
    background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
    box-shadow: inset 0 0 0 2px var(--gold);
    border-radius: 20px;
    z-index: 1;
}

.pricing-card.premium:hover {
    box-shadow: inset 0 0 0 2px var(--gold), 0 25px 50px rgba(184, 151, 88, 0.2);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 12rem;
    /* Strategic height to align all lists */
    justify-content: flex-start;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--black);
    margin: 0.5rem 0;
    letter-spacing: 2px;
}

.card-header .price {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--black);
    white-space: nowrap;
    margin: 0.5rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.card-header .price .period {
    font-size: 0.85rem;
    font-weight: 400;
    color: #999;
}

.card-header .description {
    font-size: 0.82rem;
    color: #777;
    margin-top: auto;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    padding: 0 0.5rem;
}

.features-list {
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features-list.tight li {
    margin-bottom: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #444;
    min-height: 3.8rem;
    /* Absolute level alignment */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.features-list.tight li:last-child {
    border-bottom: none;
}

.features-list.tight li span {
    color: var(--gold);
    font-weight: 900;
    font-size: 0.9rem;
    min-width: 20px;
}

.pricing-card .btn {
    width: 200px !important;
    min-width: 200px !important;
    margin: 1.5rem auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
    text-align: center !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px !important;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .pricing-categories {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        align-items: stretch;
    }
}

/* Bot Trigger (Wrapper) */
.bot-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: row-reverse; /* Avatar first in DOM for sibling selector, then flex-reverse to put it on right */
    align-items: center;
    gap: 1rem;
    z-index: 999;
    pointer-events: none; /* Ensures the wrapper doesn't block background clicks */
    transition: var(--transition);
}

.bot-avatar {
    width: 60px;
    height: 60px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--gold);
    pointer-events: auto; /* Only the circle is interactive */
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.bot-message {
    background: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
}

/* Solo mostrar el mensaje al pasar el ratón por el avatar */
.bot-avatar:hover ~ .bot-message {
    opacity: 1;
    transform: translateX(0);
}

.bot-avatar:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .bot-trigger {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    /* Ocultar el mensaje en móvil para evitar tapar el footer/logo de Zyntara */
    .bot-message {
        display: none !important;
    }
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        /* FIX DEFINITIVO bug móvil: se eliminan TODAS las propiedades que crean
           capas de compositing (transform, backdrop-filter, backface-visibility,
           will-change, perspective) para que position:fixed funcione correctamente
           en iOS Safari y Chrome Android durante el scroll nativo. */
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
        padding: 1rem 1.5rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        /* NO usar will-change, backface-visibility, isolation, ni ninguna
           propiedad que fuerce compositing layers */
        will-change: auto !important;
        -webkit-backface-visibility: visible !important;
        backface-visibility: visible !important;
        transition: none !important;
    }

    /* Desactivar propiedades GPU en móvil que interfieren con position:fixed del header */
    .hero {
        transform: none !important;
    }
    .premium-hero-card {
        perspective: none !important;
        transform-style: flat !important;
    }
    .premium-card-inner {
        will-change: auto !important;
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 10, 10, 0.98) !important;
    }
    .floating-gold-orb {
        will-change: auto !important;
        transform: none !important;
        -webkit-backface-visibility: visible !important;
        backface-visibility: visible !important;
    }
    .premium-card-title {
        will-change: auto !important;
        transform: none !important;
    }

    /* Contener desbordamiento horizontal en TODAS las secciones.
       Los elementos con position:absolute y right/left negativos (glow, orbs)
       causan que la página sea más ancha que el viewport, provocando:
       - Barra blanca a la derecha al pellizcar/arrastrar
       - Header que se recorta al no cubrir el ancho desbordado */
    .section,
    .hero,
    .footer,
    .sub-footer {
        overflow-x: clip !important;
        max-width: 100vw !important;
    }

    /* Los glow backgrounds se salen 200px del viewport — ocultarlos en móvil */
    .premium-glow {
        display: none !important;
    }

    /* Las animaciones fade-right y fade-left usan translateX que desborda */
    [data-animate="fade-right"] {
        transform: translateY(30px) !important; /* Usar fadeUp en vez de fadeRight */
    }
    [data-animate="fade-left"] {
        transform: translateY(30px) !important; /* Usar fadeUp en vez de fadeLeft */
    }
    [data-animate].visible {
        transform: translate(0, 0) !important;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.8rem !important;
        font-weight: 800 !important;
        line-height: 1.15;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .header .btn-primary {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-100%);
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2000;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav a {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0.8rem 0;
        text-align: center;
        width: 100%;
        display: block;
        padding: 15px 0;
        color: #1a1a1a;
        text-decoration: none;
        letter-spacing: 1px;
    }

    .nav a:hover,
    .nav a.active {
        background: none;
        color: var(--gold);
    }

    .mobile-close-btn {
        position: absolute;
        top: 30px;
        right: 30px;
        background: none;
        border: none;
        font-size: 2.5rem;
        color: #111;
        cursor: pointer;
        z-index: 2001;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    /* Fix for About Section Mobile Spacing */
    .sobre-header {
        margin-bottom: 1.5rem !important;
    }
    .sobre-content {
        gap: 1.5rem !important;
        /* No need for column-reverse anymore because mobile image is inline */
    }
    .desktop-only-img {
        display: none !important;
    }
    .sobre-image-mobile {
        display: block !important;
        margin-top: 1rem;
    }
}

/* Hide mobile image by default (desktop view) */
.sobre-image-mobile {
    display: none;
}

/* --- FAQ Styles --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-medium);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--black);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--gold);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Approximate max height */
    padding-bottom: 1.5rem;
}


/* --- Premium Animations --- */

/* Initial state for animated elements */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 1. Fade Up (Default) */
[data-animate="fade-up"] {
    transform: translateY(30px);
}

/* 2. Fade Right (From Left) */
[data-animate="fade-right"] {
    transform: translateX(-50px);
}

/* 3. Fade Left (From Right) */
[data-animate="fade-left"] {
    transform: translateX(50px);
}

/* Visible State (Triggered by JS) */
[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Ensure delays work with the visible class */
[style*="transition-delay"] {
    transition-delay: inherit;
}

/* Contact Section - Side-by-Side Premium Redesign */
.premium-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
    /* Changed from center to align with form top */
    max-width: 1000px;
    /* Reduced max-width for better centering */
    margin: 0 auto;
}

.premium-contact-info {
    display: flex;
    flex-direction: column;
    /* justify-content removed to prevent bad stretching; let items pack tighter */
}

.premium-contact-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    /* Compact top spacing */
}

.premium-contact-info>p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
}

.premium-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Compact inner spacing */
    margin-top: auto;
    margin-bottom: auto;
    /* Adjusted for flow */
}

.premium-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Compact icon and text gap */
}

.premium-icon-circle {
    width: 50px;
    height: 50px;
    background: var(--gray-light);
    border: 1px solid var(--gray-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--black);
    transition: var(--transition);
}

.premium-contact-item:hover .premium-icon-circle {
    background: var(--black);
    color: var(--gold);
    border-color: var(--black);
    transform: scale(1.05);
}

.premium-contact-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 0.2rem;
}

.premium-contact-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
}

.premium-hours-card {
    background: var(--black);
    color: var(--white);
    padding: 1.8rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-top: auto;
    /* Push it down naturally if height expands */
}

.premium-hours-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.15;
}

.premium-hours-card h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.premium-hours-card p {
    font-size: 1rem;
    opacity: 0.9;
}

.premium-contact-section {
    padding: 3rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--gray-medium);
    height: 100%;
    display: flex;
    align-items: center;
}

.premium-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced from 1.5rem */
    width: 100%;
}

.form-row {
    width: 100%;
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}



.premium-input {
    background: #f4f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: var(--transition);
}

.premium-input:focus-within {
    border-color: var(--black);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.premium-input label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
}

.premium-input label.required::after {
    content: ' *';
    color: inherit;
    margin-left: 2px;
}

.premium-input input,
.premium-input textarea,
.premium-input select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--black);
    width: 100%;
    outline: none;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.premium-input input:focus,
.premium-input textarea:focus,
.premium-input select:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Add custom arrow for select */
.premium-input select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem top 50%;
    background-size: 0.65rem auto;
}

.premium-input input::placeholder,
.premium-input textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.premium-input textarea {
    resize: vertical;
    min-height: 80px;
    /* Matched Shadcn */
}

.btn-premium-submit {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem; /* Reduced from 1rem since form gap already exists */
    width: 100%;
}

.btn-premium-submit:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer Redesign */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 5rem 0 2rem;
    text-align: left;
    /* Override previous center */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Sub-footer for designer attribution */
.sub-footer {
    background: var(--black);
    padding: 0 0 3rem 0;
    text-align: center;
    border-top: none;
}

.sub-footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.sub-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
}

.sub-footer-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sub-footer-logo {
    max-width: 140px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.sub-footer-logo:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 0 0.2rem;
    text-align: center;
    width: 100%;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin: 0;
}

/* Responsive Updates */
@media (max-width: 900px) {
    .premium-contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem;
    }

    .premium-contact-info {
        order: 1 !important;
        width: 100% !important;
    }

    .premium-contact-section {
        order: 2 !important;
        width: 100% !important;
        display: block !important;
    }

    .split-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .premium-contact-grid {
        gap: 2rem;
    }

    .premium-contact-section {
        padding: 2rem 1.5rem;
    }
}

/* --- Aviso Box Styles --- */
.aviso-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fafafa;
    border: 1px solid rgba(184, 151, 88, 0.15);
    border-top: 4px solid #b89758;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .aviso-box {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}

/* --- Premium Transforma Section --- */
.luxury-bg {
    background-color: #fafafa;
    overflow: hidden;
}

.premium-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
}

.gold-text-animated {
    background: linear-gradient(135deg, #b89758 0%, #e5c98a 30%, #b89758 70%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShine 5s linear infinite;
    display: inline-block;
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

.premium-questions-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    margin-top: 2.5rem;
}

.premium-question-card {
    background: #ffffff;
    padding: 2.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(184, 151, 88, 0.4);
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.premium-question-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(184, 151, 88, 0.12);
    border-color: rgba(184, 151, 88, 0.6);
}

.premium-question-card p {
    margin: 0;
    font-size: 1.15rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

/* Premium Hero Card */
.premium-hero-card {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    border-radius: 30px;
    padding: 2px; /* For grandient border */
    background: linear-gradient(135deg, rgba(184, 151, 88, 0.8) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(184, 151, 88, 0.6) 100%);
    background-size: 300% 300%;
    animation: luxuriousBorderFlow 6s ease-in-out infinite alternate;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2), inset 0 0 20px rgba(184, 151, 88, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    contain: layout; /* Isolate layout calculation */
    isolation: isolate; /* Create new stacking context */
}

@keyframes luxuriousBorderFlow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.premium-card-inner {
    background: #0a0a0a; /* Fallback for older browsers */
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
    transform: translateZ(0);
}

.premium-card-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(184, 151, 88, 0.1) 90deg, transparent 180deg, rgba(184, 151, 88, 0.05) 270deg, transparent 360deg);
    animation: goldRotate 15s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes goldRotate {
    to { transform: rotate(360deg); }
}

.floating-gold-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 151, 88, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
    will-change: transform, opacity;
    transform: translateZ(0);
    pointer-events: none;
    backface-visibility: hidden; /* Avoid flickering */
}

.orb-1 { width: 350px; height: 350px; top: -150px; right: -100px; }
.orb-2 { width: 300px; height: 300px; bottom: -100px; left: -100px; animation-delay: -4s; }

@keyframes orbFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.4; }
    100% { transform: translateY(-40px) scale(1.1); opacity: 0.8; }
}

.star-pulse {
    font-size: 2.5rem;
    color: #b89758;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.7; text-shadow: 0 0 10px rgba(184, 151, 88, 0.2); }
    50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 25px rgba(184, 151, 88, 0.8); }
}

.premium-card-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #e5c98a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    will-change: transform;
    transform: translateZ(0);
}

.premium-card-subtitle {
    font-size: 1.4rem;
    color: #b89758;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 3.5rem;
}

.premium-button-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.premium-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cba25a, #b89758);
    color: #fff !important;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 10px 20px rgba(184, 151, 88, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    text-decoration: none;
}

.premium-btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(184, 151, 88, 0.5);
    background: linear-gradient(135deg, #d8ac66, #cba25a);
}

.premium-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff !important;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    text-decoration: none;
}

.premium-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Background glows */
.premium-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 151, 88, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -200px;
    left: -200px;
}

.glow-2 {
    bottom: -200px;
    right: -200px;
}

@media (max-width: 768px) {
    .premium-card-inner {
        padding: 3rem 1.5rem;
    }
    
    .premium-btn-solid, .premium-btn-outline {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ================================================
   VANILLA COOKIECONSENT V3 — PREMIUM OVERRIDES
   ================================================ */

#cc-main {
    --cc-font-family: 'Outfit', sans-serif;

    /* Layout radii */
    --cc-modal-border-radius: 20px;
    --cc-btn-border-radius: 50px;
    --cc-toggle-border-radius: 50px;

    /* Colors */
    --cc-bg:                        #ffffff;
    --cc-primary-color:             #0f0f0f;
    --cc-secondary-color:           #666666;

    /* Primary button */
    --cc-btn-primary-bg:            #0f0f0f;
    --cc-btn-primary-color:         #ffffff;
    --cc-btn-primary-border-color:  #0f0f0f;
    --cc-btn-primary-hover-bg:      #D4AF37;
    --cc-btn-primary-hover-color:   #ffffff;
    --cc-btn-primary-hover-border-color: #D4AF37;

    /* Secondary button */
    --cc-btn-secondary-bg:          transparent;
    --cc-btn-secondary-color:       #0f0f0f;
    --cc-btn-secondary-border-color: rgba(0,0,0,0.22);
    --cc-btn-secondary-hover-bg:    rgba(0,0,0,0.05);
    --cc-btn-secondary-hover-color: #0f0f0f;
    --cc-btn-secondary-hover-border-color: #0f0f0f;

    /* Toggle switch — gold when on */
    --cc-toggle-on-bg:              #D4AF37;
    --cc-toggle-off-bg:             #d1d5db;
    --cc-toggle-readonly-bg:        #D4AF37;
    --cc-toggle-on-knob-bg:         #ffffff;
    --cc-toggle-off-knob-bg:        #ffffff;
    --cc-toggle-readonly-knob-bg:   rgba(255,255,255,0.75);

    /* Overlay */
    --cc-overlay-bg:                rgba(0,0,0,0.45);
    --cc-overlay-backdrop-filter:   blur(5px);

    /* Borders */
    --cc-separator-border-color:    #ebebeb;
    --cc-cookie-category-block-bg:  #f9f9f9;
    --cc-cookie-category-block-border: #e5e5e5;
    --cc-cookie-category-block-hover-bg: #f5f0e4;

    /* Links */
    --cc-link-color:                #D4AF37;
    --cc-link-hover-color:          #b89758;

    /* Shadows */
    --cc-consent-modal-box-shadow:  0 24px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
    --cc-preferences-modal-box-shadow: 0 32px 80px rgba(0,0,0,0.2), 0 4px 20px rgba(0,0,0,0.08);

    /* Preferences modal size */
    --cc-pm-max-width:              660px;
}

/* ── Consent Banner ── */
#cc-main .cm__title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.2px;
}

#cc-main .cm__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

#cc-main .cm__btn {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
}

/* Desktop: pin banner to bottom-right with margin */
@media (min-width: 688px) {
    #cc-main .cm-wrapper {
        padding: 0 2rem 2rem 0;
        justify-content: flex-end;
        align-items: flex-end;
    }

    #cc-main .cm--box {
        max-width: 380px;
        animation: cc-slide-in-right 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes cc-slide-in-right {
        from { opacity: 0; transform: translateX(40px) translateY(20px); }
        to   { opacity: 1; transform: translateX(0) translateY(0); }
    }

    /* Consent footer (política de cookies link) */
    #cc-main .cm__footer {
        padding: 0.8rem 1.4rem;
        border-top: 1px solid #f0f0f0;
        background: #fafafa;
        border-radius: 0 0 20px 20px;
    }
}

/* Mobile: full-width at the very bottom */
@media (max-width: 687px) {
    #cc-main .cm--box {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
    }

    #cc-main .cm-wrapper {
        padding: 0;
        align-items: flex-end;
        justify-content: center;
    }

    #cc-main .cm__btns {
        flex-direction: column;
    }
}

/* ── Preferences Modal — Premium Full Redesign ── */
#cc-main .pm__title {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
}

/* Remove the large empty mid-section gap */
#cc-main .pm__body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

#cc-main .pm__sections {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Introductory info section */
#cc-main .pm__section:not(.pm__section--toggle) {
    background: linear-gradient(135deg, #fdfcf8 0%, #f5f0e4 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 0.4rem;
}

#cc-main .pm__section-title:not(.pm__section--toggle .pm__section-title) {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f0f0f;
    margin-bottom: 0.4rem;
}

#cc-main .pm__section-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.55;
}

/* ── Toggle category blocks ── */
#cc-main .pm__section--toggle {
    border-radius: 14px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#cc-main .pm__section--toggle:hover {
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.1);
}

/* ── Fix circular badge icon — no clipping ── */
#cc-main .pm__badge {
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-right: 0.8rem;
}

/* Ensure necessary badge uses same colors but slightly different */
#cc-main .pm__section--toggle.is-readonly .pm__badge {
    background: rgba(212, 175, 55, 0.2);
    color: #b89758;
}

/* Keep the text title from going under the badge or toggle */
#cc-main .pm__section-title {
    font-weight: 700;
    font-size: 0.94rem;
    color: #0f0f0f;
    letter-spacing: -0.1px;
}

/* Expand arrow button */
#cc-main .pm__section-toggler {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
}

/* Expanded section description */
#cc-main .pm__section-desc-wrapper {
    border-top: 1px solid #f0f0f0;
}

#cc-main .pm__section-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.55;
}


/* ── Modal footer buttons ── */
#cc-main .pm__footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid #ebebeb;
    background: #fafafa;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#cc-main .pm__btn {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.8rem 1.4rem;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

/* Link in consent modal footer */
#cc-main .cm__footer .cc__link {
    font-weight: 600;
    font-size: 0.82rem;
}

/* ── Footer "Gestionar cookies" button ── */
.footer-links .cookie-manage-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 0.95rem;
    font-family: var(--font-main);
    font-weight: 500;
    padding: 0;
    transition: var(--transition);
    text-align: left;
    display: inline-block;
    width: auto;
}

.footer-links .cookie-manage-btn:hover {
    color: var(--white);
    padding-left: 5px;
}

/* ══════════════════════════════════════════════════════════════
   FORMULARIO — Validación de campos
   ══════════════════════════════════════════════════════════════ */

/* Asterisco de campo obligatorio */
.field-required {
    color: #b89758;
    font-weight: 700;
    margin-left: 2px;
    font-size: 1em;
}

/* Mensajes de error inline */
.field-error {
    display: none;
    font-size: 0.78rem;
    color: #c0392b;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Input con error */
.premium-input input.input-error,
.premium-input textarea.input-error {
    border-color: #c0392b !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.10) !important;
}

/* Select con error */
.premium-input select.input-error {
    border-color: #c0392b !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.10) !important;
}

/* Select válido */
.premium-input select.input-valid {
    border-color: #b89758 !important;
    box-shadow: 0 0 0 3px rgba(184, 151, 88, 0.12) !important;
}

/* Input válido */
.premium-input input.input-valid,
.premium-input textarea.input-valid {
    border-color: #b89758 !important;
    box-shadow: 0 0 0 3px rgba(184, 151, 88, 0.12) !important;
}

/* Checkbox de privacidad con error */
label.privacy-error {
    color: #c0392b !important;
    animation: shake 0.35s ease;
}

label.privacy-error input[type="checkbox"] {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-5px); }
    50%  { transform: translateX(5px); }
    75%  { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════════
   TOAST — Notificación de envío exitoso
   ══════════════════════════════════════════════════════════════ */

.form-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.10);
    border-top: 3px solid #D4AF37;
    max-width: 360px;
    width: calc(100vw - 3rem);
    overflow: hidden;

    /* Oculto por defecto */
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-toast.toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.form-toast.toast-hiding {
    animation: toastSlideOut 0.35s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
}

/* Icono check dorado */
.form-toast-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #b89758);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.40);
    margin-top: 1px;
}

/* Estado error del toast */
.form-toast.toast-error {
    border-top-color: #c0392b;
}

.form-toast.toast-error .form-toast-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.30);
}

.form-toast.toast-error .form-toast-progress {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Textos */
.form-toast-body {
    flex: 1;
    min-width: 0;
}

.form-toast-title {
    margin: 0 0 2px;
    font-size: 0.97rem;
    font-weight: 700;
    color: #0F0F0F;
    font-family: var(--font-main);
    letter-spacing: 0.01em;
}

.form-toast-sub {
    margin: 0;
    font-size: 0.82rem;
    color: #777;
    font-family: var(--font-main);
    font-weight: 400;
}

/* Botón X */
.form-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #999;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    margin-top: -2px;
}

.form-toast-close:hover {
    color: #0F0F0F;
    background: #f2f2f2;
}

/* Barra de progreso */
.form-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #D4AF37, #b89758);
    border-radius: 0 0 14px 14px;
}

/* ── MÓVIL: pantalla completa ─── */
@media (max-width: 640px) {
    .form-toast {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 18px 18px 0 0;
        border-top: 4px solid #D4AF37;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
        padding: 1.4rem 1.3rem 1.8rem;
    }

    .form-toast.toast-visible {
        transform: translateY(0);
    }

    .form-toast.toast-hiding {
        animation: toastSlideOutMobile 0.35s ease forwards;
    }

    @keyframes toastSlideOutMobile {
        to {
            opacity: 0;
            transform: translateY(100%);
        }
    }

    .form-toast-progress {
        border-radius: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   SELECT PREMIUM — Dropdown de asunto
   ══════════════════════════════════════════════════════════════ */

.premium-select-wrapper {
    position: relative;
    width: 100%;
}

.premium-select {
    width: 100%;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #F9F9F9 !important;
    background-image: none !important; /* Quitar la flecha negra de background-image */
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    padding: 0.85rem 3rem 0.85rem 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    color: #0F0F0F;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
}

/* Ajuste para móviles: más padding a la derecha para evitar solapamiento con la flecha */
@media (max-width: 600px) {
    .premium-select {
        padding-right: 4rem !important;
        text-overflow: ellipsis;
    }
}

/* Ocultar flecha nativa en IE/Edge */
.premium-select::-ms-expand {
    display: none;
}

.premium-select:focus {
    border-color: #b89758;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 151, 88, 0.14);
}

.premium-select:hover {
    border-color: #b89758;
}

/* Ocultar flecha nativa en Edge / IE */
.premium-select::-ms-expand {
    display: none;
}

/* Opción placeholder (disabled) */
.premium-select option[value=""][disabled] {
    color: #9ca3af;
}

/* Flecha custom */
.premium-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #b89758;
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.premium-select-wrapper:focus-within .premium-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* ══════════════════════════════════════════════════════════════
   HONEYPOT anti-spam — campo oculto para bots
   ══════════════════════════════════════════════════════════════ */

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
