:root {
    --primary-color: #A0522D;     /* Warm dark wood / Sienna */
    --primary-glow: rgba(160, 82, 45, 0.4);
    --secondary-bg: rgba(62, 39, 35, 0.95);  /* Deep warm brown */
    --dark-bg: rgba(40, 25, 20, 0.95);      /* Darker brown */
    --glass-bg: rgba(245, 245, 220, 0.1);   /* Beige frosted glass */
    --glass-border: rgba(255, 228, 196, 0.15); /* Bisque border */
}

html {
    scroll-behavior: smooth;
}

body.bg-darker {
    background-color: #1e293b;
    background-image: url('../capturas/icono sobre la mesa de trabajo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
}

.text-gradient {
    background: linear-gradient(135deg, #f39c12 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Glassmorphism Classes */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
}
.glass-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.shadow-primary {
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Hero Section */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
    z-index: 2;
}

/* Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0, -30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Icon Morphing */
.icon-morph-container {
    position: relative;
    width: 200px;
    height: 200px;
    perspective: 1000px;
}

.icon-morph-container i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    transition: all 1s ease-in-out;
}

@keyframes hourglassOut {
    0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    40% { opacity: 1; transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
    50% { opacity: 0; transform: translate(-50%, -50%) rotate(180deg) scale(0); }
    100% { opacity: 0; transform: translate(-50%, -50%) rotate(180deg) scale(0); }
}

@keyframes stopwatchIn {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(-180deg) scale(0); }
    40% { opacity: 0; transform: translate(-50%, -50%) rotate(-180deg) scale(0); }
    50% { opacity: 0; transform: translate(-50%, -50%) rotate(-180deg) scale(1.2); }
    60% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); filter: drop-shadow(0 0 20px var(--primary-glow)); }
    100% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); filter: drop-shadow(0 0 40px var(--primary-glow)); }
}

.icon-hourglass {
    animation: hourglassOut 4s infinite;
}

.icon-stopwatch {
    animation: stopwatchIn 4s infinite;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
    background-color: var(--glass-bg) !important;
}
.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color) !important;
}

.popular-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    transform: rotate(45deg);
    width: 150px;
    background-color: #10b981 !important; /* Green accent */
}

.bg-darker {
    background-color: var(--secondary-bg);
}

/* Carousel Adjustments */
.carousel-img {
    height: 50vh;
    min-height: 300px;
    max-height: 500px;
    object-fit: contain;
    background-color: rgba(15, 23, 42, 0.95);
    border-radius: 1rem;
}

/* Footer links — visible sobre fondo oscuro */
.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

/* Section padding utility */
.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Form inputs dark style */
.form-control.bg-transparent.text-white {
    border-color: rgba(255,255,255,0.2);
}
.form-control.bg-transparent.text-white:focus {
    border-color: rgba(16,185,129,0.6);
    box-shadow: 0 0 0 0.2rem rgba(16,185,129,0.15);
    background-color: rgba(255,255,255,0.05) !important;
    color: #e2e8f0;
}
.form-control.bg-transparent.text-white::placeholder {
    color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR — Transición dinámica al hacer scroll
   ═══════════════════════════════════════════════════════════ */
.navbar {
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Estado por defecto: semitransparente sobre el hero */
.nav-text {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.25s ease;
}
.nav-text:hover {
    color: #ffffff !important;
}

/* Botones navbar — estado inicial (fondo oscuro/hero) */
.btn-outline-nav {
    color: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.6);
    background: transparent;
    transition: all 0.25s ease;
}
.btn-outline-nav:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

.btn-nav-solid {
    background: #10b981;
    color: #fff;
    border: 1.5px solid #10b981;
    transition: all 0.25s ease;
}
.btn-nav-solid:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

/* Navbar scrolled — fondo claro, texto oscuro */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.navbar.scrolled .navbar-brand span {
    color: #1e293b !important;
}

.navbar.scrolled .nav-text {
    color: #334155 !important;
}
.navbar.scrolled .nav-text:hover {
    color: #065f46 !important;
}

.navbar.scrolled .navbar-toggler-icon {
    filter: invert(1);
}

/* Botones cuando navbar está scrolled */
.navbar.scrolled .btn-outline-nav {
    color: #1e293b;
    border-color: #1e293b;
    background: transparent;
}
.navbar.scrolled .btn-outline-nav:hover {
    background: #1e293b;
    color: #fff;
}

.navbar.scrolled .btn-nav-solid {
    background: #065f46;
    border-color: #065f46;
    color: #fff;
}
.navbar.scrolled .btn-nav-solid:hover {
    background: #047857;
    border-color: #047857;
}

/* ═══════════════════════════════════════════════════════════
   PÁGINAS INTERIORES — Fondo claro glassmorphism
   (para formularios de registro, checkout, etc.)
   ═══════════════════════════════════════════════════════════ */
.page-light-bg {
    background-color: #f0f4f8 !important;
    background-image: url('../capturas/icono sobre la mesa de trabajo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Sección de formulario sin overlay oscuro */
.section-form {
    background: transparent !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

/* Tarjeta glassmorphism clara (para páginas interiores sobre fondo claro) */
.glass-card-light {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 1.25rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* Labels y textos de formulario sobre fondo claro */
.form-label-dark {
    color: #1e293b !important;
    font-weight: 600;
    font-size: 0.875rem;
}
.form-text-dark {
    color: #64748b !important;
}
.form-check-label-dark {
    color: #475569;
    font-size: 0.875rem;
}


