/* --- NUVICA PREMIUM THEME --- */
:root {
    --primary-premium: #1e293b;
    /* Slate 800 - Text */
    --accent-premium: #0ea5e9;
    /* Sky 500 - Brand Blue */
    --accent-green: #10b981;
    /* Emerald 500 - Action/Buttons */
    --accent-green-glow: #34d399;
    /* Emerald 400 - Glow */

    --bg-gradient: linear-gradient(180deg, #e0f7fa 0%, #f0f9ff 100%);
    /* Airy Blue */

    --card-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-highlight: rgba(255, 255, 255, 0.9);

    --text-main: #1e293b;
    --text-muted: #64748b;

    --shadow-soft: 0 20px 40px -5px rgba(14, 165, 233, 0.08);
    --shadow-deep: 0 30px 60px -12px rgba(14, 165, 233, 0.15);
    --shadow-glow: 0 0 20px rgba(52, 211, 153, 0.4);

    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --radius-xl: 32px;
    --radius-full: 999px;
}

/* --- PREMIUM GLASS MENU (ISLAND) --- */
.glass-menu {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);

    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: 100px;
    width: auto;

    transition: all 0.3s var(--ease-smooth);
    animation: floatNav 1s ease-out backwards;
}

@keyframes floatNav {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.glass-menu:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 50px -12px rgba(14, 165, 233, 0.15), inset 0 0 0 1px white;
    transform: translateX(-50%) translateY(2px);
}

.nav-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-premium);
    letter-spacing: -0.03em;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 20;
    padding: 0.5rem;
    pointer-events: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-premium);
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
}

.nav-cta {
    background: var(--primary-premium);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

.nav-cta:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
    background: #0f172a;
}

/* Global Premium Polish */
body {
    background: var(--bg-gradient);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

section {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

main {
    position: relative;
    z-index: 10;
    background: white;
    border-radius: 40px 40px 0 0;
    margin-top: -2rem;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.05);
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* SplitText Animation Simulation */
.word-split {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.char-split {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealChar 0.8s var(--ease-elastic) forwards;
}

@keyframes revealChar {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rotating Text (Vanilla JS Version to Fix Overlap) */
.rt-container {
    display: inline-flex;
    position: relative;
    height: 1.3em;
    overflow: hidden;
    vertical-align: bottom;
    color: var(--accent-premium);
    font-weight: 700;
    min-width: 250px;
}

.rt-word {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    display: inline-flex;
    pointer-events: none;
}

.rt-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-elastic), opacity 0.4s ease;
}

.rt-char.enter {
    opacity: 0;
    transform: translateY(100%);
}

.rt-char.active {
    opacity: 1;
    transform: translateY(0);
}

.rt-char.to-exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* Profile Card (Tilt & Glass) */
.profile-card-wrap {
    perspective: 1000px;
    display: inline-block;
}

.profile-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    background: white;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.3) 100%);
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.profile-info-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transform: translateZ(20px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Services Carousel (Fluid App Style) */
.premium-carousel {
    position: relative;
    width: 100%;
    padding: 2rem 0 4rem 0;
}

/* Symptoms (Bento Grid) */
.symptom-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.sym-pill {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 24px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sym-pill::before {
    content: '⚠️';
    font-size: 1.5rem;
    filter: grayscale(1);
    transition: all 0.3s;
}

.sym-pill:hover {
    border-color: var(--accent-premium);
    background: white;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sym-pill:hover::before {
    filter: grayscale(0);
    transform: rotate(10deg);
}

/* Map Premium Wrap */
.map-premium {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 8px solid white;
    box-shadow: var(--shadow-deep);
}

/* --- BENEFITS BELT (PREMIUM GLASS ISLAND) --- */
.benefits-belt {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 100;
    box-shadow: 0 20px 50px -10px rgba(14, 165, 233, 0.15), inset 0 0 0 1px white;
    margin-top: -5rem;
    border-radius: 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.benefits-belt:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px -10px rgba(14, 165, 233, 0.2), inset 0 0 0 1px white;
}

.bb-grid {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.bb-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    animation: ambientFloat 5s ease-in-out infinite;
}

.bb-item:nth-child(1) {
    animation-delay: 0s;
}

.bb-item:nth-child(2) {
    animation-delay: 1.2s;
}

.bb-item:nth-child(3) {
    animation-delay: 2.4s;
}

.bb-item:nth-child(4) {
    animation-delay: 3.6s;
}

.bb-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    color: var(--accent-premium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.1);
    border: 1px solid white;
}

@keyframes ambientFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.bb-text strong {
    display: block;
    color: var(--primary-premium);
    font-size: 1.05rem;
    line-height: 1.2;
}

.bb-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0) translateZ(30px);
    }

    50% {
        transform: translateY(-10px) translateZ(30px);
    }
}

