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

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #06d6a0 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1a1b3f 50%, #1f1f2e 100%);
}

.green-neon {
    color: #2dffb8;
}

.purple-accent {
    color: #a78bfa;
}

.glow-green {
    box-shadow: 0 0 20px rgba(45, 255, 184, 0.3);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.feature-box {
    background: linear-gradient(135deg, rgba(45, 255, 184, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(45, 255, 184, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: rgba(45, 255, 184, 0.6);
    box-shadow: 0 0 30px rgba(45, 255, 184, 0.2);
    transform: translateY(-5px);
}

.stat-card {
    background: linear-gradient(135deg, rgba(45, 255, 184, 0.1) 0%, rgba(167, 139, 250, 0.12) 100%);
    border: 1px solid rgba(45, 255, 184, 0.3);
    text-align: left;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(45, 255, 184, 0.65);
    transform: translateY(-6px);
    box-shadow: 0 0 32px rgba(45, 255, 184, 0.22);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
    color: #2dffb8;
}

#inicio h1 {
    font-size: clamp(3rem, 7.2vw, 5.8rem);
    line-height: 1.02;
}

#inicio .hero-description {
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    max-width: 44rem;
}

#inicio .hero-stats-grid {
    margin-top: 2.5rem;
    gap: 1rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 0;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    overflow: visible;
}

.hero-visual {
    position: relative;
    overflow: visible;
    display: flex;
    align-self: stretch;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 1;
}

.hero-visual img {
    width: clamp(620px, 56vw, 940px);
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
    transform: translateX(-10rem);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
    align-items: center;     /* Centra el texto horizontalmente */
    padding: 2rem;           /* Espaciado interno para que no toque los bordes */
    text-align: center;
    position: relative;
    z-index: 2;
    margin-left: 0;
}

#inicio .stat-card {
    padding: 0.85rem;
    max-width: 250px;
    margin: 0 auto;
}

#inicio .stat-card h3 {
    font-size: 1.02rem;
    line-height: 1.2;
}

#inicio .stat-card p {
    font-size: 0.9rem;
    line-height: 1.35;
}

#inicio .stat-card .stat-number {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.section-separator {
    background: linear-gradient(90deg, transparent, rgba(45, 255, 184, 0.3), transparent);
    height: 1px;
}

input, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(45, 255, 184, 0.3);
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    background: rgba(45, 255, 184, 0.1);
    border-color: rgba(45, 255, 184, 0.6);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2dffb8 0%, #06d6a0 100%);
    color: #0f172a;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 255, 184, 0.3);
}

.btn-disabled,
.btn-disabled:hover {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 255, 184, 0.1);
    border: 1px solid rgba(45, 255, 184, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-icon:hover {
    background: rgba(45, 255, 184, 0.3);
    border-color: #2dffb8;
    transform: translateY(-3px);
}

.method-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(45, 255, 184, 0.3);
    background: rgba(45, 255, 184, 0.05);
}

.method-image {
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(45, 255, 184, 0.2), rgba(167, 139, 250, 0.2));
}

.method-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.method-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.method-pill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.method-pill {
    border: 1px solid rgba(45, 255, 184, 0.28);
    border-radius: 10px;
    padding: 14px;
    background: rgba(9, 14, 30, 0.45);
}

.method-pill h4 {
    color: #2dffb8;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.method-pill p {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.45;
}

.course-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.course-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(45, 255, 184, 0.3);
    background: linear-gradient(135deg, rgba(45, 255, 184, 0.08) 0%, rgba(167, 139, 250, 0.12) 100%);
    box-shadow: 0 0 30px rgba(45, 255, 184, 0.08);
    transition: all 0.3s ease;
}

.course-ribbon {
    position: absolute;
    top: 35px;
    right: -54px;
    padding: 8px 48px;
    background: linear-gradient(135deg, #2dffb8 0%, #06d6a0 100%);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(30deg);
    box-shadow: 0 10px 30px rgba(45, 255, 184, 0.25);
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 255, 184, 0.6);
    box-shadow: 0 0 40px rgba(45, 255, 184, 0.2);
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(45, 255, 184, 0.1);
    border: 1px solid rgba(45, 255, 184, 0.25);
    color: #2dffb8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-price {
    color: #f8fafc;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 18px;
}

