/* Variables Modo Oscuro */
body.dark-mode {
    --bg-soft: #1a202c;
    --text-main: #f7fafc;
    --text-muted: #a0aec0;
    --white: #2d3748;
    --card-bg: #2d3748;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --accent-champagne: #4a4435;
    --skeleton: #4a5568;

    /* Better contrast for primary in dark mode */
    --primary: #9f7aea;
    /* Using the lighter purple as primary */
    --primary-light: #d6bcfa;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --brand-motif: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.03'%3E%3Cpath d='M0 385c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 374.3 381.97 385 410.33 385'/%3E%3Cpath d='M0 345c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 334.3 381.97 345 410.33 345'/%3E%3Cpath d='M0 305c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 294.3 381.97 305 410.33 305'/%3E%3Cpath d='M0 265c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 254.3 381.97 265 410.33 265'/%3E%3Cpath d='M0 225c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 214.3 381.97 225 410.33 225'/%3E%3Cpath d='M0 185c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 174.3 381.97 185 410.33 185'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");


    --warning: #fab005;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --glass-bg: rgba(26, 32, 44, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* --- ANIMACIÃ“N REVELACIÃ“N POR PINCELADA (Global) --- */
@keyframes brushReveal {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateX(-15px) skewX(-15deg);
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0) skewX(0);
        clip-path: inset(0 0 0 0);
    }
}

.brush-reveal .char-pincel {
    display: inline-block;
    opacity: 0;
    vertical-align: baseline;
    will-change: transform, opacity, clip-path;
}

.brush-reveal.active .char-pincel {
    animation: brushReveal 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

:root {
    --primary: #6b46c1;
    --primary-light: #9f7aea;
    --accent-gold: #d4af37;
    --accent-champagne: #f7e7ce;
    --bg-soft: #f3f0ff;
    --text-main: #2d3748;
    --text-muted: #5e6a7c;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(107, 70, 193, 0.07);
    --card-bg: var(--white);
    --skeleton: #e2e8f0;
    --border-subtle: rgba(0, 0, 0, 0.05);
    --brand-motif: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%236b46c1' stroke-opacity='0.04'%3E%3Cpath d='M0 385c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 374.3 381.97 385 410.33 385'/%3E%3Cpath d='M0 345c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 334.3 381.97 345 410.33 345'/%3E%3Cpath d='M0 305c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 294.3 381.97 305 410.33 305'/%3E%3Cpath d='M0 265c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 254.3 381.97 265 410.33 265'/%3E%3Cpath d='M0 225c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 214.3 381.97 225 410.33 225'/%3E%3Cpath d='M0 185c28.37 0 67.13-10.71 103.73-22.1 36.6-11.4 72.82-22.65 101.44-22.65 28.62 0 64.83 11.26 101.43 22.66C343.2 174.3 381.97 185 410.33 185'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --success: #00b894;
    --error: #ff7675;
    --warning: #f1c40f;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* GeometrÃ­a Squircle */
    --radius-squircle: 30px;
    --radius-btn: 18px;

    /* Animaciones OrgÃ¡nicas (Physical Motion) */
    --motion-organic: cubic-bezier(0.4, 0, 0.2, 1);
    --motion-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: 0.6s var(--motion-organic);
    --transition-main: 0.4s var(--motion-organic);

    /* Golden Ratio Typography Scale (Î¦ = 1.618) with Fluid Typography */

    /* Golden Ratio Typography Scale (Î¦ = 1.618) with Fluid Typography */
    --fs-xs: clamp(0.55rem, 0.3vw + 0.45rem, 0.618rem);
    --fs-sm: clamp(0.7rem, 0.4vw + 0.6rem, 0.8rem);
    --fs-base: clamp(0.9rem, 0.5vw + 0.75rem, 1rem);
    --fs-md: clamp(1.2rem, 1.5vw + 0.9rem, 1.618rem);
    --fs-lg: clamp(1.8rem, 3vw + 1rem, 2.618rem);
    --fs-xl: clamp(2.5rem, 5vw + 1.2rem, 4.236rem);

    /* Safe Area Insets - Soporte para notch y barras de gestos */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-soft);
    color: var(--text-main);
    overflow-x: hidden;
    /* Padding inferior ajustado para safe area + barra de navegaciÃ³n */
    padding-bottom: calc(80px + var(--safe-area-inset-bottom));
    transition: background-color 0.3s, color 0.3s;
}

