/* =========================================
   🌟 ESPAI ÚNIC - DARK LUXURY THEME
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    /* 🎨 COLOR PALETTE - PASTEL NEON */
    --primary-50: #fdf2f8;
    --primary-100: #fce7f3;
    --primary-200: #fbcfe8;
    --primary-300: #f9a8d4;
    --primary-400: #f472b6;
    /* MAIN ACCENT - PINK */
    --primary-500: #ec4899;
    --primary-600: #db2777;
    --primary-700: #be185d;
    --primary-glow: rgba(244, 114, 182, 0.5);

    /* 🌿 SECONDARY ACCENT - MINT */
    --secondary-400: #4ade80;
    --secondary-glow: rgba(74, 222, 128, 0.4);
    --pastel-turquoise: #2dd4bf;

    /* 🌑 DARK BACKGROUNDS */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* 📝 TEXT */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;

    /* 👓 GLASSMORPHISM - Optimized for performance */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 16px;
    /* Reducido de 24px → 16px para mejor rendimiento */
    /* 🌑 DARK BACKGROUNDS */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    /* 🍑 LIGHT PEACH THEME (Contact Form Style) */
    --peach-bg: rgba(255, 249, 245, 0.95);
    --peach-border: #ffccb3;
    --peach-text: #ff8c69;
    --peach-shadow: 0 15px 35px rgba(255, 140, 105, 0.2);
    
    scroll-behavior: smooth;
    /* 📱 SCROLL SNAP - Proporciona esa sensación de "app" en dispositivos modernos */
    scroll-snap-type: y proximity;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide content until animation completes */
body.loading>*:not(.welcome-screen) {
    opacity: 0;
    visibility: hidden;
}

/* Page fade-in on load (for subpage transitions) */
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body:not(.loading) {
    animation: pageFadeIn 0.4s ease forwards;
}

/* Background Confetti (Permanent) */
.background-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

body {
    background: linear-gradient(160deg,
            #ffe8d6 0%,
            #ffd5b8 40%,
            #ffc5a0 75%,
            #ffb8c6 100%);
    background-attachment: fixed;
    /* iOS Safari fix: se complementa con @media abajo */
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    /* Fluidez: evitar repaints innecesarios en scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #f9a8d4 0%, #ec4899 60%, #db2777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(135deg, #a7f3d0 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-secondary-gradient {
    background: linear-gradient(135deg, #a7f3d0 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.section-title.light-sweep-heading {
    background: linear-gradient(135deg, #a7f3d0 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-500);
    background-image: linear-gradient(135deg, var(--primary-300), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(236, 72, 153, 0.1);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 5%;
    overflow: hidden;
    gap: 40px;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #a7f3d0 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--pastel-turquoise);
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.7;
    text-shadow: none;
}

.hero-visual {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero-visual img {
    max-width: 100%;
    filter: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* GLASS CARDS */
.glass-card {
    background: rgba(236, 72, 153, 0.15);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 2px solid #ffc0cb;
    border-radius: 24px;
    padding: 32px;
}

/* FLIP CARDS - SERVICES */
.services-section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}

/* =========================================
   🎠 COVERFLOW 3D — SERVICES CAROUSEL
   ========================================= */

/* Sección contenedor */
.services-section {
    padding: 80px 0 100px;
    overflow: visible;
    /* NO ocultar — las tarjetas laterales salen del borde */
    /* Fluidez: aislar repaint del carrusel */
    contain: layout style;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
}

/* Wrapper principal */
.coverflow-3d-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    user-select: none;
    /* Clip horizontal para que no desborde la página */
    overflow-x: clip;
    padding-bottom: 0;
}

/* Zona 3D de perspectiva */
.coverflow-3d-scene {
    position: relative;
    width: 100%;
    height: 520px;
    perspective: 1100px;
    perspective-origin: 50% 50%;
    /* NO overflow hidden: las tarjetas necesitan verse fuera del centro */
    overflow: visible;
}

/* === TARJETA INDIVIDUAL === */
.cf-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 460px;
    margin-left: -150px;
    margin-top: -230px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.7s ease;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    /* 🚀 Rendimiento: promover a capa GPU para evitar trabado */
    will-change: transform, opacity;
}


