/* ==========================================================================
   JPDA Digital - Universal Stylesheet (Light Blue & Dark Theme Convertible)
   ========================================================================== */

/* Theme Variables Definition */

/* Theme A: Light Blue (Default) */
body.light-theme {
    --color-bg-base: #2ca6fe;
    --color-text-main: #0f172a;
    --color-text-muted: #1e293b;
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-hover: rgba(15, 23, 42, 0.22);
    --color-surface: rgba(255, 255, 255, 0.35);
    --color-surface-card: rgba(255, 255, 255, 0.5);
    
    --color-primary: #1e40af;
    --color-secondary: #6d28d9;
    --color-accent-badge: rgba(30, 64, 175, 0.08);
    --color-accent-badge-border: rgba(30, 64, 175, 0.2);
    --glass-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    --glass-shadow-float: 0 28px 55px rgba(15, 23, 42, 0.15);
    --text-shadow-contrast: -1.5px -1.5px 0 #2ca6fe, 
                            1.5px -1.5px 0 #2ca6fe, 
                            -1.5px 1.5px 0 #2ca6fe, 
                            1.5px 1.5px 0 #2ca6fe, 
                            0 2px 12px rgba(44, 166, 254, 0.95),
                            0 0 20px rgba(44, 166, 254, 0.85);
    --btn-primary-3d-shadow: #1e3a8a;
    --btn-secondary-3d-shadow: rgba(15, 23, 42, 0.15);
    --btn-whatsapp-3d-shadow: #128c7e;
    --navbar-bg: rgba(44, 166, 254, 0.75);
    --nav-arrow-bg: rgba(255, 255, 255, 0.4);
    --input-bg: rgba(255, 255, 255, 0.6);
    --color-copyright: rgba(15, 23, 42, 0.55);
}


/* Theme B: Dark Theme (Emergency Backup) */
body.dark-theme {
    --color-bg-base: #07080a;
    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.25);
    --color-surface: rgba(18, 20, 24, 0.6);
    --color-surface-card: rgba(26, 29, 33, 0.7);
    
    --color-primary: #6366f1;
    --color-secondary: #a855f7;
    --color-accent-badge: rgba(255, 255, 255, 0.03);
    --color-accent-badge-border: var(--color-border);
    --glass-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    --glass-shadow-float: 0 38px 75px rgba(0, 0, 0, 0.55);
    --text-shadow-contrast: -1.5px -1.5px 0 #07080a, 
                            1.5px -1.5px 0 #07080a, 
                            -1.5px 1.5px 0 #07080a, 
                            1.5px 1.5px 0 #07080a, 
                            0 2px 12px rgba(7, 8, 10, 0.95),
                            0 0 20px rgba(7, 8, 10, 0.85);
    --btn-primary-3d-shadow: #4338ca;
    --btn-secondary-3d-shadow: rgba(0, 0, 0, 0.45);
    --btn-whatsapp-3d-shadow: #0e6b60;
    --navbar-bg: rgba(7, 8, 10, 0.65);
    --nav-arrow-bg: rgba(18, 20, 24, 0.5);
    --input-bg: #090a0c;
    --color-copyright: rgba(255, 255, 255, 0.25);
}

/* Slide 1 (Inicio) Active Theme Overrides */
body.slide-1-active.light-theme {
    --color-bg-base: #2ca6fe;
    --navbar-bg: rgba(44, 166, 254, 0.75);
}

/* Slide 2 (Servicios) Active Theme Overrides */
body.slide-2-active.light-theme {
    --color-bg-base: #cca028;
    --text-shadow-contrast: -1.5px -1.5px 0 #cca028, 
                            1.5px -1.5px 0 #cca028, 
                            -1.5px 1.5px 0 #cca028, 
                            1.5px 1.5px 0 #cca028, 
                            0 2px 12px rgba(204, 160, 40, 0.95),
                            0 0 20px rgba(204, 160, 40, 0.85);
    --navbar-bg: rgba(204, 160, 40, 0.7);
}

body.slide-2-active.dark-theme {
    --color-bg-base: #291f05;
    --text-shadow-contrast: -1.5px -1.5px 0 #291f05, 
                            1.5px -1.5px 0 #291f05, 
                            -1.5px 1.5px 0 #291f05, 
                            1.5px 1.5px 0 #291f05, 
                            0 2px 12px rgba(41, 31, 5, 0.95),
                            0 0 20px rgba(41, 31, 5, 0.85);
    --navbar-bg: rgba(41, 31, 5, 0.65);
}