/* --- MODO ADS (LANDING PAGE) --- */
body.ads-mode {
    margin-left: 0 !important;
}

body.ads-mode header {
    justify-content: center;
}

body.ads-mode .header-actions,
body.ads-mode .search-container,
body.ads-mode .categories-wrapper,
body.ads-mode #titleServices,
body.ads-mode .recent-services-container,
body.ads-mode .stories-container {
    display: none !important;
}

/* ADS FEATURES */
.ads-features {
    padding: 60px 0;
    text-align: left;
}

.ads-features h2 {
    font-family: var(--font-title);
    color: var(--primary);
    margin-bottom: 40px;
    font-size: var(--fs-lg);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-squircle);
    box-shadow: var(--shadow);
    transition: var(--transition-main);
    border: 1px solid var(--border-subtle);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-item p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ADS TEAM */
.ads-team {
    padding: 60px 0;
    text-align: left;
    background: var(--white);
    border-radius: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.specialists-grid {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
    gap: 20px;
    overflow-x: auto;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    margin-bottom: 15px;
}

.team-card span {
    color: var(--primary);
    font-weight: 500;
    font-size: var(--fs-xs);
    text-transform: uppercase;
}

/* ADS FAQ */
.ads-faq {
    padding: 60px 0;
}

.ads-faq h2 {
    text-align: left;
    margin-bottom: 40px;
    font-family: var(--font-title);
    font-size: var(--fs-lg);
    font-weight: 400;
    font-style: italic;
    color: var(--primary);
    line-height: 1.1;
}

.faq-container details {
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.faq-container summary {
    font-weight: 500;
    color: var(--text-main);
    outline: none;
}

.faq-container p {
    margin-top: 10px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

/* FINAL CTA */
.ads-final-cta {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 30px;
    margin: 60px 0;
}

.ads-final-cta h2 {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 30px;
}

.ads-final-cta .btn-reserve {
    background: white;
    color: var(--primary);
    width: auto;
    padding: 15px 40px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* STICKY CTA MOBILE */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2500;
}

@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: block;
    }
}

.sticky-cta-mobile button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 15px 30px rgba(107, 70, 193, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

body.ads-mode #servicesContainer {
    margin-top: 30px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

body.ads-mode .service-card {
    border: 2px solid var(--primary-light);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: var(--primary-light);
    }

    50% {
        border-color: var(--primary);
    }

    100% {
        border-color: var(--primary-light);
    }
}

/* ADS HERO SECTION */
.ads-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
    align-items: center;
    min-height: 400px;
    background: var(--glass-bg);
    margin: 20px 0 40px 0;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.ads-hero-content {
    padding-left: 40px;
    z-index: 2;
}

.ads-hero-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--primary);
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.ads-hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.ads-hero-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.ads-hero-badges span {
    background: var(--white);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ads-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-light), var(--accent-champagne));
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
    animation: floating 6s ease-in-out infinite;
}

.ads-hero-visual img {
    width: 200px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .ads-hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        text-align: center;
        gap: 20px;
    }

    .ads-hero-content {
        padding-left: 0;
    }

    .ads-hero-content h1 {
        font-size: 2rem;
    }

    .ads-hero-badges {
        justify-content: center;
    }

    .ads-hero-visual {
        order: -1;
    }
}

header {
    background-color: var(--glass-bg);
    background-image: var(--brand-motif);
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Padding superior ajustado para safe area (notch) */
    padding: calc(30px + var(--safe-area-inset-top)) var(--side-padding) 10px var(--side-padding);
    /* Padding lateral ajustado para safe area */
    padding-left: max(var(--side-padding), var(--safe-area-inset-left));
    padding-right: max(var(--side-padding), var(--safe-area-inset-right));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 1000;
}

.user-greeting > span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.user-greeting h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    font-family: var(--font-title);
    letter-spacing: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-selector {
    background: var(--white);
    border: 1px solid var(--primary-light);
    padding: 5px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.notification-icon {
    background: var(--white);
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--text-main);
}

