/* ============================================
   ESDAN — Futuristic Design System
   Inspired by Platzi.com Modern UI
   ============================================ */

:root {
    --primary: #00de8a;
    --primary-dark: #00b86f;
    --secondary: #0f1b35;
    --accent: #00b4ff;
    --accent-purple: #7b61ff;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    --bg-body: #f7f9fc;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-border: rgba(18, 31, 61, 0.06);
    --ease: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-body);
    overflow-x: hidden;
    line-height: 1.7;
    margin: 0;
}

img { max-width: 100%; height: auto; }

/* ---- Responsive Typography ---- */
h1 { font-size: clamp(1.8rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 3vw, 1.8rem); font-weight: 700; }
h4 { font-size: clamp(1rem, 2.5vw, 1.3rem); font-weight: 700; }
.lead { font-size: clamp(0.95rem, 1.8vw, 1.15rem); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,222,138,0.12), rgba(0,180,255,0.12));
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-padding { padding: 100px 0; }
@media (max-width: 768px) { .section-padding { padding: 60px 0; } }

.divider-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    margin: 16px auto;
}

/* ---- Glassmorphism ---- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* ---- Cards ---- */
.glass-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: var(--ease);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(0, 222, 138, 0.14);
    border-color: var(--primary);
}

.card-icon-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -28px auto 20px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 222, 138, 0.25);
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

/* ---- Buttons ---- */
.btn-futuristic {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    transition: var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-futuristic:hover {
    color: white;
    box-shadow: 0 12px 28px rgba(0, 222, 138, 0.35);
    transform: translateY(-3px);
}

.btn-outline-glow {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--ease);
    background: transparent;
}

.btn-outline-glow:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 222, 138, 0.3);
}

/* ---- Navbar ---- */
.navbar {
    transition: var(--ease);
    padding: 24px 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(15, 27, 53, 0.97) !important;
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 12px;
    position: relative;
    transition: var(--ease);
}

.nav-link:hover { color: var(--primary) !important; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--ease);
    border-radius: 2px;
}

.nav-link:hover::after { width: 70%; }

@media (max-width: 991px) {
    .navbar { background: var(--secondary) !important; padding: 14px 0; }
    .nav-link { margin: 4px 0; padding: 10px 16px !important; }
    .navbar-collapse { padding-top: 16px; }
}

/* ---- Hero ---- */
#hero {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,222,138,0.12) 0%, transparent 70%);
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,180,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0;
}

.hero-stat p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    #hero { padding-top: 100px; padding-bottom: 50px; min-height: auto; }
    .hero-stats { gap: 20px; justify-content: center; }
    .hero-stat h3 { font-size: 1.4rem; }
}

/* ---- Form ---- */
.form-futuristic .form-control,
.form-futuristic .form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #ffffff;
    padding: 16px 18px;
    font-size: 0.9rem;
    transition: var(--ease);
}

.form-futuristic .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-futuristic .form-control:focus,
.form-futuristic .form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 222, 138, 0.15);
    color: #fff;
    outline: none;
}

.form-futuristic .form-select option { color: #333; background: #fff; }

.form-futuristic label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--card-border);
    transition: var(--ease);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.5rem;
    color: rgba(0, 222, 138, 0.12);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 222, 138, 0.2);
}

.stars { color: #fbbf24; font-size: 0.85rem; }

/* ---- Info Panel (Atención) ---- */
.info-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(0, 222, 138, 0.08);
    border: 1px solid rgba(0, 222, 138, 0.15);
    border-radius: var(--radius-sm);
}

.info-panel .icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.info-panel h5 { color: #ffffff; font-weight: 700; margin: 0; font-size: 1rem; }
.info-panel p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.85rem; }

/* ---- Footer Social ---- */
.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1.1rem;
    transition: var(--ease);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 222, 138, 0.3);
}

/* ---- Animations ---- */
.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 222, 138, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(0, 222, 138, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 222, 138, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.float-anim { animation: float 5s ease-in-out infinite; }

/* ---- WhatsApp Button ---- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--ease);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ---- Misc ---- */
.counter-box {
    text-align: center;
    padding: 32px 20px;
}

.counter-box h2 {
    color: var(--primary);
    font-size: 2.8rem;
    font-weight: 800;
}

.counter-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