/* Slide 3 (Contacto) Active Theme Overrides */
body.slide-3-active.light-theme {
    --color-bg-base: #e83c34;
    --text-shadow-contrast: -1.5px -1.5px 0 #e83c34, 
                            1.5px -1.5px 0 #e83c34, 
                            -1.5px 1.5px 0 #e83c34, 
                            1.5px 1.5px 0 #e83c34, 
                            0 2px 12px rgba(232, 60, 52, 0.95),
                            0 0 20px rgba(232, 60, 52, 0.85);
    --navbar-bg: rgba(232, 60, 52, 0.75);
}

body.slide-3-active.dark-theme {
    --color-bg-base: #250907;
    --text-shadow-contrast: -1.5px -1.5px 0 #250907, 
                            1.5px -1.5px 0 #250907, 
                            -1.5px 1.5px 0 #250907, 
                            1.5px 1.5px 0 #250907, 
                            0 2px 12px rgba(37, 9, 7, 0.95),
                            0 0 20px rgba(37, 9, 7, 0.85);
    --navbar-bg: rgba(37, 9, 7, 0.65);
}

/* Common System Styles */
:root {
    --color-whatsapp: #25d366;
    --color-whatsapp-dark: #128c7e;
    --grad-whatsapp: linear-gradient(to bottom, var(--color-whatsapp) 0%, var(--color-whatsapp-dark) 100%);
    --font-headline: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Prevent all page scrolling */
    font-family: var(--font-body);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    transition: background-color 0.8s ease, color 0.8s ease;
}

/* Fullscreen Canvas behind the text */
.webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.8s ease, border-color 0.8s ease;
}

.navbar-container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    transition: color 0.8s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text-main);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.btn-icon {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 0 var(--btn-secondary-3d-shadow),
                inset 0 1.5px 2px rgba(255, 255, 255, 0.45);
    position: relative;
    user-select: none;
}

.btn-icon:hover {
    background: var(--color-surface-card);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--btn-secondary-3d-shadow),
                inset 0 2px 3px rgba(255, 255, 255, 0.55);
}

.btn-icon:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--btn-secondary-3d-shadow),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-icon span.material-symbols-outlined {
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 0 var(--btn-primary-3d-shadow),
                0 8px 20px rgba(37, 99, 235, 0.15),
                inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--btn-primary-3d-shadow),
                0 12px 25px rgba(37, 99, 235, 0.25),
                inset 0 3px 4px rgba(255, 255, 255, 0.45);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--btn-primary-3d-shadow),
                0 4px 10px rgba(37, 99, 235, 0.15),
                inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    box-shadow: 0 4px 0 var(--btn-secondary-3d-shadow),
                var(--glass-shadow),
                inset 0 2px 3px rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
    background: var(--color-surface-card);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--btn-secondary-3d-shadow),
                0 10px 20px rgba(15, 23, 42, 0.08),
                inset 0 3px 4px rgba(255, 255, 255, 0.55);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--btn-secondary-3d-shadow),
                0 4px 10px rgba(15, 23, 42, 0.03),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-whatsapp-header {
    background: var(--grad-whatsapp);
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 3px 0 var(--btn-whatsapp-3d-shadow),
                inset 0 2px 3px rgba(255, 255, 255, 0.3),
                0 4px 10px rgba(37, 211, 102, 0.08);
}

.btn-whatsapp-header:hover {
    transform: translateY(-1.5px) scale(1.01);
    box-shadow: 0 4.5px 0 var(--btn-whatsapp-3d-shadow),
                inset 0 3px 4px rgba(255, 255, 255, 0.4),
                0 6px 12px rgba(37, 211, 102, 0.18);
}

.btn-whatsapp-header:active {
    transform: translateY(1.5px) scale(0.99);
    box-shadow: 0 1.5px 0 var(--btn-whatsapp-3d-shadow),
                inset 0 1px 2px rgba(255, 255, 255, 0.2),
                0 2px 6px rgba(37, 211, 102, 0.05);
}

/* Badges & Text Styling */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-hover);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: all 0.8s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.badge span.material-symbols-outlined {
    font-size: 1.05rem;
    font-variation-settings: 'FILL' 1;
}

/* Reusable Premium Glossy Dark Pill Component */
.glossy-dark-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.65) !important; /* Premium dark obsidian translucent background */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    color: #ffffff !important; /* High contrast pure white text */
    padding: 8px 16px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important; /* Disable text shadow inside pills for maximum legibility */
}