/* === ESTADOS POR CLASE JS === */

/* Tarjeta activa — Centro */
.cf-card.cf-active {
    transform: translateX(0) translateZ(0px) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: all;
    filter: brightness(1) drop-shadow(0 20px 50px rgba(236, 72, 153, 0.5));
}

/* Tarjeta anterior inmediata */
.cf-card.cf-prev {
    transform: translateX(-310px) translateZ(-90px) rotateY(22deg) scale(0.85);
    opacity: 0.78;
    z-index: 7;
    pointer-events: all;
    filter: brightness(0.72);
}

/* Tarjeta siguiente inmediata */
.cf-card.cf-next {
    transform: translateX(310px) translateZ(-90px) rotateY(-22deg) scale(0.85);
    opacity: 0.78;
    z-index: 7;
    pointer-events: all;
    filter: brightness(0.72);
}

/* Tarjeta dos posiciones atrás */
.cf-card.cf-far-prev {
    transform: translateX(-580px) translateZ(-240px) rotateY(38deg) scale(0.64);
    opacity: 0.38;
    z-index: 4;
    pointer-events: all;
    filter: brightness(0.5);
}

/* Tarjeta dos posiciones adelante */
.cf-card.cf-far-next {
    transform: translateX(580px) translateZ(-240px) rotateY(-38deg) scale(0.64);
    opacity: 0.38;
    z-index: 4;
    pointer-events: all;
    filter: brightness(0.5);
}

/* INTERIOR flip (front / back) */
.cf-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

/* Solo la tarjeta activa puede hacer flip en hover */
.cf-card.cf-active:hover .cf-card-inner {
    transform: rotateY(180deg);
}

/* Cara frontal */
.cf-card-front,
.cf-card-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}

.cf-card-front {
    background: var(--bg-tertiary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cf-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    transition: transform 0.8s ease;
}

.cf-card.cf-active:hover .cf-img {
    transform: scale(1.05);
}

/* Overlay degradado sobre imagen */
.cf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 22px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cf-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.cf-title {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f9a8d4 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
}

.cf-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cf-tags span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Cara trasera */
.cf-card-back {
    background: var(--peach-bg);
    border: 2px solid var(--peach-border);
    box-shadow: var(--peach-shadow);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    text-align: center;
    gap: 12px;
}

.cf-back-icon {
    font-size: 2.8rem;
    margin-bottom: 4px;
    color: var(--peach-text) !important;
}

.cf-back-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--peach-text);
    margin: 0;
}

.cf-back-desc {
    color: var(--peach-text);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    text-align: justify;
    hyphens: auto;
}

.cf-back-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.cf-cta {
    margin-top: 4px;
    color: var(--peach-text);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    opacity: 1;
}

.cf-card-back .feature-tag {
    background: rgba(255, 140, 105, 0.1);
    border: 1px solid var(--peach-border);
    color: var(--peach-text);
}

/* === BOTONES PREV / NEXT ===
   Posicionados en el WRAPPER (no en la escena)
   Para que NO solapen las tarjetas laterales
*/
.coverflow-btn {
    position: absolute;
    top: calc(540px / 2);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(15, 8, 20, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(236, 72, 153, 0.45);
    border-radius: 50%;
    color: var(--primary-400);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.coverflow-btn:hover {
    background: var(--primary-500);
    color: white;
    box-shadow: 0 0 22px rgba(236, 72, 153, 0.6);
    transform: translateY(-50%) scale(1.12);
}

/* Los botones se posicionan en el WRAPPER (position: relative) */
/* top: 260px = la mitad de la scene (520px / 2) */
.coverflow-prev {
    left: max(3%, 10px);
    top: 260px;
}

.coverflow-next {
    right: max(3%, 10px);
    top: 260px;
}

/* === INDICADORES (DOTS) === */
.cf-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    height: 16px;
}

.cf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.3);
    border: 1px solid rgba(236, 72, 153, 0.4);
    cursor: pointer;
    transition: all 0.35s ease;
}

