/* Color Palette */
:root {
    --primary-green: #00a650;
    --primary-green-hover: #008a42;
    --primary-blue: #0b1b3d;
    --accent-red: #e63946;
    --accent-yellow: #f4a261;
    --accent-blue: #1d3557;
    
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-blue);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, #0b1b3d 0%, #1d3557 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-green { color: var(--primary-green) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-red { color: var(--accent-red) !important; }
.text-yellow { color: var(--accent-yellow) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background-color: var(--primary-green);
    color: var(--white);
    gap: 8px;
}

.btn-whatsapp-large {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-link {
    color: var(--primary-blue);
    background: transparent;
    padding: 12px 16px;
}
.btn-link:hover {
    box-shadow: none;
    color: var(--accent-blue);
}

.btn-outline-green {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}
.btn-outline-green:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-yellow {
    background-color: #f59e0b;
    color: white;
}

.btn-blue {
    background-color: var(--accent-blue);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a { display: flex; align-items: center; }

.logo-img {
    height: 50px !important;
    width: auto !important;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.logo-white .logo-img {
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-white .logo-text {
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e6f6ec;
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 1.2rem;
}

.feature-text {
    font-size: 0.9rem;
    line-height: 1.3;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.circle-bg {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
    opacity: 0.6;
}

.circle-bg.bg-red {
    width: 200px;
    height: 200px;
    background: var(--accent-red);
    top: -50px;
    right: 50px;
}

.circle-bg.bg-green {
    width: 150px;
    height: 150px;
    background: var(--primary-green);
    bottom: 50px;
    left: -30px;
}

.circle-bg.bg-yellow {
    width: 180px;
    height: 180px;
    background: var(--accent-yellow);
    top: 100px;
    right: -40px;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -40px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    border: 3px solid var(--white);
    margin-left: -15px;
}
.avatar:first-child { margin-left: 0; background: url('https://i.pravatar.cc/100?img=1') center/cover; }
.avatar:nth-child(2) { background: url('https://i.pravatar.cc/100?img=5') center/cover; }
.avatar:nth-child(3) { background: url('https://i.pravatar.cc/100?img=3') center/cover; }

.badge-text strong {
    display: block;
    font-size: 14px;
    color: var(--primary-blue);
}
.badge-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Learning Path */
.bg-light {
    background-color: var(--bg-light);
}

.learning-path {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.path-grid::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: dashed 2px #cbd5e1;
    z-index: 0;
}

.path-card {
    background: var(--white);
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: -60px auto 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bg-green { background-color: var(--primary-green); }
.bg-yellow { background-color: #f59e0b; }
.bg-blue { background-color: var(--accent-blue); }

.path-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.path-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.path-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Plans */
.plans {
    padding: 100px 0;
}

/* PreICFES y Asesorías */
.otras-lineas {
    padding: 80px 0;
}

.otras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.otra-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.otra-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.otra-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-red { background-color: var(--accent-red); }
.bg-blue-accent { background-color: #3b82f6; }

.otra-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.otra-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.otras-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    gap: 20px;
}

.otras-cta-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-main);
}

@media (max-width: 992px) {
    .otras-grid {
        grid-template-columns: 1fr;
    }
    .otras-cta {
        flex-direction: column;
        text-align: center;
    }
}


.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.plan-card.featured {
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.07);
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.border-green { border-bottom-color: var(--primary-green); }
.border-red { border-bottom-color: var(--accent-red); }
.border-blue { border-bottom-color: var(--accent-blue); }

.plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-green-light { background: #dcfce7; }
.bg-red-light { background: #fee2e2; }
.bg-blue-light { background: #dbeafe; }

.plan-header h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.plan-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.plan-features li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-price {
    text-align: center;
    margin-bottom: 24px;
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
}

/* Footer CTA & Footer */
.bg-dark-blue {
    background-color: var(--primary-blue);
    color: white;
}

.footer-cta {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 20px;
    font-size: 0.95rem;
    max-width: 80%;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #94a3b8;
}

.footer-links ul li a:hover {
    color: var(--primary-green);
}

.footer-contact ul li {
    color: #94a3b8;
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== TABLET (992px) ===== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions  { justify-content: center; }
    .hero-features { grid-template-columns: 1fr 1fr; }
    .floating-badge { left: 0; }
    .path-grid  { grid-template-columns: 1fr 1fr; }
    .plans-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .otras-grid  { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE (768px) ===== */
@media (max-width: 768px) {


    /* Logo img on mobile */
    .logo-img { width: 80px; max-height: 48px; }
    /* --- Navbar --- */
    .navbar { padding: 12px 0; }
    .nav-container { position: relative; }
    /* Logo centrado en movil */
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    .nav-container .logo {
        grid-column: 2;
        justify-self: center;
    }
    #hamburger {
        grid-column: 3;
        justify-self: end;
    }
    .nav-links { grid-column: 1 / -1; }

    /* Imagen del hero primero en movil */
    .hero-container {
        display: flex;
        flex-direction: column;
    }
    .hero-image-wrapper {
        order: -1;
        margin-top: 0;
        margin-bottom: 24px;
    }


    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(11, 27, 61, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 150;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        color: white;
        font-size: 1.3rem;
        font-weight: 600;
        border-bottom: none;
        padding: 4px 0;
    }
    .nav-links a:hover, .nav-links a.active {
        color: var(--primary-green);
        border-bottom: none;
    }

    .hamburger { display: flex; }
    .btn-whatsapp { display: none; }

    /* --- Hero --- */
    .hero { padding: 40px 0 30px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-features { grid-template-columns: 1fr; gap: 12px; }
    .hero-image-wrapper { margin-top: 30px; }
    .floating-badge {
        position: relative;
        bottom: auto; left: auto;
        margin-top: 20px;
        justify-content: center;
    }
    .circle-bg { display: none; }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .hero-actions .btn { width: 100%; text-align: center; }

    /* --- Learning Path --- */
    .learning-path { padding: 50px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 36px; }
    .path-grid { grid-template-columns: 1fr; gap: 20px; }
    .step-number { margin: -40px auto 16px; }

    /* --- Plans --- */
    .plans { padding: 50px 0; }
    .plans-grid { grid-template-columns: 1fr; gap: 20px; }
    .plan-card.featured { transform: scale(1); }
    .price-amount { font-size: 1.6rem; }

    /* --- Otras Lineas --- */
    .otras-lineas { padding: 50px 0; }
    .otras-grid { grid-template-columns: 1fr; gap: 16px; }
    .otras-cta {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    .otras-cta-text { justify-content: center; font-size: 0.9rem; }

    /* --- Footer CTA --- */
    .footer-cta { padding: 40px 0; }
    .cta-content h2 { font-size: 1.5rem; }
    .flex-between {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }
    .btn-whatsapp-large { width: 100%; justify-content: center; }

    /* --- Footer --- */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
    .footer-brand p { max-width: 100%; }
}

/* ===== SMALL MOBILE (480px) ===== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.9rem; }
    .section-title { font-size: 1.6rem; }
    .logo-text { font-size: 22px; }
    .feature-item { padding: 10px; gap: 10px; }
    .feature-text { font-size: 0.82rem; }
    .path-card { padding: 30px 18px; }
    .plan-card { padding: 22px 18px; }
    .otra-card { flex-direction: column; }
    .otra-icon-wrap { width: 52px; height: 52px; }
}