#app {
    padding: 0 var(--side-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    margin: 20px 0 10px 0;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

input[type="text"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 15px;
    box-sizing: border-box;
    background: #ebe6f7;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="date"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="email"],
body.dark-mode select {
    background: #2d3748;
    color: white;
    border: 1px solid #4a5568;
}

body.dark-mode input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.categories-wrapper {
    display: flex;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    gap: 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.chip {
    white-space: nowrap;
    padding: 8px 18px;
    background: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.chip.active {
    background: var(--primary);
    color: var(--white);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 15px;
    display: block;
    font-family: var(--font-title);
    color: var(--primary);
}

#servicesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-squircle);
    padding: 15px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    transition: 
        transform 0.5s var(--motion-elastic),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        opacity 0.4s ease,
        filter 0.4s ease;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.15);
    border-color: var(--primary-light);
    background: linear-gradient(135deg, var(--card-bg), var(--bg-soft));
    z-index: 2; /* Asegura que la tarjeta enfocada estÃ© por encima */
}

.service-card:active {
    transform: scale(0.97);
}

/* --- EFECTO DE PROXIMIDAD (GLOW ADYACENTE) --- */

/* Tarjeta a la derecha: Ilumina el borde izquierdo */
.service-card:hover + .service-card {
    border-left-color: var(--primary-light);
    box-shadow: -15px 0 30px -15px rgba(159, 122, 234, 0.4);
    transform: translateX(4px) scale(1.005);
}

/* Tarjeta a la izquierda: Ilumina el borde derecho */
.service-card:has(+ .service-card:hover) {
    border-right-color: var(--primary-light);
    box-shadow: 15px 0 30px -15px rgba(159, 122, 234, 0.4);
    transform: translateX(-4px) scale(1.005);
}

/* Suavizado de la malla: AtenÃºa el resto para enfocar la conexiÃ³n activa */
#servicesContainer:hover .service-card:not(:hover):not(:has(+ .service-card:hover)):not(.service-card:hover + .service-card) {
    opacity: 0.6;
    filter: saturate(0.7) blur(0.5px);
    transform: scale(0.98);
}

.service-card img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    object-fit: cover;
    margin-right: 15px;
}

.service-info {
    flex-grow: 1;
}

.service-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
    font-family: var(--font-body);
}

.service-card .social-proof {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 3px 10px;
    background: rgba(107, 70, 193, 0.08); /* Fondo con tono lila de marca */
    border-radius: 100px; /* Forma de pÃ­ldora mÃ¡s moderna */
    width: fit-content;
    border: 1px solid rgba(107, 70, 193, 0.15);
    transition: var(--transition-main);
    backdrop-filter: blur(4px);
}

.service-card:hover .social-proof {
    background: var(--primary-light);
    border-color: var(--primary);
}

.proof-dot {
    width: 6px;
    height: 6px;
    background-color: #2ed573; /* Verde marca vida */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px rgba(46, 213, 115, 0.4);
}

.proof-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #2ed573;
    border-radius: 50%;
    animation: proofPulse 2s infinite;
}

@keyframes proofPulse {
    0% {
        width: 6px;
        height: 6px;
        opacity: 0.8;
    }
    100% {
        width: 16px;
        height: 16px;
        opacity: 0;
    }
}

.proof-text {
    font-size: 0.62rem; /* TamaÃ±o ligeramente reducido para evitar cortes */
    font-weight: 600;
    color: var(--primary); /* Color lila de marca */
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-transform: uppercase;
}

.service-card:hover .proof-text {
    color: var(--white);
}

body.dark-mode .proof-text {
    color: var(--primary-light);
}

body.dark-mode .service-card .social-proof {
    background: rgba(214, 188, 250, 0.1);
    border-color: rgba(214, 188, 250, 0.2);
}

.service-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Skeleton Loading Styles */
.skeleton-card {
    background: var(--card-bg);
    border-radius: var(--radius-squircle);
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.skeleton-img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: var(--skeleton);
    margin-right: 15px;
}