.course-list {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
    padding-left: 0;
}

.course-list li {
    list-style: none;
    position: relative;
    padding-left: 28px;
    color: #dbe4ef;
}

.course-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dffb8 0%, #06d6a0 100%);
    box-shadow: 0 0 12px rgba(45, 255, 184, 0.35);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.course-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(45, 255, 184, 0.15);
    color: #cbd5e1;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    #historia,
    #metodologia,
    #cursos,
    #testimonios,
    #contacto {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }

    #historia h2,
    #metodologia h2,
    #cursos h2,
    #testimonios h2,
    #contacto h2 {
        margin-bottom: 2.5rem;
    }

    .section-separator {
        margin-top: 3.25rem;
        margin-bottom: 3.25rem;
    }

    .hero-layout {
        grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
        gap: 1.5rem;
    }

    .hero-visual img {
        width: clamp(430px, 58vw, 640px);
    }
}

@media (max-width: 768px) {
    .method-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .method-image {
        height: 300px;
    }

    .method-image img {
        object-fit: cover;
        object-position: center;
        object-position: 50% 40%;
    }

    .method-content {
        padding: 30px 20px;
    }

    .method-pill-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        padding: 24px;
    }

    .course-price {
        font-size: 2.2rem;
    }

    header > div {
        justify-content: space-between;
    }

    header > div > a:first-child {
        font-size: 1rem;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .course-ribbon {
        top: 14px;
        right: -44px;
        padding: 5px 30px;
        font-size: 0.56rem;
        letter-spacing: 0.05em;
    }

    .course-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .hero-prefix {
        display: block;
        font-size: 1.45rem;
        line-height: 1.1;
    }

    .hero-highlight {
        display: block;
        font-size: 3.25rem;
        line-height: 1;
        margin-top: 6px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    #historia,
    #metodologia,
    #cursos,
    #testimonios,
    #contacto {
        padding-top: 2.9rem;
        padding-bottom: 2.9rem;
    }

    #historia h2,
    #metodologia h2,
    #cursos h2,
    #testimonios h2,
    #contacto h2 {
        margin-bottom: 2rem;
    }

    .section-separator {
        margin-top: 2.2rem;
        margin-bottom: 2.2rem;
    }
}

.story-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.story-grid.reverse {
    grid-template-columns: 1fr 2fr;
}

.story-image {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(45, 255, 184, 0.3);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-image-left img {
    object-position: left center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: auto;
    }
    
    header {
        padding-top: 0;
    }

    h1 {
        font-size: 2rem;
    }

    .story-grid, .story-grid.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .story-image {
        height: 300px;
    }
    
    #inicio h1 {
        font-size: clamp(2.7rem, 9.5vw, 4rem);
    }

    #inicio .hero-description {
        font-size: 1.08rem;
    }

    #inicio .hero-stats-grid {
        margin-top: 1.75rem;
        gap: 0.8rem;
    }

    #inicio .stat-card {
        padding: 0.72rem;
        max-width: 220px;
    }

    #inicio .stat-card h3 {
        font-size: 0.94rem;
    }

    #inicio .stat-card p {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    #inicio .stat-card .stat-number {
        font-size: 1.9rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .course-ribbon {
        top: 10px;
        right: -44px;
        padding: 5px 32px;
        font-size: 0.56rem;
        letter-spacing: 0.04em;
    }
}

.testimonial-card {
    background: rgba(45, 255, 184, 0.05);
    border: 1px solid rgba(45, 255, 184, 0.3);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(45, 255, 184, 0.6);
    box-shadow: 0 0 30px rgba(45, 255, 184, 0.2);
    transform: translateY(-5px);
}

.video-frame {
    aspect-ratio: 9 / 16;
}

.stars {
    color: #2dffb8;
    margin-bottom: 10px;
    font-size: 20px;
}


