/* ================= RESET Y ESTILOS BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ================= HERO SECTION ================= */
.hero-section {
    background-color: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 3px solid #dc2626;
}

@media (min-width: 640px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 4rem 2rem;
    }
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    height: 4rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .logo {
        height: 5rem;
    }
}

@media (min-width: 1024px) {
    .logo {
        height: 6rem;
    }
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }
}

.hero-title .highlight {
    color: #dc2626;
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 500;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ================= CURSOS SECTION ================= */
.cursos-section {
    background-color: #f9fafb;
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .cursos-section {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cursos-section {
        padding: 4rem 2rem;
    }
}

.cursos-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #111827;
}

@media (min-width: 640px) {
    .cursos-section h2 {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cursos-section h2 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
}

.section-intro {
    text-align: center;
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    font-weight: 500;
}

@media (min-width: 640px) {
    .section-intro {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

.cursos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .cursos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.curso-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.curso-card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.curso-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #e5e7eb;
}

.curso-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.curso-card:hover .curso-image img {
    transform: scale(1.05);
}

.curso-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.curso-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (min-width: 640px) {
    .curso-content {
        padding: 2rem;
    }
}

.curso-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .curso-content h3 {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
    }
}

.curso-content p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .curso-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

.curso-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

@media (min-width: 640px) {
    .curso-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

.curso-button:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
    transform: scale(1.05);
}

.curso-button:active {
    transform: scale(0.95);
}

/* ================= MENTORÍA SECTION ================= */
.mentoria-section {
    background: linear-gradient(135deg, #111827, #000000);
    color: #ffffff;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .mentoria-section {
        padding: 4rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .mentoria-section {
        padding: 5rem 2rem;
    }
}

.mentoria-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.mentoria-content h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .mentoria-content h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .mentoria-content h2 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
}

.mentoria-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .mentoria-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

.mentoria-description {
    font-size: 1rem;
    color: #e5e7eb;
    margin-bottom: 2rem;
    line-height: 1.7;
}

@media (min-width: 640px) {
    .mentoria-description {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

.mentoria-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

@media (min-width: 640px) {
    .mentoria-button {
        padding: 1.25rem 3rem;
        font-size: 1.125rem;
    }
}

.mentoria-button:hover {
    background-color: #b91c1c;
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
}

.mentoria-button:active {
    transform: scale(0.95);
}

/* ================= REDES SOCIALES SECTION ================= */
.social-section {
    background-color: #f9fafb;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .social-section {
        padding: 4rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .social-section {
        padding: 5rem 2rem;
    }
}

.social-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #111827;
}

@media (min-width: 640px) {
    .social-section h2 {
        font-size: 1.875rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .social-section h2 {
        font-size: 2.25rem;
        margin-bottom: 3rem;
    }
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .social-grid {
        gap: 3rem;
    }
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .social-link {
        padding: 1.25rem 2rem;
    }
}

.social-link svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.social-link.facebook {
    color: #1877f2;
}

.social-link.facebook:hover {
    background-color: #f0f2f5;
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.2);
    transform: translateY(-2px);
}

.social-link.instagram {
    background: linear-gradient(135deg, #feda75, #fa7e1e, #d92e7f, #9b36b7, #515bd4);
    color: #ffffff;
}

.social-link.instagram:hover {
    box-shadow: 0 8px 16px rgba(217, 46, 127, 0.3);
    transform: translateY(-2px);
}

/* ================= WHATSAPP WIDGET ================= */
.whatsapp-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #22c55e;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 40;
}

@media (min-width: 640px) {
    .whatsapp-widget {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
}

.whatsapp-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .whatsapp-icon {
        width: 2rem;
        height: 2rem;
    }
}

.whatsapp-widget a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .whatsapp-widget a {
        font-size: 1rem;
    }
}

.whatsapp-widget:hover {
    background-color: #16a34a;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.whatsapp-widget:active {
    transform: scale(0.95);
}

/* ================= FOOTER ================= */
.footer {
    background-color: #111827;
    color: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 3rem 2rem;
    }
}

.footer p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ================= SMOOTH SCROLL ================= */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ================= ACCESSIBILITY ================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================= PRINT STYLES ================= */
@media print {
    .whatsapp-widget {
        display: none;
    }
}