/* --- INFINITE LOOP & NEW UI --- */
.premium-carousel {
    position: relative;
    width: 100%;
    padding: 0.5rem 0;
    overflow: hidden;
    background: transparent;
    margin-bottom: 0;
}

.pc-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: infiniteScroll 20s linear infinite;
    padding: 1rem 0;
}

#servicios {
    padding-bottom: 1.5rem !important;
    margin-bottom: 0;
    z-index: 2;
}

#ubicacion {
    padding-top: 1.5rem !important;
    margin-top: 0 !important;
    z-index: 1;
}

.pc-track:hover {
    animation-play-state: paused;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

/* --- PREMIUM MEDICAL CARD UI --- */
.loop-card {
    flex: 0 0 260px;
    margin-right: 3rem;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);

    border-radius: 24px;
    padding: 2.5rem 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    box-shadow: 0 4px 20px -5px rgba(148, 163, 184, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.loop-card:nth-child(even) {
    background: rgba(248, 250, 252, 0.6);
}

.loop-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px -10px rgba(148, 163, 184, 0.15);
    border-color: #fff;
}

.lc-icon {
    width: 72px;
    height: 72px;
    color: #64748b;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.lc-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2px;
}

.loop-card:hover .lc-icon {
    color: var(--accent-premium);
}

.lc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.lc-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.lc-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lc-action svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.loop-card:hover .lc-action {
    border-color: var(--accent-premium);
    color: var(--accent-premium);
    background: rgba(14, 165, 233, 0.05);
}

/* --- HERO RESPONSIVE FIXES (FINAL) --- */
.hero-header {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-image {
    width: 380px;
    height: 520px;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 1024px) {
    .hero-header {
        height: auto;
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
        overflow: visible;
        flex-direction: column;
        display: block;
    }

    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-grid>div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-grid h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    .hero-grid h1 br {
        display: none;
    }

    .hero-grid>div:last-child {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .hero-image {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 3/4;
        margin: 0 auto;
        border-radius: 20px;
    }

    .hero-grid>div:first-child>div[style*="background"] {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-grid>div:first-child>div[style*="display: flex"] {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-card-wrap>div[style*="position: absolute"] {
        display: none;
    }
}

/* --- PREMIUM MAP SECTION --- */
.section-location {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.premium-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.premium-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: white;
}

.pc-icon-box {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Map Glass Wrapper (legacy) */
.map-glass-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 32px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    background: #e2e8f0;
}

.map-overlay-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(14, 165, 233, 0.4);
    border-radius: 50%;
    z-index: 0;
    animation: markerPulse 1s infinite;
}

@keyframes markerPulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }

    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.marker-pin {
    width: 50px;
    height: 50px;
    background: var(--primary-premium);
    transform: rotate(45deg);
    border-radius: 12px 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    border: 2px solid white;
}

.marker-icon {
    font-size: 1.5rem;
    transform: rotate(-45deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.marker-tooltip {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-smooth);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.marker-tooltip strong {
    display: block;
    color: var(--primary-premium);
    font-size: 0.9rem;
}

.marker-tooltip span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.map-glass-wrapper:hover .marker-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.map-floating-action {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid white;
    transition: all 0.3s var(--ease-smooth);
    text-decoration: none;
}

.map-floating-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
    background: white;
    color: var(--accent-premium);
}

@media screen and (max-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-glass-wrapper {
        height: 400px;
    }

    .location-info {
        text-align: center;
    }

    .location-info h2 {
        font-size: 2.2rem !important;
    }

    .location-info div[style*="width: 60px"] {
        margin-left: auto;
        margin-right: auto;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .premium-card {
        text-align: left;
    }
}

/* =========================
   PREMIUM MAP (Radar Pin)
   ========================= */

.map-frame {
    position: relative;
    border-radius: 26px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow:
        0 30px 70px -25px rgba(15, 23, 42, 0.25),
        0 10px 30px -18px rgba(2, 132, 199, 0.25);

    padding: 10px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.map-embed {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 20px;
    filter: saturate(1.05) contrast(1.02);
}

.map-overlay {
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border-radius: 20px;
}

.map-floating-btn {
    position: absolute;
    right: 16px;
    bottom: 16px;
    pointer-events: auto;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow:
        0 18px 40px -20px rgba(15, 23, 42, 0.35),
        0 10px 18px -14px rgba(2, 132, 199, 0.35);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: var(--text-main, #0f172a);
    font-weight: 600;
    text-decoration: none;
    transform: translateZ(0);
    transition: transform 240ms var(--ease-elastic, cubic-bezier(0.34, 1.56, 0.64, 1));
}

.map-floating-btn:hover {
    transform: translateY(-2px);
}

.map-floating-btn-arrow {
    opacity: 0.85;
}

/* Pin position vars */
.map-overlay {
    --pin-x: 58%;
    --pin-y: 36%;
}

.map-radar {
    position: absolute;
    left: var(--pin-x);
    top: var(--pin-y);
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 999px;

    background: radial-gradient(circle at center,
            rgba(2, 132, 199, 0.22) 0%,
            rgba(2, 132, 199, 0.12) 35%,
            rgba(2, 132, 199, 0.06) 55%,
            rgba(2, 132, 199, 0.00) 72%);

    border: 1px solid rgba(2, 132, 199, 0.18);
    box-shadow: 0 18px 50px -30px rgba(2, 132, 199, 0.55);

    animation: mapRadarPulse 4s ease-out infinite;
    opacity: 0.8;
}

@keyframes mapRadarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.map-pin {
    position: absolute;
    left: var(--pin-x);
    top: var(--pin-y);
    transform: translate(-50%, -50%) rotate(45deg);

    width: 56px;
    height: 56px;
    border-radius: 14px;

    background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(56, 189, 248, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 24px 55px -30px rgba(2, 132, 199, 0.85),
        0 16px 30px -20px rgba(15, 23, 42, 0.35);

    animation: mapPinPulse 1.0s ease-in-out infinite;
}

@keyframes mapPinPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(2, 132, 199, 0.0));
    }

    50% {
        filter: drop-shadow(0 10px 18px rgba(2, 132, 199, 0.25));
    }
}

.map-pin-icon {
    position: absolute;
    inset: 0;
    transform: rotate(-45deg);
    display: grid;
    place-items: center;

    color: rgba(255, 255, 255, 0.96);
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.map-label {
    position: absolute;
    left: calc(var(--pin-x) + 18px);
    top: calc(var(--pin-y) + 26px);

    width: 190px;
    padding: 12px 14px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow:
        0 22px 50px -30px rgba(15, 23, 42, 0.35),
        0 10px 18px -14px rgba(2, 132, 199, 0.25);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    pointer-events: none;
}

.map-label::before {
    content: "";
    position: absolute;
    left: 18px;
    top: -8px;

    width: 14px;
    height: 14px;

    background: rgba(255, 255, 255, 0.78);
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    transform: rotate(45deg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.map-label-title {
    font-weight: 800;
    color: var(--text-main, #0f172a);
    line-height: 1.1;
}

.map-label-sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(71, 85, 105, 0.95);
}

@media (max-width: 900px) {
    .map-embed {
        height: 340px;
    }

    .map-label {
        width: 170px;
    }
}

/* =========================
   MICRO-INTERACTIONS (Pulse, Lift, Accent)
   ========================= */

/* subtle glow behind map frame */
.map-frame::before {
    content: '';
    position: absolute;
    inset: -20px;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
    opacity: 0.35;
    pointer-events: none;
    animation: mapAreaPulse 2.2s ease-in-out infinite;
}

@keyframes mapAreaPulse {

    0%,
    100% {
        opacity: 0.18;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.35;
        transform: scale(1);
    }
}

/* map frame glow (optional) */
.map-frame {
    animation: mapFrameGlow 3.2s ease-in-out infinite;
}

@keyframes mapFrameGlow {

    0%,
    100% {
        box-shadow:
            0 30px 70px -25px rgba(15, 23, 42, 0.25),
            0 10px 30px -18px rgba(2, 132, 199, 0.25),
            0 0 0 0 rgba(14, 165, 233, 0);
    }

    50% {
        box-shadow:
            0 30px 70px -25px rgba(15, 23, 42, 0.25),
            0 10px 30px -18px rgba(2, 132, 199, 0.25),
            0 0 20px 5px rgba(14, 165, 233, 0.15);
    }
}

/* 2) Cards Micro-Elevation (Refined) */
@media (min-width: 1024px) {
    .premium-card {
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
            box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
            background-color 0.4s ease,
            border-color 0.4s ease;
    }

    .premium-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08),
            0 4px 6px -2px rgba(2, 132, 199, 0.05);
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(255, 255, 255, 1);
    }
}

@media (max-width: 1023px) {
    .premium-card:hover {
        transform: none;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        background: rgba(255, 255, 255, 0.6);
    }
}

/* 3) Accent Highlight Animation (Title) */
.location-info h2 span {
    display: inline-block;
    position: relative;
}

.location-info h2 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-premium, #0ea5e9);
    opacity: 0.15;
    border-radius: 4px;
    z-index: -1;
    animation: accentGlow 4.5s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes accentGlow {

    0%,
    100% {
        opacity: 0.1;
        transform: scaleX(0.9);
    }

    50% {
        opacity: 0.25;
        transform: scaleX(1);
    }
}

/* 4) Accessibility */
@media (prefers-reduced-motion: reduce) {

    .map-frame::before,
    .location-info h2 span::after,
    .map-radar,
    .map-pin,
    .map-floating-btn,
    .premium-card,
    .map-frame {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* =========================
   BUTTONS (GLOBAL)
   ========================= */

.btn-secondary {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-premium);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    flex-grow: 1;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Force disabled button style (safe global) */
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* =========================
   AGENDAR CITAS — PREMIUM BOOKING MODAL (FIXED)
   ========================= */

/* Overlay + open state (matches your existing ".open") */
#stepperModal.stepper-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.60);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 22px;
}

#stepperModal.stepper-modal.open {
    opacity: 1;
    pointer-events: auto;
}

/* Container */
#calendarModal.stepper-container {
    width: min(640px, 92vw);
    max-height: 92vh;
    overflow: auto;

    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 28px;
    padding: 26px 22px 18px;

    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.45);
    position: relative;
}

/* Modal entry animation */
#stepperModal.open #calendarModal.stepper-container {
    animation: modalSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Step content switching (your HTML uses .step-content.active) */
#calendarModal .step-content {
    display: none;
}

#calendarModal .step-content.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Horizontal pipeline stepper (your HTML structure) ===== */
#calendarModal .booking-stepper {
    margin-top: 12px;
    padding: 14px 14px 10px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    position: relative;
}

#calendarModal .booking-stepper-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

#calendarModal .booking-time-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: rgb(22, 163, 74);
    font-weight: 800;
    border: 1px solid rgba(34, 197, 94, 0.18);
}

/* kill default <ol> numbering (this fixes the 1,2,3 on left) */
#calendarModal .booking-steps {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;

    display: flex;
    gap: 14px;
    align-items: flex-start;
}

