/* Base Settings */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta en verde y blanco */
    --color-green-primary: #00BF63;
    /* Verde esmeralda moderno */
    --color-green-dark: #02c991;
    /* Verde oscuro para contrastes */
    --color-green-darker: #064E3B;
    /* Verde muy oscuro para footer y headers */
    --color-green-light: #D1FAE5;
    /* Verde muy claro para fondos tenues */
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-500: #6B7280;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-main);
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--color-gray-900);
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--color-gray-500);
}

/* UI Components */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-green-primary);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 9999px;
    /* Aspecto redondeado moderno */
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 2px 4px -1px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4), 0 4px 6px -2px rgba(16, 185, 129, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    color: var(--color-green-primary) !important;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--color-green-primary);
    border-radius: 9999px;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--color-green-primary);
    color: var(--color-white) !important;
}

/* Navbar (Menu de Navegación) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo img {
    width: 10rem;
    height: auto;
}

.logo-accent {
    color: var(--color-green-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-gray-800);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn-outline) {
    color: var(--color-green-primary);
}

/* Header / Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Degradado verde con imagen de fondo al ancho del viewport (uso Unsplash para la imagen tech/moderna) */
    background: linear-gradient(to right, rgba(6, 78, 59, 0.92), rgba(16, 185, 129, 0.8)),
        url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    text-align: center;
    padding: 0 1.5rem;
    padding-top: 5rem;
    /* Ajuste para que el navbar no lo cubra todo */
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-gray-100);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 650px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seccion de Cursos */
.courses-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--color-green-primary);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-500);
}

.courses-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.course-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    flex: 1 1 250px;
    /* Flexbox fluido, sin grid */
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-gray-100);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-green-light);
}

.icon-wrapper {
    background-color: var(--color-green-light);
    color: var(--color-green-dark);
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper svg {
    width: 30px;
    height: 30px;
}

.course-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.course-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Empuja el enlace hacia la parte inferior */
}

.course-link {
    color: var(--color-green-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.course-link:hover {
    color: var(--color-green-dark);
    gap: 0.75rem;
    /* Efecto animado en la flecha */
}

/* Estilos para el contenedor principal con efecto de burbujas modernas (Blobs) */
.main-content {
    position: relative;
    background-color: var(--color-gray-50);
    overflow: hidden;
}

.main-content::before,
.main-content::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.main-content::before {
    width: 400px;
    height: 400px;
    background: rgba(0, 191, 99, 0.2);
    top: 5%;
    left: -150px;
}

.main-content::after {
    width: 500px;
    height: 500px;
    background: rgba(2, 201, 145, 0.15);
    bottom: 10%;
    right: -200px;
}

/* Tarjetas Digitales Section */
.digital-cards-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke-width='2' stroke-opacity='0.2'%3E%3Ccircle cx='20' cy='20' r='5' stroke='%2300BF63' /%3E%3Ccircle cx='80' cy='70' r='4' fill='%2300BF63' stroke='none' fill-opacity='0.15' /%3E%3Crect x='75' y='20' width='8' height='8' stroke='%2302c991' transform='rotate(45 79 24)' /%3E%3Cpolygon points='20,80 26,68 32,80' stroke='%2310B981' /%3E%3Cpath d='M50,45 L50,55 M45,50 L55,50' stroke='%23064E3B' stroke-opacity='0.15' /%3E%3C/g%3E%3C/svg%3E");
    background-size: 150px 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.digital-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.digital-card {
    background-color: var(--color-gray-50);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    flex: 1 1 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-gray-100);
    transition: var(--transition);
}

.digital-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-green-light);
}

.digital-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
    line-height: 1.4;
}

.digital-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.digital-card .price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-green-primary);
    margin-bottom: 1.5rem;
}

/* Footer (Contacto) */
footer {
    background-color: var(--color-green-darker);
    color: var(--color-white);
    padding: 5rem 5% 2rem;
    display: flex;
    flex-direction: column;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

.footer-brand h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.footer-brand p {
    color: var(--color-gray-100);
    opacity: 0.8;
    max-width: 300px;
}

.footer-contact {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

.footer-contact h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-gray-100);
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-green-primary);
}

.contact-item:hover {
    color: var(--color-green-primary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .courses-container {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 8rem;
    }

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

    .course-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }
}