body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #2c2c2c;
    background-color: #f5f5f5;
    box-sizing: border-box;
}



* {
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e90ff;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.nav-btn:hover {
    background-color: #2563eb;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-buttons {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1e90ff;
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .nav-buttons.active {
        display: flex;
    }

    .nav-btn {
        width: 100%;
        margin: 0.5rem 0;
        font-size: 1.1rem;
    }
}

.hero {
    background: url('https://via.placeholder.com/1200x400?text=JavaScript+Course') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    background-color: #1e90ff;
    max-width: 100%;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

button.start-btn {
    padding: 10px 20px;
    border: none;
    background-color: #1e3a8a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button.start-btn:hover {
    background-color: #2563eb;
}

.plans-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 20;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 4rem 1rem 1rem;
    -webkit-overflow-scrolling: touch; /* Suaviza el scroll en mobile */
    transition: opacity 0.3s ease;
}

.plans-menu.show {
    display: flex;
    height: 100vh;
    opacity: 1;
}

body.plans-open {
    overflow: hidden;
    height: 100vh; 
}

.plans-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: 0;
    text-align: center;
    width: 100%;
}

.plans-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 1.5rem;
    background-color: #f87171;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 25;
}

.plans-menu .close-btn:hover {
    background-color: #dc2626;
}

.plans-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    max-width: 900px;
    flex-wrap: wrap;
    padding: 0 1rem;
    
    
}

.plan-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    width: 280px;
    min-height: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 430px;
}

.plan-card h3 {
    color: #1e3a8a;

}

@media (max-width: 935px) {
    .plans-menu.show {
        position: absolute; 
        top: 0;
        width: 100%;
        height: 100vh; 
        overflow-y: scroll; 
        
        
    }

    .plans-container {
        margin-top: 45vh;
    }
   
}
@media (min-width: 769px) {
    .plans-menu {
        align-items: center;
        padding: 4rem 2rem;
        height: auto;
        
        
    }

    .plans-container {
        flex-direction: row;
        justify-content: center;
        max-width: 900px;
        padding: 0;
    }

    .plan-card {
        width: 280px;
        min-height: 430px;
    }
}

@media (max-width: 768px) {
    .plans-menu {
        position: absolute;
        top: 0;
        padding: 2rem 0.5rem;
        height: auto;
        
    }

    .plans-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .plans-container {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
    }

    .plan-card {
        width: 90%;
        max-width: 300px;
        padding: 1rem;
        min-height: auto;
    }

    .plan-card .price {
        font-size: 1rem;
    }

    .plan-features li {
        font-size: 0.85rem;
    }

    button.buy-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .plans-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .plan-card {
        width: 90%;
        max-width: 300px;
    }
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.plan-card .price {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin: 0.5rem 0 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4a4a4a;
    position: relative;
    padding-left: 1.2rem;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1e90ff;
}

button.buy-btn {
    padding: 10px 20px;
    border: none;
    background-color: #1e3a8a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button.buy-btn:hover {
    background-color: #2563eb;
}

.benefits {
    padding: 3rem 1rem;
    background-color: #f7fafc;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.benefits h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e3a8a;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.benefit-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.icons {
    background-color: #e0f2ff;
    border-radius: 50%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: #1e3a8a;
}

.icon {
    font-size: 25px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 1rem;
    color: #4a4a4a;
}

.curriculum {
    padding: 3rem 2rem;
    background-color: #ffffff;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.curriculum h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.curriculum-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.curriculum-card {
    background-color: #f0f8ff;
    border-radius: 10px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.curriculum-card:hover {
    transform: translateY(-5px);
}

.custom-toggle {
    cursor: pointer;
}

.summary {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1e3a8a;
    position: relative;
    padding-right: 20px;
}

.summary::after {
    content: "▶";
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
}

.custom-toggle[aria-expanded="true"] .summary::after {
    transform: rotate(90deg);
}

.details-content {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-top: 0;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.custom-toggle[aria-expanded="true"] .details-content {
    opacity: 1;
    margin-top: 1rem;
}

.curriculum-card ul {
    padding-left: 1rem;
    text-align: left;
    margin: 0;
    color: #333;
}

.curriculum-card li {
    margin-bottom: 0.5rem;
}

.curriculum-cta {
    margin-top: 2rem;
    text-align: center;
}

.curriculum-cta button {
    padding: 10px 20px;
    border: none;
    background-color: #1e3a8a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.curriculum-cta button:hover {
    background-color: #2563eb;
}

.testimonials {
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.testimonial-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-grid {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease;
    flex: 0 0 33.33%;
    box-sizing: border-box;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.testimonial-card p {
    font-style: italic;
    color: #333;
    margin-bottom: 0.8rem;
}

.testimonial-card span {
    font-weight: bold;
    color: #1e90ff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1e90ff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: #2563eb;
}

.footer {
    background-color: #1e90ff;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer form {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.footer input {
    padding: 0.5rem;
    width: 250px;
    max-width: 90%;
    border: none;
    border-radius: 5px;
}

.footer button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #1e3a8a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer button:hover {
    background-color: #2563eb;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e0f2ff;
}