.cf-dot.cf-dot-active {
    background: var(--primary-400);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
    transform: scale(1.4);
    width: 20px;
    border-radius: 4px;
}

/* Hover estados en dots */
.cf-dot:hover:not(.cf-dot-active) {
    background: rgba(236, 72, 153, 0.6);
    transform: scale(1.2);
}

/* Feature tag reutilizado */
.feature-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-200);
    display: inline-block;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

/* ANIMATIONS */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   💊 NAVBAR PÍLDORA
   ========================================= */

.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 900px;
    padding: 12px 20px 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 100px;
    background: rgba(15, 8, 20, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(236, 72, 153, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled {
    background: rgba(236, 72, 153, 0.82);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 8px 40px rgba(236, 72, 153, 0.35), 0 0 20px rgba(236, 72, 153, 0.15);
    padding: 10px 20px 10px 24px;
}

.navbar.navbar-hidden {
    transform: translateX(-50%) translateY(-110%);
    opacity: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.logo-ballon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    z-index: 1001;
}

/* Hamburger Menu Button */
.hamburger-menu {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hamburger-menu:hover {
    border-color: var(--primary-400);
    background: rgba(236, 72, 153, 0.1);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.hamburger-line {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.hamburger-menu.active .hamburger-line {
    background: var(--primary-400);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Inline Navbar Menu */
.nav-links-container {
    display: flex;
    gap: 25px;
    margin-right: 30px;
    opacity: 0;
    transform: translateX(40px);
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.nav-links-container.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: all;
}

.nav-links-container.active .nav-link {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    padding: 5px 0;
    opacity: 0;
    transform: translateX(20px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-400);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover {
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   🔽 SERVICIOS DROPDOWN
   ========================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-dropdown-trigger .dropdown-arrow {
    display: inline-block;
    font-size: 0.75em;
    transition: transform 0.3s ease;
    line-height: 1;
}

.nav-dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Desktop dropdown panel */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 230px;
    background: rgba(12, 6, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 20px;
    padding: 8px 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(236, 72, 153, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1100;
    pointer-events: none;
    overflow: hidden;
}

.nav-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.nav-dropdown-item {
    display: block;
    padding: 11px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-item:hover {
    background: rgba(236, 72, 153, 0.12);
    color: var(--primary-300);
    padding-left: 26px;
    border-left-color: var(--primary-400);
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(236, 72, 153, 0.15);
    margin: 8px 15px;
}

.nav-dropdown-header {
    padding: 10px 20px 5px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

/* =========================================
   📱 MOBILE NAVIGATION DROPDOWN
   ========================================= */

/* On mobile, the nav links drop down below the pill navbar */
@media (max-width: 768px) {
    .nav-links-container {
        position: fixed;
        top: 82px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: calc(100% - 48px);
        max-width: 900px;
        flex-direction: column;
        gap: 0;
        margin-right: 0;
        background: rgba(15, 8, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(236, 72, 153, 0.3);
        border-radius: 24px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(236, 72, 153, 0.1);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 999;
        padding: 8px 0;
        overflow: hidden;
    }

    .nav-links-container.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-link {
        opacity: 1;
        transform: none;
        font-size: 1rem;
        padding: 14px 22px;
        border-bottom: 1px solid rgba(236, 72, 153, 0.12);
        width: 100%;
        display: block;
        color: rgba(255, 255, 255, 0.85);
        transition: background 0.2s ease;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(236, 72, 153, 0.15);
        color: var(--primary-300);
        text-shadow: none;
    }

    .nav-link::after {
        display: none;
    }

    .navbar.scrolled {
        padding: 10px 20px 10px 24px;
    }

    /* Dropdown trigger en móvil: mismo look que los otros nav-link */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 16px 5%;
        border-bottom: 1px solid rgba(236, 72, 153, 0.15);
        font-size: 1.1rem;
        font-weight: 700;
        color: #333;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        box-sizing: border-box;
    }

    .nav-dropdown-trigger:hover,
    .nav-dropdown-trigger:active {
        background: rgba(236, 72, 153, 0.15);
        color: var(--primary-600);
    }

    /* En móvil, el dropdown se despliega inline (no absolutamente) */
    .nav-dropdown-menu {
        position: static;
        min-width: unset;
        width: 100%;
        background: rgba(236, 72, 153, 0.07);
        border: none;
        border-radius: 0;
        border-top: 1px solid rgba(236, 72, 153, 0.1);
        border-bottom: 1px solid rgba(236, 72, 153, 0.15);
        box-shadow: none;
        backdrop-filter: none;
        padding: 4px 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.35s ease;
        pointer-events: none;
    }

    .nav-dropdown-menu.open {
        max-height: 600px;
        pointer-events: all;
        transform: none;
    }

    .nav-dropdown-item {
        padding: 13px 5% 13px 10%;
        font-size: 0.95rem;
        color: #444;
        border-left: none;
        border-bottom: 1px solid rgba(236, 72, 153, 0.08);
    }

    .nav-dropdown-item:hover {
        background: rgba(236, 72, 153, 0.12);
        color: var(--primary-600);
        padding-left: 12%;
        border-left: none;
    }

    .nav-dropdown-item:last-child {
        border-bottom: none;
    }

    .nav-dropdown-divider {
        margin: 8px 5%;
        background: rgba(236, 72, 153, 0.1);
    }

    .nav-dropdown-header {
        padding: 12px 5% 5px 8%;
        font-size: 0.8rem;
        color: var(--primary-500);
    }
}

/* =========================================
   📱 HERO RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 5% 60px;
        gap: 30px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        color: #f9a8d4;
        margin-bottom: 30px;
    }

    .hero-visual {
        animation: none;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-visual img {
        width: 100%;
        border-radius: 20px;
    }

    /* Hero buttons: wrap and center */
    .hero-content>div[style] {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 110px 5% 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        color: #f9a8d4;
    }
}

/* =========================================
   📱 SERVICES CAROUSEL RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .services-section {
        padding: 80px 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        scroll-snap-align: center; /* Centra la sección entera verticalmente */
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
        padding: 0 5%;
    }

    .carousel-container {
        padding: 0;
        height: 500px; /* Ajuste para espacio de cartas */
    }

    /* Ajuste de cartas para móviles - Menos traducción lateral para que no se corten */
    .cf-card {
        width: 280px;
        height: 430px;
        margin-left: -140px;
        margin-top: -215px;
    }

    .cf-card.cf-prev {
        transform: translateX(-180px) translateZ(-120px) rotateY(25deg) scale(0.75);
        opacity: 0.5;
    }

    .cf-card.cf-next {
        transform: translateX(180px) translateZ(-120px) rotateY(-25deg) scale(0.75);
        opacity: 0.5;
    }

    /* Ocultar las tarjetas lejanas en móviles por espacio */
    .cf-card.cf-far-prev,
    .cf-card.cf-far-next {
        display: none;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.5);
    }
}

/* On mobile: disable CSS flip (hover doesn't work on touch)
   Cards will show front face; tap navigates to detail page */
@media (hover: none) {
    .service-card-flip:hover .service-card-inner {
        transform: none;
    }

    .service-card-flip:hover .service-image {
        transform: none;
    }

    /* Add a subtle tap indicator */
    .service-card-flip:active .service-card-inner {
        transform: scale(0.97);
        transition: transform 0.15s ease;
    }
}

/* =========================================
   📱 CONTACT SECTION RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    #contacto {
        padding: 60px 5% !important;
    }

    #contacto .glass-card {
        padding: 24px 20px;
    }

    #contacto form {
        max-width: 100% !important;
    }

    #contacto input,
    #contacto textarea {
        width: 100%;
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
        box-sizing: border-box;
    }

    #contacto .btn-primary {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   📱 FOOTER RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    footer {
        padding: 40px 5% !important;
    }

    footer a {
        /* Larger tap targets */
        padding: 8px;
        font-size: 1.8rem !important;
    }
}

/* =========================================
   📱 WELCOME SCREEN RESPONSIVE
   ========================================= */

@media (max-width: 480px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1.2rem;
    }
}

/* =========================================
   🎬 WELCOME LOADING SCREEN
   ========================================= */

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.welcome-screen.hidden {
    opacity: 0;
    transform: scale(3);
    pointer-events: none;
}

.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.welcome-content {
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 2;
}

.welcome-screen.hidden .welcome-content {
    transform: scale(2.5);
}

.welcome-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-400);
    animation: typing 2.5s steps(11) forwards, blink-caret 0.75s step-end infinite;
}

.welcome-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0;
    animation: fade-in-subtitle 1s ease 2.8s forwards;
    text-shadow: 0 0 20px rgba(244, 114, 182, 0.3);
}

/* Typewriter Animation */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-400);
    }
}