#calendarModal .booking-steps li::marker {
    content: "" !important;
}

#calendarModal .booking-step {
    flex: 1;
    min-width: 0;
}

#calendarModal .step-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#calendarModal .step-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(100, 116, 139, 0.35);
    background: rgba(255, 255, 255, 0.92);
    position: relative;
    flex: 0 0 22px;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

#calendarModal .step-connector {
    height: 2px;
    flex: 1;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.25);
}

#calendarModal .booking-step:last-child .step-connector {
    display: none;
}

#calendarModal .step-meta {
    margin-top: 8px;
}

#calendarModal .step-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary-premium);
    line-height: 1.1;
}

#calendarModal .step-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 700;
}

/* Active */
#calendarModal .booking-step.is-active .step-dot {
    border-color: rgba(14, 165, 233, 0.75);
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.10);
    transform: translateY(-1px);
}

#calendarModal .booking-step.is-active .step-status {
    color: rgba(2, 132, 199, 0.95);
}

/* Completed (supports both class names: is-complete / is-completed) */
#calendarModal .booking-step.is-complete .step-dot,
#calendarModal .booking-step.is-completed .step-dot {
    border-color: rgba(34, 197, 94, 0.85);
    background: rgba(34, 197, 94, 0.12);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.10);
}

#calendarModal .booking-step.is-complete .step-dot::after,
#calendarModal .booking-step.is-completed .step-dot::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 900;
    color: #16a34a;
    transform: scale(0.2) rotate(-25deg);
    opacity: 0;
    animation: stepCheckPop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stepCheckPop {
    0% {
        transform: scale(0.2) rotate(-25deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

#calendarModal .booking-step.is-complete .step-connector,
#calendarModal .booking-step.is-completed .step-connector {
    background: rgba(34, 197, 94, 0.55);
}

#calendarModal .booking-step.is-complete .step-status,
#calendarModal .booking-step.is-completed .step-status {
    color: #16a34a;
}

/* Step selection grid (Step 1 premium cards) */
#calendarModal .option-grid-premium {
    display: grid;
    gap: 12px;
}