.skeleton-text-wrapper {
    flex-grow: 1;
}

.skeleton-text {
    height: 12px;
    background: var(--skeleton);
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.long {
    width: 80%;
}

.skeleton-social-proof {
    height: 16px;
    width: 100px;
    background: var(--skeleton);
    border-radius: 100px;
    margin-top: 8px;
}

.shimmer {
    overflow: hidden;
    position: relative;
}

.shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            transparent 0%,
            rgba(159, 122, 234, 0.1) 30%,
            rgba(247, 231, 206, 0.2) 50%,
            rgba(159, 122, 234, 0.1) 70%,
            transparent 100%);
    animation: shimmer 2.5s infinite linear;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.specialists-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 5px 20px 5px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.specialists-wrapper::-webkit-scrollbar {
    display: none;
}

.specialist-card {
    background: var(--card-bg);
    min-width: 160px;
    padding: 15px;
    border-radius: var(--radius-squircle);
    text-align: center;
    box-shadow: var(--shadow);
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.specialist-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--bg-soft);
}

.specialist-card h4 {
    margin: 5px 0 2px 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.specialist-card p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--primary-light);
    font-weight: 500;
}

.video-btn {
    background: var(--bg-soft);
    color: var(--primary);
    border: none;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.location-section {
    margin-top: 25px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    :root {
        --side-padding: 8vw;
    }

    .location-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

@media (min-width: 769px) {
    :root {
        --side-padding: 30px;
        /* Fixed padding for larger screens */
    }
}

.location-info {
    margin-bottom: 0;
}

.location-info p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    margin-top: 20px;
    max-width: 250px;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow);
}

/* --- ESTILO PERSONALIZADO DEL MAPA (SNAPPY MAPS STYLE VIA CSS) --- */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    transition: filter 1s ease-in-out;
    /* Ajuste elegante para modo dÃ­a */
    filter: grayscale(10%) contrast(105%) saturate(80%) sepia(5%) hue-rotate(-10deg);
}

/* Efecto de tinte Splendor (Violeta suave) */
.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: rgba(107, 70, 193, 0.05);
    mix-blend-mode: multiply;
}

body.dark-mode .map-container iframe {
    /* Ajuste profundo para modo noche (Look: Aubergine/Night) */
    filter: grayscale(100%) invert(90%) contrast(90%) brightness(100%) hue-rotate(210deg) saturate(150%);
}

body.dark-mode .map-container::after {
    background: rgba(159, 122, 234, 0.15);
    mix-blend-mode: screen;
}


.nav-bottom {
    position: fixed;
    /* Bottom ajustado para safe area (barra de gestos) */
    bottom: calc(20px + var(--safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: var(--glass-bg);
    background-image: var(--brand-motif);
    background-size: cover;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    border: 1px solid var(--glass-border);
}

.nav-item {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
    padding: 5px 0;
    border-radius: 15px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item span {
    display: block;
    font-size: 0.6rem;
    margin-top: 4px;
}

/* Efecto Haptic Ripple */
.nav-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
}

.nav-item:active::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
    transition: 0s;
}

/* Estilos del Modal - Bottom Sheet */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    overflow: hidden;
    animation: fadeInBackdrop 0.3s ease-out;
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
    will-change: transform;
    /* Smooth scrolling en iOS */
    -webkit-overflow-scrolling: touch;
}

/* AnimaciÃ³n de entrada del Bottom Sheet */
.modal.show .modal-content {
    animation: slideUpSheet 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    position: relative;
    height: 400px;
    background-color: var(--bg-soft);
    background-image: var(--brand-motif);
    background-size: cover;
    border-radius: 25px 25px 0 0;
    overflow: hidden;
}

#modalMediaContainer,
.modal-header img,
.modal-header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 10;
    color: var(--text-main);
    transition: transform 0.2s, background 0.2s, color 0.2s;
    border: 1px solid var(--glass-border);
}

.close-modal:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 1);
}

.modal-body {
    padding: 25px;
}

.modal-body h2 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-description {
    line-height: 1.6;
    color: var(--text-main);
    font-size: 0.95rem;
}

.modal-description ul {
    padding-left: 20px;
    margin: 10px 0;
}