.glossy-dark-pill:hover {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Reusable Inline/Wrap version for highlighted words inside paragraph/title texts */
.inline-glossy-dark-pill {
    display: inline-block !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    padding: 2px 14px !important;
    margin: 0 4px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    text-shadow: none !important;
}

.sub-title {
    display: inline-flex;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--color-text-main);
    text-shadow: var(--text-shadow-contrast);
    transition: color 0.8s ease;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: none !important; /* Disable text shadow on gradient text to prevent rendering artifacts */
}

/* Horizontal Slider Layout */
.slider-container {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    /* Hardware acceleration */
    transform: translate3d(0, 0, 0); 
    will-change: transform;
}

.slide {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 80px 40px;
}

.slide-content {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    transform: translateY(6vh);
}

.scroll-indicator-mobile {
    display: none;
}

#slide-servicios .slide-content {
    transform: translateY(9vh); /* Empuja un poco más abajo específicamente la sección de servicios */
}

/* Split Column Layouts */
.split-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    align-items: center;
}

/* Slide 1 (Inicio) specifics */
.slide-content-inicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Floating background elements for slide-inicio matching reference mockup */
.floating-elements-container-inicio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element-inicio {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    color: var(--color-text-main);
    opacity: 0.18;
    font-weight: 800;
    transition: color 0.8s ease, opacity 0.8s ease;
}

.floating-element-inicio.octahedron-purple {
    opacity: 0.8;
    animation: floatDiagonal 9s ease-in-out infinite, rotateSlow 22s linear infinite;
}

.floating-element-inicio.torus-blue {
    opacity: 0.8;
    animation: floatUp 8s ease-in-out infinite, rotateSlow 28s linear infinite;
}

.floating-element-inicio.cone-blue {
    opacity: 0.75;
    animation: floatDiagonal 10s ease-in-out infinite;
}

.floating-element-inicio.grid-sphere-inicio {
    opacity: 0.35;
    animation: floatDown 11s ease-in-out infinite, rotateSlow 35s linear infinite;
}

.floating-element-inicio.symbol-braces {
    font-size: 2.3rem;
    animation: floatUp 8.5s ease-in-out infinite;
}

.floating-element-inicio.symbol-percent {
    font-size: 2rem;
    animation: floatDown 7s ease-in-out infinite;
}

.floating-element-inicio.symbol-hashtag {
    font-size: 2.2rem;
    animation: floatUp 9s ease-in-out infinite;
}

.hero-badge-pill {
    margin-bottom: 24px;
}

.hero-badge-emoji {
    font-size: 1.1rem;
}

.hero-text-col {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Art Card premium styling for Slide 1 */
.art-card-wrapper {
    width: 100%;
    max-width: 540px; /* 3:2 aspect ratio width - Made larger and more prominent */
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: floatCard 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.art-card-container:hover {
    animation-play-state: paused;
}

.art-card-premium {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: var(--glass-shadow);
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 3D tilt effect */
    transform: perspective(1000px) rotateY(-12deg) rotateX(4deg) rotateZ(-2deg);
}

body.dark-theme .art-card-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.art-card-premium:hover {
    transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) rotateZ(-1deg) scale(1.03);
    box-shadow: var(--glass-shadow-float);
}

body.dark-theme .art-card-premium:hover {
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.25);
}

.art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 19px;
    display: block;
}

.art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(15, 23, 42, 0.15) 100%);
    pointer-events: none;
}

body.dark-theme .art-overlay {
    background: linear-gradient(to bottom, transparent 70%, rgba(7, 8, 10, 0.35) 100%);
}

.hero-title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--color-text-main);
    text-shadow: var(--text-shadow-contrast);
    letter-spacing: -0.02em;
    transition: color 0.8s ease;
}

.gradient-grow {
    background: linear-gradient(95deg, #a855f7 0%, #2ca6fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
    text-shadow: none !important;
}

.text-black-highlight {
    color: #0f172a !important;
    font-weight: 900;
    display: inline-block;
    text-shadow: none !important;
}

body.dark-theme .text-black-highlight {
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    text-shadow: var(--text-shadow-contrast);
    border-left: 3px solid rgba(15, 23, 42, 0.22);
    padding-left: 18px;
    transition: border-color 0.8s ease, color 0.8s ease;
}

body.dark-theme .hero-subtitle {
    border-left-color: rgba(255, 255, 255, 0.25);
}

/* Features Capsule */
.hero-features-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.8s ease;
}

