/* =============================================
   Inglés Medellín — Shared Styles
   Warm, inviting, community-focused
   ============================================= */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Variables --- */
:root {
    --cream: #FFF9F2;
    --cream-deep: #FFF0E0;
    --warm-white: #FFFDFB;
    --teal: #1A7A6D;
    --teal-light: #E8F5F2;
    --teal-dark: #135E54;
    --coral: #E8734A;
    --coral-light: #FFF0EB;
    --gold: #D4A853;
    --gold-light: #FFF7E6;
    --text-dark: #2D2A26;
    --text-mid: #5C5650;
    --text-light: #8A827A;
    --border: #E8E0D8;
    --shadow-sm: 0 1px 3px rgba(45,42,38,0.06);
    --shadow-md: 0 4px 16px rgba(45,42,38,0.08);
    --shadow-lg: 0 8px 32px rgba(45,42,38,0.10);
    --radius: 12px;
    --radius-lg: 20px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Nunito', -apple-system, sans-serif;
    --max-width: 1100px;
    --nav-height: 70px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }

/* --- Layout --- */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255,249,242,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--teal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 700;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-mid);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--teal-light);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    cursor: pointer;
}
.lang-toggle button {
    border: none;
    background: none;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-body);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-mid);
    transition: all 0.2s;
}
.lang-toggle button.active {
    background: var(--teal);
    color: white;
}

/* Mobile menu */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border: none; }
.mobile-menu .lang-toggle { margin-top: 1rem; justify-content: center; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
}

/* --- Hero --- */
.hero {
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    background: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/hero.png') center/cover no-repeat;
    opacity: 0.35;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,249,242,0.6) 0%, rgba(255,249,242,0.7) 50%, rgba(232,245,242,0.85) 100%);
    pointer-events: none;
}
.hero-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--warm-white);
    border: 1px solid var(--border);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 .accent { color: var(--teal); }
.hero-desc {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    color: var(--text-mid);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}
.hero-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--teal);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(26,122,109,0.25);
}
.hero-cta:hover {
    background: var(--teal-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26,122,109,0.3);
}

/* --- Principles strip --- */
.principles {
    padding: 3rem 0;
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.principle-item .principle-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.principle-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}
.principle-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}
@media (max-width: 600px) {
    .principles-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- Section label --- */
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

/* --- Topics section --- */
.topics {
    padding: 5rem 0;
}
.topics h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 0.5rem;
}
.topics .section-desc {
    color: var(--text-mid);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-size: 1.05rem;
}
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.topic-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all 0.25s;
}
.topic-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.topic-card .topic-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.topic-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.topic-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* --- About section --- */
.about-section {
    padding: 5rem 0;
    background: var(--teal-light);
}
.about-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}
.about-photo {
    flex-shrink: 0;
}
.about-initials {
    width: 100px;
    height: 100px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-size: 2.5rem;
}
.about-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
}
.about-role {
    color: var(--teal);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.about-bio p {
    color: var(--text-mid);
    margin-bottom: 1rem;
    line-height: 1.75;
}
.about-bio p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
    .about-layout { flex-direction: column; align-items: center; text-align: center; }
}

/* --- Class list (numbered) --- */
.class-list {
    margin-top: 2rem;
}
.class-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.class-item:last-child { border: none; }
.class-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--teal);
    flex-shrink: 0;
    width: 40px;
}
.class-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}
.class-info p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.6;
}
.class-tag {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--coral);
    background: var(--coral-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
}

/* --- Contact strip --- */
.contact-strip {
    padding: 4rem 0;
    text-align: center;
}
.contact-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}
.contact-strip .section-desc {
    color: var(--text-mid);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.25s;
}
.contact-btn.whatsapp {
    background: #25D366;
    color: white;
}
.contact-btn.whatsapp:hover {
    background: #1FB855;
    color: white;
    transform: translateY(-2px);
}
.contact-btn.email {
    background: var(--warm-white);
    border: 1px solid var(--border);
    color: var(--text-dark);
}
.contact-btn.email:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

/* --- FAQ --- */
.faq {
    padding: 5rem 0;
    background: var(--warm-white);
}
.faq h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    text-align: center;
}
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--teal);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}
.faq-answer p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-dark);
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.footer-links a {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}
.footer-links a:hover { color: var(--teal); }
.footer-copy {
    width: 100%;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
@media (max-width: 600px) {
    .footer-inner { flex-direction: column; text-align: center; }
}

/* --- Page header (subpages) --- */
.page-header {
    padding: calc(var(--nav-height) + 3rem) 0 2.5rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}
.page-header p {
    color: var(--text-mid);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* --- Prose content --- */
.prose {
    padding: 3rem 0 5rem;
}
.prose-inner {
    max-width: 700px;
    margin: 0 auto;
}
.prose h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 2.5rem 0 0.75rem;
    color: var(--text-dark);
}
.prose h2:first-child { margin-top: 0; }
.prose p {
    color: var(--text-mid);
    margin-bottom: 1rem;
    line-height: 1.75;
}
.prose ul {
    color: var(--text-mid);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--teal);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.25s;
}
.btn:hover {
    background: var(--teal-dark);
    color: white;
    transform: translateY(-2px);
}

/* --- Thank you page --- */
.thankyou {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
}
.thankyou h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.thankyou .highlight { color: var(--teal); }
.thankyou p {
    color: var(--text-mid);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* --- 404 --- */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
}
.error-page .error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-page h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.error-page p {
    color: var(--text-mid);
    margin-bottom: 2rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