.modal-description li {
    margin-bottom: 5px;
}

.btn-reserve {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-float {
    position: fixed;
    /* Bottom ajustado para safe area + barra de navegaciÃ³n */
    bottom: calc(100px + var(--safe-area-inset-bottom));
    /* Right ajustado para safe area */
    right: max(20px, var(--safe-area-inset-right));
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 22px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2500;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.8;
}

.whatsapp-scrolling {
    opacity: 0.4;
    transform: scale(0.85);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-light);
    display: block;
}

.btn-clear {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    margin-top: 15px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.recent-services-container {
    margin: 10px 0 25px 0;
    display: none;
    /* Se activa por JS */
}

.recent-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    scrollbar-width: none;
}

.recent-list::-webkit-scrollbar {
    display: none;
}

.recent-item {
    min-width: 140px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.recent-item:active {
    transform: scale(0.95);
}

.recent-item img {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.recent-item span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.booking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(107, 70, 193, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    color: white;
    text-align: center;
    padding: 20px;
}

/* --- MICRO-INTERACCIONES DE ESTADO (VIEW TRANSITIONS) --- */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

#servicesContainer {
    view-transition-name: services-grid;
}

/* Suavizar la entrada de las nuevas tarjetas */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::view-transition-new(services-grid) {
    animation: 0.4s slide-up cubic-bezier(0.4, 0, 0.2, 1);
}

.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    z-index: 1020;
    display: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* --- TARGET DE TOQUE "FANTASMA" (44x44px mÃ­nimo) --- */
/* Esta tÃ©cnica expande el Ã¡rea interactiva sin cambiar el tamaÃ±o visual del icono */
.touch-target-expanded {
    position: relative;
    cursor: pointer;
}

.touch-target-expanded::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    /* Debug: background: rgba(255,0,0,0.2); / / Descomentar para ver el Ã¡rea tÃ¡ctil */
}

/* AplicaciÃ³n automÃ¡tica a botones que suelen ser pequeÃ±os */
.close-modal,
.notification-icon,
.lang-selector,
.lang-selector option,
.nav-item,
.chip,
.social-icon,
.btn-back {
    position: relative;
}

.close-modal::after,
.notification-icon::after,
.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 44px;
    min-height: 44px;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* --- OPTIMIZACIÃ“N PARA DESKTOP --- */
@media (min-width: 769px) {
    #servicesContainer {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card img {
        width: 100px;
        height: 100px;
        border-radius: 18px;
    }

    .service-info h3 {
        font-size: 1.15rem;
    }

    /* Modal como tarjeta central en PC */
    .modal-content {
        max-width: 650px;
        margin: 0 auto;
        left: 0;
        right: 0;
        bottom: 50%;
        transform: translateY(50%);
        border-radius: 30px;
        max-height: 85vh;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }

    .modal.show .modal-content {
        animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes modalScaleUp {
        from {
            opacity: 0;
            transform: translateY(60%) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(50%) scale(1);
        }
    }

    .modal-header {
        height: 450px;
    }

    /* Escalar stories en PC */
    :root {
        --story-size: 90px;
    }

    .story-label {
        font-size: 0.85rem;
        max-width: 100px;
    }
}

/* --- EDGE SWIPE FEEDBACK --- */
.edge-swipe-feedback {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(159, 122, 234, 0.2) 0%, transparent 100%);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.1s ease-out, opacity 0.2s;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
    color: var(--primary);
    font-size: 1.5rem;
}

.edge-swipe-feedback i {
    transform: translateX(-40px);
    transition: transform 0.2s ease-out;
    opacity: 0;
}

.edge-swipe-feedback.active {
    opacity: 1;
}

.edge-swipe-feedback.ready i {
    transform: translateX(10px);
    opacity: 1;
}

/* --- PULL TO REFRESH ASSET & ANIMATIONS --- */
#pull-to-refresh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    background: var(--bg-soft);
    background-image: var(--brand-motif);
    background-size: cover;
    z-index: 1100; 
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

#pull-to-refresh.visible {
    transform: translateY(0);
}