@keyframes fade-in-subtitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive - handled in the consolidated section below */

.service-link {
    flex: 0 0 calc(33.333% - 20px);
    display: block;
    text-decoration: none;
    color: inherit;
}

/* =========================================
   📄 SERVICE DETAIL PAGE STYLES
   ========================================= */

.service-detail-hero {
    min-height: 100vh;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--peach-text);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--peach-text);
    opacity: 0.8;
    transform: translateX(-5px);
}

.detail-info.glass-card {
    background: var(--peach-bg) !important;
    border: 2px solid var(--peach-border) !important;
    box-shadow: var(--peach-shadow) !important;
    color: var(--peach-text) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.detail-visual .premium-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
}

.service-detail-hero .hero-title {
    background: linear-gradient(135deg, #ff8c69 0%, #ffb07c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--peach-text);
}

.detail-info p {
    color: var(--peach-text);
    margin-bottom: 40px;
    font-size: 1.1rem;
    text-align: justify;
    hyphens: auto;
}

.pricing-card {
    background: rgba(255, 140, 105, 0.05);
    border: 1px dashed var(--peach-border);
    border-radius: 20px;
    padding: 30px;
}

.pricing-card h3 {
    margin-bottom: 20px;
    color: var(--peach-text);
}

.price-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 15px 0;
    align-items: start;
    border-bottom: 1px solid rgba(255, 140, 105, 0.1);
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    color: var(--peach-text);
}

