@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
/* ===== VARIABLES ===== */
:root {
    --primary: #000000;
    --primary-dark: #111111;
    --accent: #ffee00;
    --bg-light: #fdf6ec;
    --bg-soft: #f5ead8;
    --text-dark: #000000;
    --text-light: #F5F5F5;
    --border-light: #D9D9D9;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    font-size: 20px;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

section {
    padding: 40px 0;
    scroll-margin-top: 100px;
}

/* ===== TIPOGRAFIA ===== */
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 28px; font-weight: 600; }
h4 { font-size: 24px; font-weight: 600; }
p  { font-size: 20px; }

/* ===== CONTENEDOR ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 10px 20px;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 42px;
    width: auto;
    border-radius: 10px;
}

.logo h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    color: var(--text-light);
}

.logo a,
.logo a:hover {
    text-decoration: none;
    color: var(--text-light);
}

/* ===== NAVEGACION ===== */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: flex-end;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-light);
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ===== NAV TOGGLE (hamburguesa) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: none;
    border: 1px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    display: flex;
    align-items: center;
}

.language-selector form {
    display: inline;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background-color: transparent;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background-color: #f0f0f0;
}

.language-selector select option {
    background-color: var(--primary);
    color: var(--text-light);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ===== BOTONES ===== */
.btn-primary,
.btn-secondary {
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    display: inline-block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    border: 2px solid white;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-secondary:hover {
    opacity: 0.9;
}

/* ===== HERO ===== */
.hero {
    margin: 0;
    padding: 100px 0;
    background-image: url('../images/Santiago.jpg');
    background-size: cover;
    background-position: center center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    color: white;
}

.hero-content h2,
.hero-content p,
.hero-content h4,
.hero-content .header-actions {
    grid-column: 1;
}

.hero-content h1 { font-size: 5rem; }
.hero-content p {
    font-size: 1.8rem;
    font-weight: 600;
    max-width: 600px;
    line-height: 1.4;
    margin-bottom: 15px;
}
.hero-content h4 { font-size: 1.1rem; }

.header-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== CAROUSEL ===== */
#carousel-section {
    padding: 20px 0;
}

.carousel-inner .carousel-item h2 {
    display: flex;
    padding: 30px 0;
    justify-content: center;
    align-items: center;
}

/* ===== WHO WE ARE ===== */
.who-we-are-section {
    background-color: var(--bg-soft);
    padding: 60px 0 80px;
}

.who-we-are-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.who-we-are-content { width: 100%; }

.who-we-are-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.who-we-are-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 3px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== CARDS (genéricas) ===== */
.cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.card {
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    background-color: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 400px;
}

.card h2 { margin-bottom: 15px; }
.card p  { line-height: 1.8; }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

/* ===== COURSES ===== */
#courses {
    padding: 80px 0;
}

#courses h2 {
    text-align: center;
    margin-bottom: 15px;
}

#courses > .container > p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

.course-card {
    background-color: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 20px;
}

.course-card p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.courses-banner {
    width: 100%;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.courses-banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.courses-page h3 {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

/* ===== METODOLOGIA ===== */
.our-metodology {
    background-color: var(--bg-soft);
    padding: 80px 0;
}

.our-metodology h2 {
    text-align: center;
    margin-bottom: 15px;
}

.metodology-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #555;
    font-weight: 400;
}

.metodologia-cards {
    margin-bottom: 40px;
}

.metodology-closing {
    text-align: center;
    background-color: var(--primary);
    color: var(--accent);
    padding: 20px;
    border-radius: 8px;
    font-size: 1.3rem;
    margin-top: 10px;
}

/* ===== PROFESORES ===== */
.profesores-page {
    padding: 80px 0;
}

.profesores-page h2 {
    text-align: center;
    margin-bottom: 15px;
}

.profesores-page > .container > p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
}

.profesores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.profesor-card {
    background-color: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.profesor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profesor-card h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 22px;
}

.profesor-card p {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 15px;
    text-align: left;
}

.profesor-card a {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.profesor-card a:hover {
    background-color: var(--primary);
    color: var(--accent);
}

.profesor-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 3px solid var(--accent);
}

.profesor-tag {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== TESTIMONIALS ===== */
#testimonials h2,
#why-us h2,
#contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-translation {
    color: #888;
    font-size: 0.9rem;
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

#testimonials .cards {
    align-items: stretch;
}

#testimonials .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== CONTACT ===== */
.contact-container {
    text-align: center;
}

.contact-subtitle {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-info a[href^="mailto"] {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.contact-info a[href^="mailto"]:hover {
    text-decoration: underline;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 40px 20px 20px;
}

.footer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-logo-block { margin-bottom: 18px; }

.footer-logo-img {
    height: 60px;
    width: auto;
    border-radius: 12px;
}

.footer-headline {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-subheadline {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 18px;
}

.footer-bottom {
    font-size: 0.95rem;
    color: #d0d0d0;
}

/* ===== SECCION GENERICA ===== */
.section {
    padding: 80px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cards { flex-direction: column; align-items: center; }
    .nav-links { gap: 20px; }
}

@media (max-width: 900px) {
    .who-we-are-section .container { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .profesores-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h2 { font-size: 28px; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.3rem; }
    .header-actions { flex-direction: column; }

    .nav-toggle { display: flex; }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
        border-bottom: 2px solid var(--accent);
    }

    .nav-wrapper.open { display: flex; }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a.active { border-bottom-color: var(--accent); }

    .language-selector { width: 100%; margin-top: 12px; }
    .language-selector select { width: 100%; }
}

@media (max-width: 600px) {
    h1 { font-size: 22px; }
    h2 { font-size: 24px; }
    .courses-grid { grid-template-columns: 1fr; }
    .footer-logo-img { height: 40px; }
    .footer-headline { font-size: 1.05rem; }
}