#calendarModal .option-card.premium {
    display: grid;
    grid-template-columns: 42px 1fr 28px;
    align-items: center;
    gap: 12px;

    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;

    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#calendarModal .option-card.premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(14, 165, 233, 0.30);
}

#calendarModal .option-card.premium .oc-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.10);
    border: 1px solid rgba(14, 165, 233, 0.18);
}

#calendarModal .option-card.premium .oc-content strong {
    display: block;
    font-weight: 800;
    color: var(--primary-premium);
}

#calendarModal .option-card.premium .oc-content span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.25;
}

/* check icon behavior (supports selected + is-selected) */
#calendarModal .option-card.premium .oc-check {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity .2s ease, transform .2s ease;
    font-weight: 900;
    color: #16a34a;
}

#calendarModal .option-card.premium.selected .oc-check,
#calendarModal .option-card.premium.is-selected .oc-check {
    opacity: 1;
    transform: scale(1);
}

#calendarModal .option-card.premium.selected,
#calendarModal .option-card.premium.is-selected {
    border-color: rgba(14, 165, 233, 0.60);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}

/* Step 2 "option-grid" (morning/afternoon) */
#calendarModal .option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#calendarModal .step-content[data-step="2"] .option-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.85);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#calendarModal .step-content[data-step="2"] .option-card:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, 0.40);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