.price-value {
    font-weight: 700;
    color: var(--peach-text);
}

@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   📱 SERVICE DETAIL PAGE RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .service-detail-hero {
        padding: 100px 5% 40px;
    }

    .detail-container {
        padding: 0;
    }

    .detail-grid {
        gap: 30px;
    }

    .detail-info h2 {
        font-size: 1.5rem;
    }

    .detail-info p {
        font-size: 1rem;
    }

    .pricing-card {
        padding: 20px;
    }

    .detail-info .btn-primary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .back-link {
        font-size: 0.95rem;
    }
}

/* =========================================
   ✨ LIGHT SWEEP EFFECT
   ========================================= */

.light-sweep {
    position: relative;
    overflow: visible;
    border: 2px solid rgba(236, 72, 153, 0.3);
}

.light-sweep::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.3) 45%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.3) 55%,
            transparent 60%,
            transparent 100%);
    animation: light-sweep-border 8s ease-in-out infinite;
    pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 100% 2px, 2px 2px, 2px calc(100% - 2px), 100% calc(100% - 2px), 100% 100%, 0 100%, 0 calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 2px, 0 2px);
}

.light-sweep-heading {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.light-sweep-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 60px;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    animation: soft-flare 6s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
    transform: skewX(-15deg);
    opacity: 0;
}

@keyframes light-sweep-border {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes soft-flare {

    0%,
    20% {
        left: -20%;
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    60%,
    100% {
        left: 120%;
        opacity: 0;
    }
}

/* =========================================
   🎬 SOBRE NOSOTROS - CINEMATIC SLIDESHOW
   ========================================= */

/* === SCROLL REVEAL: controlado por JS en tiempo real === */
.about-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    /* JS controla opacity, filter y transform inline */
    opacity: 0;
    will-change: opacity, transform, filter;
}

.about-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Full-screen background photo per slide */
.about-bg {
    position: absolute;
    inset: 0;
    background-size: 110%;
    /* ligeramente más grande para el Ken Burns */
    background-position: center;
    background-repeat: no-repeat;
    transition: none;
    /* Ken Burns suave al entrar la sección */
    animation: none;
}

/* Ken Burns en el slide activo */
.about-slide.active .about-bg {
    animation: kenBurns 10s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.08) translateX(0);
    }

    100% {
        transform: scale(1.0) translateX(0);
    }
}