body.dark-theme .hero-features-capsule {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-feature-col {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.hero-feature-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.hero-feature-col:nth-child(3) .hero-feature-icon-circle {
    background: #7c3aed; /* Violet target circle */
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

.hero-feature-icon-circle span {
    font-size: 1.15rem !important;
}

.hero-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-feature-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    transition: color 0.8s ease;
}

.hero-feature-sub {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    line-height: 1.2;
    transition: color 0.8s ease;
}

.hero-feature-divider-vertical {
    width: 1px;
    height: 32px;
    background: rgba(15, 23, 42, 0.1);
    margin: 0 16px;
    transition: background 0.8s ease;
}

body.dark-theme .hero-feature-divider-vertical {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero-features-capsule {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 20px;
    }
    .hero-feature-divider-vertical {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-email-hero {
    background: linear-gradient(90deg, #7c3aed 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3),
                inset 0 2px 3px rgba(255, 255, 255, 0.35) !important;
    padding: 14px 32px !important;
    border-radius: 9999px !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-email-hero:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45),
                inset 0 3px 4px rgba(255, 255, 255, 0.45) !important;
}

.btn-email-hero:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25),
                inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

.btn-email-icon {
    font-size: 1.1rem;
    opacity: 0.95;
}

.btn-whatsapp-hero {
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #0f172a !important; /* Dark text */
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05),
                inset 0 2px 3px rgba(255, 255, 255, 0.45) !important;
    padding: 14px 32px !important;
    border-radius: 9999px !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.dark-theme .btn-whatsapp-hero {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2),
                inset 0 2px 3px rgba(255, 255, 255, 0.15) !important;
}

.btn-whatsapp-hero:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08),
                inset 0 3px 4px rgba(255, 255, 255, 0.55) !important;
}

body.dark-theme .btn-whatsapp-hero:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
                inset 0 3px 4px rgba(255, 255, 255, 0.25) !important;
}

.btn-whatsapp-hero:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02),
                inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.hero-visual-col {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* Video Card redesigned to be Vertical (9/16 Aspect Ratio) to show the full person */
.video-card-premium {
    width: 100%;
    max-width: 250px; /* Vertical width is narrower */
    aspect-ratio: 9/16; /* Vertical format matching mobile video original framing */
    overflow: hidden;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: var(--glass-shadow);
    position: relative;
    transition: box-shadow 0.8s ease;
}

.premium-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Since aspect-ratio is 9/16, this will not crop the vertical video */
    border-radius: 19px;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 80%, rgba(7, 8, 10, 0.3) 100%);
    pointer-events: none;
}

/* Slide 2 (Servicios) specifics */
#slide-servicios {
    position: relative;
    overflow: hidden;
}

/* Floating background elements matching the reference mockup */
.floating-elements-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    color: var(--color-text-main);
    opacity: 0.18;
    font-weight: 800;
    transition: color 0.8s ease, opacity 0.8s ease;
}

/* Specific elements style */
.floating-element.sphere-purple {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #b196ff 0%, #6d28d9 60%, #2e0854 100%);
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.4), 
                5px 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.85; /* Purple sphere is solid and stands out */
    animation: floatUp 8s ease-in-out infinite;
}

.floating-element.grid-sphere {
    width: 55px;
    height: 55px;
    opacity: 0.35;
    animation: floatDown 9s ease-in-out infinite, rotateSlow 25s linear infinite;
}

.floating-element.pyramid-gold {
    width: 75px;
    height: 75px;
    opacity: 0.9; /* Gold pyramid stands out */
    animation: floatDiagonal 10s ease-in-out infinite;
}

.floating-element.wireframe-shape {
    opacity: 0.22;
    animation: floatUp 9.5s ease-in-out infinite, rotateSlow 30s linear infinite;
}

.floating-element.symbol-braces {
    font-size: 2.5rem;
    animation: floatUp 7s ease-in-out infinite;
}

.floating-element.symbol-percent {
    font-size: 2rem;
    animation: floatDown 6s ease-in-out infinite;
}

.floating-element.symbol-hashtag {
    font-size: 2.2rem;
    animation: floatUp 8s ease-in-out infinite;
}

.floating-element.symbol-dollar {
    font-size: 2.4rem;
    animation: floatDiagonal 7.5s ease-in-out infinite;
}

.floating-element.symbol-bracket {
    font-size: 2rem;
    animation: floatDown 8.5s ease-in-out infinite;
}

