/* =====================================================
   Landing Page - IESTP Daniel Alcides Carrión
   Premium Public-Facing Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1a237e;
    --primary-light: #283593;
    --primary-dark: #0d1257;
    --secondary: #0d47a1;
    --accent: #00bcd4;
    --accent-light: #4dd0e1;
    --success: #00c853;
    --warning: #ff9800;
    --danger: #ff5252;
    --dark: #1a1a2e;
    --darker: #0f0f23;
    --light: #f0f2f5;
    --white: #ffffff;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    --gradient-accent: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-hero: linear-gradient(160deg, #0d1257 0%, #1a237e 30%, #0d47a1 70%, #00838f 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--dark); }

/* ---- NAVBAR ---- */
.landing-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
    background: rgba(26, 35, 126, 0.92);
    backdrop-filter: blur(16px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.landing-navbar.scrolled {
    background: rgba(13, 18, 87, 0.98);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.landing-navbar .navbar-brand {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Outfit'; font-weight: 700; font-size: 17px; color: #fff;
    text-decoration: none;
}
.landing-navbar .navbar-brand .brand-logo {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gradient-accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: #fff;
    flex-shrink: 0;
}
.brand-logo-img {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.landing-navbar .navbar-brand small {
    display: block; font-size: 10px; color: var(--accent-light);
    letter-spacing: 1px; text-transform: uppercase; font-weight: 400;
}
.landing-navbar .nav-link {
    color: rgba(255,255,255,0.8) !important; font-size: 14px; font-weight: 500;
    padding: 8px 16px !important; border-radius: 8px; transition: var(--transition);
}
.landing-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.1); }
.btn-login-nav {
    background: var(--gradient-accent); border: none; color: #fff !important;
    padding: 8px 22px !important; border-radius: 8px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,188,212,0.3); transition: var(--transition);
}
.btn-login-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,188,212,0.4); }

/* ---- HERO ---- */
.hero-section {
    position: relative; min-height: 100vh;
    background: var(--gradient-hero);
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -150px; right: -150px;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(0,188,212,0.08);
}
.hero-section::after {
    content: ''; position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(0,188,212,0.06);
}
.hero-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; pointer-events: none; z-index: 0;
}
.hero-particles span {
    position: absolute; display: block; width: 4px; height: 4px;
    background: rgba(255,255,255,0.15); border-radius: 50%;
    animation: floatUp 8s linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,188,212,0.15); border: 1px solid rgba(0,188,212,0.3);
    color: var(--accent-light); padding: 6px 16px; border-radius: 30px;
    font-size: 13px; font-weight: 500; margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero-badge i { font-size: 14px; }