#calendarModal .step-content[data-step="2"] .option-card.selected,
#calendarModal .step-content[data-step="2"] .option-card.is-selected {
    border-color: rgba(14, 165, 233, 0.70);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}

/* nav buttons row */
#calendarModal .stepper-nav {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* slightly tighten inputs inside modal */
#calendarModal input[type="text"],
#calendarModal input[type="tel"],
#calendarModal input[type="date"] {
    outline: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#calendarModal input[type="text"]:focus,
#calendarModal input[type="tel"]:focus,
#calendarModal input[type="date"]:focus {
    border-color: rgba(14, 165, 233, 0.60);
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.10);
}

/* mobile */
@media (max-width: 520px) {
    #calendarModal.stepper-container {
        padding: 22px 16px 16px;
        border-radius: 22px;
    }

    #calendarModal .booking-steps {
        gap: 10px;
    }

    #calendarModal .step-title {
        font-size: 0.85rem;
    }

    #calendarModal .step-status {
        font-size: 0.72rem;
    }

    #calendarModal .option-grid {
        grid-template-columns: 1fr;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {

    #stepperModal.open #calendarModal.stepper-container,
    #calendarModal .booking-step.is-complete .step-dot::after,
    #calendarModal .booking-step.is-completed .step-dot::after {
        animation: none !important;
    }
}