/* Animations for floating background elements */
@keyframes floatUp {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatDown {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatDiagonal {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(6px, -10px) rotate(-2deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive hiding of background elements */
@media (max-width: 968px) {
    .floating-elements-container,
    .floating-elements-container-inicio {
        display: none !important;
    }
}

.vertical-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.slide-header {
    margin-bottom: 40px;
}

.carousel-col {
    grid-column: span 6;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.carousel-info-col {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.carousel-3d-container {
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1400px;
    position: relative;
}

.carousel-3d-track {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    width: 390px;
    height: 390px; /* Perfect square matching the reference */
    border-radius: 36px; /* Highly rounded corners */
    overflow: hidden;
    cursor: pointer;
    background: var(--color-surface);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.85s cubic-bezier(0.2, 1, 0.3, 1), 
                opacity 0.85s cubic-bezier(0.2, 1, 0.3, 1), 
                box-shadow 0.85s cubic-bezier(0.2, 1, 0.3, 1),
                border-color 0.85s cubic-bezier(0.2, 1, 0.3, 1);
    transform-style: preserve-3d;
    user-select: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.dark-theme .carousel-card {
    border-color: rgba(255, 255, 255, 0.08);
}

.carousel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active State (At front, centered, scaled up, strong shadow) */
.carousel-card.active {
    transform: translate3d(0, 0, 140px) scale(1.1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}

body.dark-theme .carousel-card.active {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 255, 255, 0.08);
}

/* Hover effect on active card to scale slightly more */
.carousel-card.active:hover .carousel-card-img {
    transform: scale(1.06);
}

/* Top State (Pushed back, rotated, lower opacity) */
.carousel-card.left {
    transform: translate3d(0, -210px, -120px) scale(0.85) rotateX(-15deg);
    opacity: 0.45;
    z-index: 5;
    pointer-events: auto;
}

/* Bottom State (Pushed back, rotated, lower opacity) */
.carousel-card.right {
    transform: translate3d(0, 210px, -120px) scale(0.85) rotateX(15deg);
    opacity: 0.45;
    z-index: 5;
    pointer-events: auto;
}


/* Information Block (Dynamic content on the right) */
.carousel-info-block {
    text-align: left;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 440px; /* Fixed height to support badge + divider + grid + cta */
    width: 100%;
}

/* Top Badge Pill */
.info-badge {
    transition: background 0.8s ease, color 0.8s ease, border-color 0.8s ease;
}

.icon-flash {
    font-size: 1rem !important;
    color: #ffea00 !important; /* Always gold lightning bolt */
}

.carousel-info-title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
    text-shadow: var(--text-shadow-contrast);
    transition: color 0.8s ease;
}

.dot-purple {
    color: #7c3aed; /* Violet dot */
    transition: color 0.8s ease;
}

/* Horizontal Gradient Divider line */
.info-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #ffea00 0%, transparent 100%) !important; /* Always gold gradient */
    margin: 4px 0 8px;
    transition: background 0.8s ease;
}

.carousel-info-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 600;
    line-height: 1.6;
    max-width: 520px;
    transition: color 0.8s ease;
}

/* dynamic features grid */
.info-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin: 18px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    transition: border-color 0.8s ease;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.feature-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.38); /* Elegant dark glass */
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important; /* Always white icon */
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-box {
    transform: translateY(-2px) scale(1.05);
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon-box span {
    font-size: 1.25rem !important;
}

.feature-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    transition: color 0.8s ease;
}

.feature-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.2;
    transition: color 0.8s ease;
}

/* CTA Wrapper with Explorer button */
.info-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.btn-explore {
    background: linear-gradient(90deg, #3f15db 0%, #5d17e0 50%, #761bf2 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(93, 23, 224, 0.45),
                inset 0 2px 3px rgba(255, 255, 255, 0.35) !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: 9999px !important;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-explore:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(93, 23, 224, 0.6),
                inset 0 3px 4px rgba(255, 255, 255, 0.45) !important;
}

.btn-explore:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 6px 15px rgba(93, 23, 224, 0.4),
                inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

#carousel-info-btn {
    margin-top: 8px;
}

.info-subtext {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.75;
    font-weight: 500;
    transition: color 0.8s ease;
}

/* Slide 3 (Contacto) specifics */
.contact-info-col {
    grid-column: span 6;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    text-shadow: var(--text-shadow-contrast);
    transition: color 0.8s ease;
}

.contact-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 0 var(--btn-secondary-3d-shadow),
                var(--glass-shadow),
                inset 0 2px 3px rgba(255, 255, 255, 0.45);
    position: relative;
    user-select: none;
}

.contact-row-btn:hover {
    background: var(--color-surface-card);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--btn-secondary-3d-shadow),
                0 12px 24px rgba(15, 23, 42, 0.08),
                inset 0 3px 4px rgba(255, 255, 255, 0.55);
}