.hero-content h1 {
    color: #fff; font-size: 52px; line-height: 1.1;
    margin-bottom: 20px; max-width: 700px;
}
.hero-content h1 span { color: var(--accent-light); }
.hero-content p {
    color: rgba(255,255,255,0.75); font-size: 18px; line-height: 1.7;
    max-width: 560px; margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--gradient-accent); border: none; color: #fff;
    padding: 14px 32px; border-radius: 10px; font-weight: 600; font-size: 15px;
    box-shadow: 0 6px 20px rgba(0,188,212,0.35); transition: var(--transition);
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,188,212,0.5); color: #fff; }
.btn-hero-outline {
    background: transparent; border: 2px solid rgba(255,255,255,0.3);
    color: #fff; padding: 12px 28px; border-radius: 10px;
    font-weight: 600; font-size: 15px; transition: var(--transition);
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-outline:hover { border-color: var(--accent); color: var(--accent-light); background: rgba(0,188,212,0.08); }

.hero-image-col { position: relative; z-index: 2; }
.hero-card-float {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
    padding: 28px; color: #fff;
    animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-card-float .stat-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-card-float .stat-row:last-child { border-bottom: none; }
.hero-card-float .stat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.hero-card-float .stat-value { font-family: 'Outfit'; font-size: 24px; font-weight: 800; line-height: 1; }
.hero-card-float .stat-label { font-size: 12px; opacity: 0.7; margin-top: 2px; }

/* ---- STATS COUNTER ---- */
.stats-section { background: var(--white); padding: 80px 0; }
.stat-counter-card {
    text-align: center; padding: 32px 20px;
    border-radius: 16px; transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.stat-counter-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.stat-counter-icon {
    width: 60px; height: 60px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 16px; color: #fff;
}
.stat-counter-value { font-family: 'Outfit'; font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-counter-label { font-size: 14px; color: var(--gray-600); font-weight: 500; margin-top: 4px; }

/* ---- PROGRAMS ---- */
.programs-section { background: var(--gray-100); padding: 80px 0; }
.section-header {
    text-align: center; margin-bottom: 48px;
}
.section-header .section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,188,212,0.1); color: var(--accent);
    padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px;
}
.section-header h2 { font-size: 34px; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

.program-card {
    background: var(--white); border-radius: 16px;
    overflow: hidden; transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.program-card-header {
    padding: 24px; position: relative;
}
.program-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; margin-bottom: 16px;
}
.program-card h5 { font-size: 17px; margin-bottom: 8px; }
.program-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.program-card-footer {
    padding: 16px 24px; border-top: 1px solid var(--gray-200);
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--gray-500);
}
.program-card-footer i { color: var(--accent); }

/* ---- FEATURES ---- */
.features-section { padding: 80px 0; background: var(--white); }
.feature-card {
    text-align: center; padding: 36px 24px;
    border-radius: 16px; transition: var(--transition);
    background: var(--white); border: 1px solid var(--gray-200);
    height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.feature-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff; margin: 0 auto 20px;
}
.feature-card h5 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 13.5px; color: var(--gray-600); line-height: 1.7; }

/* ---- CHARTS ---- */
.charts-section { padding: 80px 0; background: var(--gray-100); }
.chart-card {
    background: var(--white); border-radius: 16px;
    padding: 28px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    height: 100%;
}
.chart-card h5 { font-size: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.chart-card h5 i { color: var(--accent); }

/* ---- CAROUSEL ---- */
.slides-section { padding: 80px 0; background: var(--white); }
.slide-card {
    background: var(--white); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.slide-card .slide-body { padding: 40px; }
.slide-card .slide-body h3 { font-size: 24px; margin-bottom: 14px; }
.slide-card .slide-body p { font-size: 15px; color: var(--gray-600); line-height: 1.8; }
.slide-card .slide-visual {
    background: var(--gradient-primary); padding: 40px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; min-height: 300px;
}
.slide-card .slide-visual i { font-size: 120px; opacity: 0.2; }
.slide-indicators { display: flex; gap: 8px; margin-top: 24px; justify-content: center; }
.slide-indicators .carousel-indicators { position: static; margin: 0; }
.slide-indicators [data-bs-target] {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--gray-500); border: none; opacity: 0.5;
}
.slide-indicators [data-bs-target].active { background: var(--accent); opacity: 1; width: 32px; border-radius: 6px; }

/* ---- CTA ---- */
.cta-section {
    padding: 100px 0; position: relative; overflow: hidden;
    background: var(--gradient-hero);
}
.cta-section::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(0,188,212,0.08);
}
.cta-section h2 { color: #fff; font-size: 36px; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 17px; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---- FOOTER ---- */
.landing-footer {
    background: var(--darker); color: rgba(255,255,255,0.6);
    padding: 60px 0 30px;
}
.landing-footer h5 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.landing-footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: var(--transition); }
.landing-footer a:hover { color: var(--accent-light); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links li i { margin-right: 8px; color: var(--accent); font-size: 12px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px; padding-top: 24px;
    font-size: 13px; text-align: center;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: rgba(255,255,255,0.7); transition: var(--transition);
}
.footer-social a:hover { background: var(--gradient-accent); color: #fff; transform: translateY(-2px); }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim-up { opacity: 0; animation: fadeInUp 0.7s ease forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 36px; }
    .hero-image-col { display: none; }
    .section-header h2 { font-size: 28px; }
}
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .stat-counter-value { font-size: 28px; }
}

/* ---- WHATSAPP WIDGET ---- */
.whatsapp-widget {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    font-family: 'Inter', sans-serif;
}
.wa-trigger {
    width: 60px; height: 60px; border-radius: 50%;
    background-color: #25D366; color: white; border: none;
    font-size: 32px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer; transition: transform 0.3s ease;
    animation: pulse-wa 2s infinite; outline: none;
}
.wa-trigger:hover { transform: scale(1.05); }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-popup {
    position: absolute; bottom: 80px; right: 0; width: 320px;
    background: #E5DDD5; border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: none;
    flex-direction: column; overflow: hidden;
    transform-origin: bottom right; animation: wa-pop 0.3s ease forwards;
}
@keyframes wa-pop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
.wa-popup.show { display: flex; }
.wa-header {
    background: #075E54; color: white; padding: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.wa-avatar {
    width: 45px; height: 45px; background: white; color: #075E54;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.wa-info strong { display: block; font-size: 15px; font-weight: 600; }
.wa-info span { font-size: 12px; color: #d1f4cc; display: flex; align-items: center; gap: 4px; }
.wa-info span::before {
    content: ''; display: inline-block; width: 8px; height: 8px;
    background: #25D366; border-radius: 50%;
}
.wa-close { background: none; border: none; color: white; font-size: 20px; cursor: pointer; opacity: 0.8; }
.wa-close:hover { opacity: 1; }
.wa-body {
    padding: 20px; min-height: 140px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
}
.wa-message {
    background: white; padding: 10px 15px; border-radius: 0 10px 10px 10px;
    position: relative; box-shadow: 0 1px 2px rgba(0,0,0,0.1); max-width: 90%;
    animation: fadeInUp 0.5s ease 0.3s both;
}
.wa-message::before {
    content: ''; position: absolute; top: 0; left: -8px;
    width: 0; height: 0; border-top: 10px solid white; border-left: 10px solid transparent;
}
.wa-message strong { color: #128C7E; font-size: 13px; display: block; margin-bottom: 3px; }
.wa-message p { margin: 0; font-size: 14px; color: #303030; line-height: 1.4; }
.wa-time { display: block; text-align: right; font-size: 11px; color: #999; margin-top: 4px; }
.wa-footer { background: #f0f0f0; padding: 15px; text-align: center; }
.wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #25D366; color: white; text-decoration: none;
    padding: 12px 20px; border-radius: 24px; font-weight: 600; font-size: 15px;
    transition: background 0.3s; width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.wa-btn:hover { background: #128C7E; color: white; }
@media (max-width: 768px) {
    .whatsapp-widget { bottom: 20px; right: 20px; }
    .wa-popup { width: 300px; bottom: 70px; }
}