.ptr-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gota de aceite esencial temÃ¡tica */
.ptr-drop {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50% 0 50% 50%;
    transform: rotate(-45deg);
    position: relative;
    box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3);
    transition: transform 0.1s linear, border-radius 0.2s ease;
}

.ptr-drop::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 4px;
    left: 4px;
}

/* AnimaciÃ³n de carga (bucle de espera asÃ­ncrona) */
#pull-to-refresh.refreshing .ptr-drop {
    animation: ptr-pulse 1s infinite alternate var(--motion-organic);
}

@keyframes ptr-pulse {
    0% { transform: rotate(-45deg) scale(0.95); opacity: 0.8; }
    100% { transform: rotate(-45deg) scale(1.15); opacity: 1; box-shadow: 0 8px 15px rgba(107, 70, 193, 0.5); }
}

.ptr-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#pull-to-refresh.ready .ptr-text,
#pull-to-refresh.refreshing .ptr-text {
    opacity: 1;
}

/* Bloqueo de comportamiento nativo para control experto del gesto */
/* --- FOOTER INTERACTIVO --- */
.site-footer {
    padding: 80px 20px 140px 20px;
    text-align: center;
    background: var(--bg-soft);
    border-top: 1px solid var(--border-subtle);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 2.22rem;
    margin-bottom: 30px;
    color: var(--primary);
    transition: all 0.8s var(--motion-elastic);
    opacity: 0.3;
    transform: scale(0.9);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 16px;
    color: var(--primary);
    box-shadow: var(--shadow);
    text-decoration: none;
    font-size: 1.4rem;
    opacity: 0;
    transform: translateY(30px) rotate(-10deg);
    transition: all 0.6s var(--motion-elastic);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Estado Activo por Proximidad */
.site-footer.reach-end .footer-logo {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(159, 122, 234, 0.3));
}

.site-footer.reach-end .social-icon {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

.site-footer.reach-end .social-icon:nth-child(1) { transition-delay: 0.1s; }
.site-footer.reach-end .social-icon:nth-child(2) { transition-delay: 0.2s; }

/* La "Danza de Bienvenida" */
@keyframes welcomeDance {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-15px) scale(1.1) rotate(5deg); }
    50% { transform: translateY(0) scale(1) rotate(-5deg); }
    70% { transform: translateY(-7px) scale(1.05); }
}

.site-footer.reach-end .social-icon i {
    animation: welcomeDance 1.2s var(--motion-elastic) forwards;
    animation-delay: inherit;
}

.site-footer.reach-end .social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-8px) scale(1.1);
}

body.ptr-active {
    overscroll-behavior-y: none;
    touch-action: pan-x pan-down;
}

/* --- COOKIE BANNER & COMPLIANCE --- */
.cookie-banner { 
    position: fixed; 
    bottom: 20px; 
    left: 20px; 
    right: 20px; 
    background: var(--card-bg); 
    border: 1px solid var(--primary-light); 
    border-radius: 24px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.3); 
    z-index: 9999; 
    animation: slideUpCookie 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.cookie-content { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    padding: 15px 25px; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.cookie-icon { 
    font-size: 2.2rem; 
    color: var(--primary); 
    filter: drop-shadow(0 0 10px rgba(107, 70, 193, 0.2));
}

.cookie-text { 
    flex: 1; 
}

.cookie-text h4 { 
    margin: 0 0 3px 0; 
    color: var(--primary); 
    font-size: 1.1rem; 
    font-family: var(--font-title);
    font-style: italic;
}

.cookie-text p { 
    margin: 0; 
    font-size: 0.82rem; 
    color: var(--text-muted); 
    line-height: 1.5; 
}

.cookie-banner .btn-reserve {
    width: auto;
    min-width: 160px;
    margin: 0;
    padding: 12px 25px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .cookie-content {
        gap: 15px;
    }
}

@media (max-width: 650px) { 
    .cookie-content { 
        flex-direction: column; 
        text-align: center; 
        padding: 25px 20px;
    } 
    .cookie-banner { 
        bottom: 85px; 
        left: 15px; 
        right: 15px; 
    } 
    .cookie-banner .btn-reserve {
        width: 100%;
    }
}

@keyframes slideUpCookie { 
    from { transform: translateY(120%); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

/* --- IDENTIDAD DIGITAL (ESTILO PREMIUM) --- */
.identity-card-container {
    max-width: 450px !important;
    background: var(--bg-soft) !important;
    padding: 25px !important;
    border-radius: var(--radius-squircle) !important;
    border: 1px solid var(--primary-light) !important;
}

.identity-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-body);
    position: relative;
    background-image: var(--brand-motif);
    background-size: 200%;
}

.identity-card-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.identity-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 400;
}