.contact-row-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--btn-secondary-3d-shadow),
                0 4px 8px rgba(15, 23, 42, 0.03),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.contact-row-btn span.material-symbols-outlined {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-row-btn span.icon-mail {
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
}

.contact-row-btn span.icon-wa {
    background: rgba(37, 211, 102, 0.08);
    color: var(--color-whatsapp);
}

.btn-texts {
    display: flex;
    flex-direction: column;
}

.btn-texts .lbl {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.btn-texts .val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.contact-form-col {
    grid-column: span 6;
}

.glass-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.8s ease, border-color 0.8s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
    transition: color 0.8s ease;
}

.form-group input, 
.form-group textarea {
    background: var(--input-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.15);
}

.w-100 {
    width: 100%;
}

/* Floating Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--nav-arrow-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-arrow:hover {
    border-color: var(--color-border-hover);
    background: var(--color-surface-card);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.nav-arrow span.material-symbols-outlined {
    font-size: 1.8rem;
}

.arrow-left {
    left: 20px;
}

.arrow-left:hover {
    transform: translateY(-50%) translateX(-2px);
}

.arrow-right {
    right: 20px;
}

.arrow-right:hover {
    transform: translateY(-50%) translateX(2px);
}

.nav-arrow.disabled {
    opacity: 0;
    pointer-events: none;
}

/* Fixed Footer Overlay */
.fixed-footer-overlay {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 99;
    text-align: center;
    pointer-events: none;
}

.fixed-footer-overlay .copyright {
    font-size: 0.72rem;
    color: var(--color-copyright);
    font-family: var(--font-body);
    transition: color 0.8s ease;
}

/* Stagger entrance state classes */
.fade-in {
    opacity: 0;
}

/* ==========================================================================
   Height-Based Responsive Media Queries (Only scales down video/bento heights)
   ========================================================================== */

@media (max-height: 800px) {
    .slide {
        padding: 80px 60px 40px;
        overflow-y: auto;
        align-items: flex-start;
    }
    .art-card-wrapper {
        max-width: 440px;
    }
    
    .video-card-premium {
        max-width: 210px;
    }
    
    .carousel-3d-container {
        height: 480px;
    }
    .carousel-card {
        width: 310px;
        height: 310px;
        border-radius: 28px;
    }
    .carousel-card.left {
        transform: translate3d(0, -170px, -100px) scale(0.85) rotateX(-15deg);
    }
    .carousel-card.right {
        transform: translate3d(0, 170px, -100px) scale(0.85) rotateX(15deg);
    }
    .carousel-info-block {
        margin-top: 8px;
        min-height: 350px;
        gap: 8px;
    }
    .info-features-grid {
        margin: 10px 0;
        padding: 10px 0;
        gap: 10px;
    }
    .feature-icon-box {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .feature-icon-box span {
        font-size: 1.1rem !important;
    }
    
    .glass-form-card {
        padding: 24px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
}

@media (max-height: 660px) {
    .slide {
        padding: 70px 40px 30px;
        overflow-y: auto;
        align-items: flex-start;
    }
    .art-card-wrapper {
        max-width: 340px;
    }
    
    .video-card-premium {
        max-width: 165px;
    }
    
    .carousel-3d-container {
        height: 380px;
    }
    .carousel-card {
        width: 250px;
        height: 250px;
        border-radius: 24px;
    }
    .carousel-card.left {
        transform: translate3d(0, -130px, -80px) scale(0.85) rotateX(-15deg);
    }
    .carousel-card.right {
        transform: translate3d(0, 130px, -80px) scale(0.85) rotateX(15deg);
    }
    .carousel-info-block {
        margin-top: 4px;
        min-height: 300px;
        gap: 6px;
    }
    .carousel-info-title {
        font-size: 1.6rem;
    }
    .info-features-grid {
        margin: 6px 0;
        padding: 6px 0;
        gap: 8px;
    }
    .feature-icon-box {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    .feature-icon-box span {
        font-size: 0.95rem !important;
    }
    .btn-explore {
        padding: 10px 24px !important;
        font-size: 0.82rem;
    }
    
    .glass-form-card {
        padding: 16px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
}

/* Width-Based Responsive Queries */
@media (max-width: 968px) {
    .slide {
        padding: 130px 48px 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
    }
    
    .slide-content, #slide-servicios .slide-content {
        transform: none !important;
        margin-top: 0;
        margin-bottom: 180px;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-text-col {
        grid-column: span 12;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-visual-col {
        grid-column: span 12;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 32px;
        width: 100%;
        gap: 24px;
    }
    
    .art-card-wrapper {
        max-width: 340px;
    }
    
    .art-card-container {
        animation: floatCardMobile 5s ease-in-out infinite;
    }
    
    .art-card-premium {
        transform: none; /* Disable 3D tilt on mobile for cleaner layout */
        box-shadow: var(--glass-shadow);
    }
    
    .carousel-col {
        grid-column: span 12;
        order: 1; /* Keep carousel on top in mobile stack */
    }
    .carousel-info-col {
        grid-column: span 12;
        order: 2; /* Put text below carousel */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .carousel-3d-container {
        height: 420px;
        margin-top: 20px;
    }
    .carousel-card {
        width: 280px;
        height: 280px;
        border-radius: 26px;
    }
    .carousel-card.left {
        transform: translate3d(0, -145px, -90px) scale(0.85) rotateX(-15deg);
        opacity: 0.5;
    }
    .carousel-card.right {
        transform: translate3d(0, 145px, -90px) scale(0.85) rotateX(15deg);
        opacity: 0.5;
    }
    .carousel-card.active {
        transform: translate3d(0, 0, 90px) scale(1.08);
    }
    .carousel-info-block {
        text-align: center;
        align-items: center;
        margin-top: 24px;
        min-height: 380px;
    }
    .info-divider {
        margin: 4px auto 8px;
    }
    .info-features-grid {
        justify-content: center;
        gap: 12px;
    }
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .info-cta-wrapper {
        align-items: center;
    }
    .carousel-info-title {
        font-size: 1.85rem;
    }
    .card-icon {
        font-size: 2.2rem;
    }
    
    .card-info {
        padding: 16px;
        justify-content: center;
    }
    
    .bento-card-mini h3 {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }
    
    .bento-card-mini p {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .contact-info-col {
        grid-column: span 12;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .contact-buttons-stack {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-row-btn {
        padding: 10px 16px;
    }
    
    .contact-form-col {
        grid-column: span 12;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    
    .glass-form-card {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .nav-arrow {
        width: 44px;
        height: 44px;
    }
    
    .arrow-left { left: 10px; }
    .arrow-right { right: 10px; }
}

@media (max-width: 576px) {
    .slide {
        padding: 170px 24px 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
    }
    
    .slide-content, #slide-servicios .slide-content {
        transform: none !important;
        margin-top: 0;
        margin-bottom: 180px;
    }
    
    .scroll-indicator-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
        color: var(--color-text-main);
        font-weight: 700;
        font-size: 0.95rem;
        animation: bounce 2s infinite;
        opacity: 0.9;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(8px); }
        60% { transform: translateY(4px); }
    }
    
    .btn-whatsapp-header .btn-text {
        display: none;
    }
    
    .btn-whatsapp-header {
        padding: 8px 12px;
    }
    
    .navbar-container {
        flex-wrap: wrap;
    }
    .nav-links {
        display: flex !important;
        width: 100%;
        justify-content: center;
        order: 3;
        margin-top: 12px;
        gap: 20px;
    }
    .nav-link {
        font-size: 0.95rem;
    }
    
    .hero-title {
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        margin-bottom: 24px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .carousel-3d-container {
        height: 330px;
        margin-top: 16px;
    }
    .carousel-card {
        width: 220px;
        height: 220px;
        border-radius: 20px;
    }
    .carousel-card.left {
        transform: translate3d(0, -110px, -70px) scale(0.85) rotateX(-15deg);
        opacity: 0.35;
    }
    .carousel-card.right {
        transform: translate3d(0, 110px, -70px) scale(0.85) rotateX(15deg);
        opacity: 0.35;
    }
    .carousel-card.active {
        transform: translate3d(0, 0, 70px) scale(1.06);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    .carousel-info-block {
        margin-top: 16px;
        padding: 0 12px;
        min-height: 350px;
        gap: 8px;
    }
    .carousel-info-title {
        font-size: 1.45rem;
    }
    .carousel-info-desc {
        font-size: 0.88rem;
    }
    .info-features-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        padding: 10px 0;
    }
    .feature-icon-box {
        width: 32px;
        height: 32px;
    }
    .feature-icon-box span {
        font-size: 1.05rem !important;
    }
    .feature-title {
        font-size: 0.65rem;
    }
    .feature-desc {
        font-size: 0.65rem;
    }
    .btn-explore {
        padding: 10px 24px !important;
        font-size: 0.8rem;
    }
    .carousel-info-title {
        font-size: 1.4rem;
    }
    .carousel-info-desc {
        font-size: 0.88rem;
    }
    
    .contact-buttons-stack {
        flex-direction: column;
    }
    
    .contact-row-btn {
        width: 100%;
    }
    
    .nav-arrow {
        display: flex !important; /* Enable arrows on mobile */
    }

    .art-card-wrapper {
        max-width: 280px;
    }
}

/* ==========================================================================
   Accessibility & Keyboard Navigation Custom Styles
   ========================================================================== */

/* Visually hidden but readable by screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to Content Link styling */
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    background: var(--color-primary);
    color: #ffffff !important;
    padding: 14px 28px;
    z-index: 9999;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skip-link:focus-visible {
    top: 20px;
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
}

/* Premium Focus Ring Indicator for better keyboard UX */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}

.btn:focus-visible,
.contact-row-btn:focus-visible,
.btn-icon:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 0;
}

/* Ensure focus highlights on active elements in light/dark themes */
body.dark-theme :focus-visible {
    outline-color: var(--color-primary);
}

/* Language switcher code styling in toggle button */
.lang-code-text {
    font-family: var(--font-headline);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-text-main);
    transition: color 0.8s ease;
}

/* Floating Animations for the Artwork Card Container */
@keyframes floatCard {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-6px) translateX(2px) rotate(0.3deg);
    }
    50% {
        transform: translateY(-15px) translateX(0px) rotate(-0.3deg);
    }
    75% {
        transform: translateY(-8px) translateX(-2px) rotate(0.2deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

@keyframes floatCardMobile {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) translateX(1px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-11px) translateX(0px) rotate(1.2deg);
    }
    75% {
        transform: translateY(-6px) translateX(-1px) rotate(0.3deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* Animated Star-Struck Emoji Star Eyes & Surrounding Twinkling Stars */
.badge-emoji-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-right: 2px;
}

.animated-star-left {
    transform-origin: 0px 0px;
    animation: rotateAndTwinkleStarLeft 2s ease-in-out infinite alternate;
}

.animated-star-right {
    transform-origin: 0px 0px;
    animation: rotateAndTwinkleStarRight 2s ease-in-out infinite alternate;
}

.animated-tiny-star-1 {
    transform-origin: 0px 0px;
    animation: twinkleTinyStar1 2.2s ease-in-out infinite alternate;
}

.animated-tiny-star-2 {
    transform-origin: 0px 0px;
    animation: twinkleTinyStar2 1.7s ease-in-out infinite alternate;
}

@keyframes rotateAndTwinkleStarLeft {
    0% {
        transform: rotate(-15deg) scale(0.85);
    }
    100% {
        transform: rotate(20deg) scale(1.25);
    }
}

@keyframes rotateAndTwinkleStarRight {
    0% {
        transform: rotate(20deg) scale(1.25);
    }
    100% {
        transform: rotate(-15deg) scale(0.85);
    }
}

@keyframes twinkleTinyStar1 {
    0% {
        transform: rotate(0deg) scale(0.3);
        opacity: 0.1;
    }
    100% {
        transform: rotate(180deg) scale(1.15);
        opacity: 0.95;
    }
}

@keyframes twinkleTinyStar2 {
    0% {
        transform: rotate(0deg) scale(1.15);
        opacity: 0.95;
    }
    100% {
        transform: rotate(-180deg) scale(0.3);
        opacity: 0.1;
    }
}
.form-status-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.form-status-message.success {
    display: flex;
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
body.dark-theme .form-status-message.success {
    color: #4ade80;
}
.form-status-message.error {
    display: flex;
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
body.dark-theme .form-status-message.error {
    color: #f87171;
}

/* Accordion Styles */
.accordion-header {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.accordion-arrow {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.accordion-content.expanded {
    max-height: 1500px;
    opacity: 1;
}
.accordion-inner {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Desktop specific overrides for accordion and subtext */
@media (min-width: 969px) {
    .accordion-content {
        max-height: 1500px !important;
        opacity: 1 !important;
    }
    .accordion-header {
        pointer-events: none !important;
    }
    .accordion-arrow {
        display: none !important;
    }
    .info-subtext {
        display: none !important;
    }
}
