/* ==========================================================================
   SUPERDOCENTE LANDING PAGE STYLESHEET
   Vanilla CSS - Modern, responsive, and high-fidelity design
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary-color: #0f766e; /* Sleek Deep Teal */
    --primary-light: #0d9488;
    --primary-dark: #115e59;
    --primary-hover: #134e4a;
    --secondary-color: #22c55e; /* Vibrant Green (WhatsApp) */
    --secondary-dark: #16a34a;
    --accent-color: #06b6d4; /* Glowing Teal for Badge */
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    
    /* Backgrounds & Neutrals */
    --bg-main: #f8fafc; /* Cool Off-white */
    --bg-white: #ffffff;
    --bg-footer: #0f172a; /* Slate Dark */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    
    /* UI System */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 30px -10px rgba(15, 118, 110, 0.08);
    --box-shadow-hover: 0 20px 40px -15px rgba(15, 118, 110, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #0f172a;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   2. Layout & Typography Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 16px;
    color: #0f172a;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 56px auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--border-color);
}

/* Badge highlight */
.badge-highlight {
    background: #e6f4f1;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(15, 118, 110, 0.15);
}

/* --------------------------------------------------------------------------
   3. Header & Navbar
   -------------------------------------------------------------------------- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.header-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo svg {
    width: 36px;
    height: 36px;
    fill: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

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

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

.nav-login {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
}

.nav-login:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 96px;
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.94)), url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600&auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(15, 118, 110, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-container-content {
    position: relative;
    z-index: 2;
}

.hero-glass-panel {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 56px 48px;
    max-width: 920px;
    margin: 0 auto 64px auto;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-family: var(--font-heading);
}

.hero-title .highlight {
    color: #ffffff;
    background: var(--primary-light);
    padding: 2px 16px;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    transform: rotate(-1.5deg);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 36px auto;
}

.hero-actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-btn-sm {
    font-size: 0.9rem !important;
    padding: 10px 22px !important;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.credit-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Comparison Grid Styling */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    margin-top: 48px;
    align-items: stretch;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 40px 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #e2e8f0;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
}

.comparison-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.comparison-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
}

.card-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.06em;
}

.tag-problem {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.tag-solution {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.comp-img-wrapper {
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.comparison-card:hover .comp-img {
    transform: scale(1.03);
}

.comp-img-wrapper-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 220px;
}

.happy-teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.app-screenshot-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.comparison-card:hover .happy-teacher-photo,
.comparison-card:hover .app-screenshot-photo {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Características (Grid Section)
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(15, 118, 110, 0.2);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e6f4f1;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #0f172a;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   6. Cómo Funciona (Timeline / Card Section)
   -------------------------------------------------------------------------- */
.how-it-works-container {
    background-color: var(--bg-white);
    border-radius: 32px;
    padding: 64px 48px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.steps-layout {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

.steps-layout::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 8%;
    width: 84%;
    height: 2px;
    background: dashed var(--border-color);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-num-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: var(--transition);
}

.step-item.active .step-num-badge,
.step-item:hover .step-num-badge {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

.step-image-card {
    background: var(--bg-main);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110px;
    overflow: hidden;
    height: 110px;
    width: 100%;
}

.step-item:hover .step-image-card {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    transform: translateY(-4px);
}

.step-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.step-item:hover .step-img-real {
    transform: scale(1.05);
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
    line-height: 1.3;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Testimonios (Review Section)
   -------------------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
}

.test-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.test-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.test-author-info h4 {
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.test-author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stars {
    color: #f59e0b; /* Amber */
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.test-quote {
    font-style: italic;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
}

.test-quote::before {
    content: '“';
    font-family: serif;
    font-size: 3rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: rgba(15, 118, 110, 0.08);
    line-height: 1;
}

/* --------------------------------------------------------------------------
   8. CTA Final Section
   -------------------------------------------------------------------------- */
.cta-final {
    background: linear-gradient(135deg, #115e59 0%, #0f172a 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 96px 24px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--bg-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--bg-footer);
    color: #94a3b8;
    padding: 64px 0 32px 0;
    border-top: 1px solid #1e293b;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
}

.footer-logo svg {
    width: 36px;
    height: 36px;
    fill: var(--primary-light);
}

.made-in-peru {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
}

.flag-pe {
    display: flex;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
}

.flag-pe span {
    display: inline-block;
    height: 100%;
}

.flag-pe .red {
    background-color: #d946ef; /* Placeholder red but let's make it real red */
    background-color: #ef4444;
    width: 33.33%;
}

.flag-pe .white {
    background-color: #ffffff;
    width: 33.33%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link:hover {
    color: var(--bg-white);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. Keyframes & Animations
   -------------------------------------------------------------------------- */
@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* --------------------------------------------------------------------------
   11. Responsive Styles (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-glass-panel {
        padding: 40px 32px;
        margin-bottom: 48px;
    }
    .hero-title {
        font-size: 2.85rem;
    }
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .steps-layout::before {
        display: none;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 14px 0;
        width: 100%;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Hero layout stack */
    .hero {
        padding-top: 110px;
        padding-bottom: 64px;
    }
    
    .hero-title {
        font-size: 2.15rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }
    
    .hero-actions-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-btn-sm {
        width: 100%;
        font-size: 0.95rem !important;
        padding: 12px 24px !important;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .comp-img-wrapper,
    .comp-img-wrapper-split {
        height: 180px;
    }
    
    /* Grid sections stacks */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .how-it-works-container {
        padding: 32px 20px;
    }
    
    .steps-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .step-image-card {
        height: 130px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.85rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