/* Dark overlay so text is always readable */
.about-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.55) 50%,
            rgba(0, 0, 0, 0.72) 100%);
}

/* Text content centered on top of photo */
.about-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 8%;
    z-index: 2;
    will-change: transform, opacity;
}

/* Individual slide */
.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

/* Active slide base */
.about-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* === ANIMATION STATES === */

/* Slide enters: cross-fade + ligero zoom de entrada */
.about-slide.entering {
    animation: aboutSlideIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide exits: desvanece suavemente */
.about-slide.exiting {
    animation: aboutSlideOut 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Label y texto animan en cascada cuando el slide entra */
.about-slide.entering .about-label {
    animation: contentRiseIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.about-slide.entering .about-text {
    animation: contentRiseIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}


@keyframes aboutSlideIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes aboutSlideOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.98);
    }
}

/* Animación de los textos al aparecer en cascada */
@keyframes contentRiseIn {
    0% {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(4px);
    }

    60% {
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* Label (category tag above text) */
.about-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-400);
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 40px;
    padding: 6px 18px;
    margin-bottom: 28px;
}

/* Main text */
.about-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    font-weight: 600;
    line-height: 1.55;
    color: var(--pastel-turquoise);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
}

.about-text strong {
    background: linear-gradient(135deg, var(--primary-300), var(--secondary-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dots navigation */
.about-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    /* La opacidad la hereda del padre (.about-section) controlado por JS */
}

.about-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-dot.active {
    background: var(--primary-400);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    transform: scale(1.3);
}



/* Mobile */
@media (max-width: 768px) {
    .about-section {
        height: 100svh;
    }

    .about-text {
        font-size: clamp(1.2rem, 5vw, 1.7rem);
    }

    .about-label {
        font-size: 0.65rem;
        padding: 5px 14px;
    }

    /* Coverflow 3D — Mobile adaptado */
    .coverflow-3d-scene {
        height: 420px;
        perspective: 900px;
    }

    .cf-card {
        width: 240px;
        height: 360px;
    }

    .cf-card.cf-prev {
        transform: translateX(-200px) translateZ(-80px) rotateY(28deg) scale(0.8);
    }

    .cf-card.cf-next {
        transform: translateX(200px) translateZ(-80px) rotateY(-28deg) scale(0.8);
    }

    .cf-card.cf-far-prev {
        transform: translateX(-370px) translateZ(-200px) rotateY(48deg) scale(0.6);
        opacity: 0.25;
    }

    .cf-card.cf-far-next {
        transform: translateX(370px) translateZ(-200px) rotateY(-48deg) scale(0.6);
        opacity: 0.25;
    }

    .coverflow-prev {
        left: 8px;
    }

    .coverflow-next {
        right: 8px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* =========================================
   🚀 FLUIDEZ — OPTIMIZACIONES DE RENDIMIENTO
   ========================================= */

/* En móvil, background-attachment: fixed causa jank en iOS/Android
   porque no está acelerado por GPU → se desactiva */
@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
    }
}

/* Respeta la preferencia del usuario de reducir movimiento */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-visual {
        animation: none;
    }
}

/* =========================================
   🤖 CHAT WIDGET - ESPAI BOT
   ========================================= */

.espai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chat-toggle-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.6);
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(15, 8, 20, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
    pointer-events: none;
}

.chat-header {
    padding: 20px;
    background: rgba(236, 72, 153, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-title-box {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--secondary-400);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-500) transparent;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--primary-500);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-footer {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 12px;
    padding: 10px 15px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.chat-footer input:focus {
    border-color: var(--primary-500);
    background: rgba(255, 255, 255, 0.08);
}

.chat-footer button {
    width: 42px;
    height: 42px;
    background: var(--primary-500);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-footer button:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .chat-window {
        bottom: 80px;
        right: -10px;
        width: calc(100vw - 40px);
        height: 70vh;
    }
}