.identity-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 50px;
}

.identity-card-main {
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.identity-qr {
    width: 80px;
    height: 80px;
    background: white;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #333;
    border-radius: 10px;
}

.identity-info {
    flex: 1;
}

.info-group {
    margin-bottom: 15px;
}

.info-group label {
    display: block;
    font-size: 0.65rem;
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-group p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.identity-card-footer {
    padding: 0 25px 25px 25px;
}

.info-group.full {
    border-top: 1px solid var(--border-subtle);
    padding-top: 15px;
}

.identity-verify {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

body.dark-mode .identity-card {
    background: #1a202c;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .identity-qr {
    background: #2d3748;
    color: white;
    border-color: transparent;
}

/* --- COOKIE BANNER PREMIUM (GLASSMORPHISM) --- */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideUp 0.8s var(--motion-elastic);
    max-width: 600px;
    margin: 0 auto;
}

body.dark-mode .cookie-banner {
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-style: italic;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-actions button {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s var(--motion-organic);
}

.btn-accept, .btn-reject {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-config {
    background: transparent;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-accept:hover, .btn-reject:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

body.dark-mode .btn-accept:hover, body.dark-mode .btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Modal de Configuración de Cookies */
.cookie-config-card {
    background: var(--card-bg);
    border-radius: 25px;
    width: calc(100% - 40px);
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.4s var(--motion-elastic);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cookie-config-header {
    margin-bottom: 25px;
    text-align: center;
}

.cookie-config-header i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.cookie-config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.cookie-config-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
    padding-right: 20px;
}

.item-info h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-main);
}

.item-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--skeleton);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 20px;
        bottom: 15px;
        left: 10px;
        right: 10px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions button {
        width: 100%;
    }
}

/* --- LEGAL ICONOGRAPHY --- */
.legal-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    padding-bottom: 100px;
}

.legal-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    margin-bottom: 40px;
    padding: 50px 30px;
    background: var(--white);
    border-radius: var(--radius-squircle);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    background-image: var(--brand-motif);
    background-size: cover;
    animation: fadeInUp 0.8s var(--motion-organic);
}

.legal-header h1 {
    font-size: var(--fs-xl);
    margin-bottom: 15px;
    color: var(--primary);
    font-family: var(--font-title);
    font-style: italic;
}

.legal-header p {
    color: var(--text-muted);
    font-size: var(--fs-base);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.legal-section {
    background: var(--card-bg);
    border-radius: var(--radius-squircle);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-main);
    animation: fadeInUp 0.8s var(--motion-organic) backwards;
}

.legal-section:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.legal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--primary);
}

.legal-title-wrapper i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(107, 70, 193, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
}

.legal-title-wrapper h2 {
    margin: 0;
    font-family: var(--font-title);
    font-size: var(--fs-md);
    font-weight: 400;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.legal-info-box {
    padding: 15px;
    background: var(--bg-soft);
    border-radius: 15px;
    border: 1px solid var(--border-subtle);
}

.legal-info-box strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 5px;
}

.legal-info-box span, .legal-info-box a {
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
}

.legal-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.legal-bullet-list li i {
    margin-top: 5px;
    color: var(--primary);
    font-size: 0.9rem;
}

.highlight-legal {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(159, 122, 234, 0.05));
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 15px 15px 0;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.highlight-legal i {
    font-size: 1.5rem;
    color: var(--primary);
}

.legal-visual-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.visual-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--primary-light);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.visual-tag i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .legal-header {
        padding: 40px 20px;
    }
    
    .legal-header h1 {
        font-size: 2.2rem;
    }
    
    .legal-visual-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .visual-tag {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
}
