/* ============================================================
   index3.css  —  CSS puro equivalente al TailwindCSS de index.php
   Resultado visual: tema claro emerald/blue (incluye los
   overrides definidos originalmente en index2.css).
   ============================================================ */

/* ---------- Variables (heredadas de index2.css) ---------- */
:root {
    --blue-deep: #000b1a;
    --cyan: #00b4d8;
    --blue-electric: #0077b6;
    --emerald: #059669;
    --emerald-soft: #10b981;
    --bg: #faf8f5;
    --bg-alt: #f3f0eb;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --border-subtle: rgba(0, 119, 182, 0.10);
    --border-card: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 40px rgba(0, 119, 182, 0.12), 0 6px 12px rgba(0, 0, 0, 0.06);
    --radius-sm: 1rem;
    --radius-md: 1.5rem;
    --radius-lg: 2rem;
    --radius-xl: 2.5rem;
}

/* ---------- Reset ligero ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
    position: fixed;
    left: 0.125rem;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
}
.nav__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__brand { display: flex; align-items: center; gap: 0.5rem; line-height: 1; }
.nav__logo-box {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.025);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border: 1px solid var(--border-card);
    overflow: hidden;
}
.nav__logo-box img { width: 100%; height: 100%; object-fit: contain; }
.nav__brand-text { display: flex; flex-direction: column; text-transform: uppercase; letter-spacing: 0.15em; }
.nav__brand-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-primary);
}
.nav__brand-sub {
    font-size: 6px;
    font-weight: 700;
    color: var(--cyan);
    margin-top: 0.125rem;
}
.nav__menu-btn {
    display: block;
    color: var(--text-primary);
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
.nav__links {
    display: none;
    gap: 2rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    align-items: center;
}
.nav__links a {
    transition: color 0.3s ease;
    text-align: center;
}
.nav__links a:hover { color: var(--emerald); }
.nav__links a.external { display: flex; align-items: center; gap: 0.5rem; }
.nav__links a.external .external-icon { width: 12px; height: 12px; }
.nav__links .cta {
    color: var(--text-primary);
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(0, 119, 182, 0.20);
    border-radius: 9999px;
    background: #fff;
    transition: all 0.3s ease;
    margin-left: 1rem;
    font-size: 9px;
}
.nav__links .cta:hover {
    background: var(--emerald-soft);
    border-color: rgba(0, 0, 0, 0.10);
    color: #fff;
}

@media (min-width: 1024px) {
    .nav__links { display: flex; }
    .nav__menu-btn { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
}
@media (min-width: 1024px) {
    .mobile-menu { display: none; }
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu__inner { display: flex; flex-direction: column; height: 100%; }
.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-card);
}
.mobile-menu__title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.mobile-menu__close {
    color: var(--text-primary);
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}
.mobile-menu__links a { transition: color 0.3s ease; padding: 0.5rem 0; text-align: center; }
.mobile-menu__links a:not(.external):not(.cta) { border-bottom: 1px solid var(--border-subtle); }
.mobile-menu__links a:hover { color: var(--emerald); }
.mobile-menu__links a.external { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu__links a.external:hover { color: var(--blue-electric); }
.mobile-menu__links .cta {
    color: var(--blue-electric);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(0, 119, 182, 0.30);
    border-radius: 9999px;
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}
.mobile-menu__links .cta:hover {
    background: var(--cyan);
    color: #fff;
}

/* SVG icon sizing (lucide) */
.icon { width: 24px; height: 24px; }

/* ===========================================================
   HERO
   =========================================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 1rem 0;
    overflow: hidden;
}
#hero::before {
    content: "";
    position: absolute;
    top: -6rem;
    left: -6rem;
    width: 18rem;
    height: 18rem;
    background: rgba(0, 119, 182, 0.08);
    filter: blur(120px);
    border-radius: 9999px;
}
.hero__container {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
}
.hero__text { z-index: 10; text-align: center; order: 2; }
.hero__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 119, 182, 0.08);
    border: 1px solid rgba(0, 119, 182, 0.20);
    color: var(--blue-electric);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}
.hero__title-1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.hero__title-2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}
.serif-text {
    font-family: 'Instrument Serif', serif;
    color: var(--emerald);
    letter-spacing: -0.01em;
}
.not-italic { font-style: normal; }
.italic { font-style: normal !important; }
.font-light { font-weight: 400; }
.font-extrabold { font-weight: 800; }
.text-glow { text-shadow: 0 0 20px rgba(5, 150, 105, 0.3); }

.hero__decision,
.hero__title-hoy,
.hero__title-ser {
    font-style: normal;
    font-weight: 400;
    text-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
}
.hero__title-strong { font-weight: 800; }

.hero__copy {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.625;
    font-style: italic;
}
.hero__cta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}
.hero__btn {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: block;
}
.btn-premium {
    background: #fff;
    border: 1px solid var(--blue-electric);
    color: var(--blue-electric);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.btn-premium:hover {
    background: rgba(0, 119, 182, 0.06);
    border-color: #005a8c;
    color: #005a8c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.18);
}
.btn-premium-green {
    background: #fff;
    border: 1px solid var(--emerald);
    color: var(--emerald);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.btn-premium-green:hover {
    background: rgba(0, 119, 182, 0.06);
    border-color: var(--emerald-soft);
    color: var(--emerald-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.18);
}

.hero__media { position: relative; order: 1; }
.hero__media-glow {
    position: absolute;
    inset: 0;
    background: rgba(0, 119, 182, 0.12);
    filter: blur(80px);
    border-radius: 9999px;
    transform: scale(0.75);
    transition: transform 1s;
}
.hero__media:hover .hero__media-glow { transform: scale(0.95); }
.hero__media-frame {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-lg);
    transform: scale(1);
    transition: transform 700ms;
}
.hero__media:hover .hero__media-frame { transform: scale(1.01); }
.hero__media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

@media (min-width: 640px) {
    #hero { padding: 5rem 1.5rem 0; }
    .hero__title-1 { font-size: 3rem; }
    .hero__title-2 { font-size: 1.875rem; }
    .hero__copy { font-size: 1.125rem; }
    .hero__cta { flex-direction: row; justify-content: center; }
}
@media (min-width: 1024px) {
    .hero__container { grid-template-columns: 2fr 1fr; gap: 4rem; }
    .hero__text { text-align: left; order: 1; }
    .hero__media { order: 2; }
    .hero__cta { justify-content: flex-start; }
    .hero__copy { margin-left: 0; }
    .hero__btn--green { background: #fff; color: #fff; }
    .hero__title-1 { font-size: 3.75rem; }
    .hero__title-2 { font-size: 2.25rem; }
}
@media (min-width: 1280px) {
    .hero__title-1 { font-size: 4.5rem; }
}

/* ===========================================================
   DOCENTES
   =========================================================== */
#docente {
    padding: 3rem 1rem;
    background: var(--bg);
}
#docente .section__header { text-align: center; margin-bottom: 3rem; }
#docente h2 {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: 'Instrument Serif', serif;
    color: var(--text-primary);
}
#docente h2 .accent { color: var(--emerald); }
.section__divider {
    width: 5rem;
    height: 0.25rem;
    background: var(--emerald);
    margin: 1rem auto 0;
    border-radius: 9999px;
}
.section__container { max-width: 80rem; margin: 0 auto; }
#docentes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
#docentes-grid .glass {
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    border-radius: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#docentes-grid .glass:hover {
    border-color: var(--blue-electric);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
#docentes-grid img {
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
    #docente { padding: 4rem 1.5rem; }
    #docente h2 { font-size: 3rem; }
    #docentes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    #docente { padding: 6rem 1.5rem; }
    #docente h2 { font-size: 4.5rem; }
    #docente .section__header { margin-bottom: 5rem; }
    #docentes-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================================================
   FORMACIONES
   =========================================================== */
#formaciones {
    padding: 2rem 1rem;
    background: var(--bg-alt);
}
#formaciones .section__header { text-align: center; margin-bottom: 3rem; }
#formaciones h2 {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: 'Instrument Serif', serif;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}
#formaciones h2 .accent-inner {
    color: var(--emerald);
    display: inline-block;
    font-style: normal;
    font-weight: 800;
    font-size: 1.25rem;
}
#formaciones .section__lead {
    color: var(--text-muted);
    font-size: 0.75rem;
    max-width: 42rem;
    margin: 0 auto;
    font-style: italic;
    padding: 0 1rem;
}
#formaciones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
#formaciones-grid .glass {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    border-radius: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#formaciones-grid .glass:hover {
    border-color: var(--blue-electric);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
#formaciones-grid img {
    margin: -1.5rem -1.5rem 1.25rem -1.5rem;
    width: calc(100% + 3rem);
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid var(--border-card);
}

@media (min-width: 640px) {
    #formaciones { padding: 3rem 1.5rem; }
    #formaciones h2 { font-size: 2.25rem; }
    #formaciones h2 .accent-inner { font-size: 1.875rem; }
    #formaciones .section__lead { font-size: 0.875rem; }
    #formaciones-grid { grid-template-columns: repeat(2, 1fr); }
    #formaciones .section__header { margin-bottom: 5rem; }
}
@media (min-width: 1024px) {
    #formaciones { padding: 4.5rem 1.5rem; }
    #formaciones h2 { font-size: 3.75rem; }
    #formaciones h2 .accent-inner { font-size: 3rem; }
    #formaciones-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================================
   IN-HOUSE
   =========================================================== */
#in-house {
    padding: 2rem 1rem;
    background: var(--bg);
}
#in-house .glass {
    overflow: hidden;
    border-radius: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
}
#in-house .glass__content {
    padding: 2.5rem;
    order: 2;
}
#in-house .glass__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 119, 182, 0.08);
    border: 1px solid rgba(0, 119, 182, 0.20);
    color: var(--blue-electric);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}
#in-house h2 {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: 'Instrument Serif', serif;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
#in-house h2 .accent { color: var(--emerald); }
#in-house .glass__copy {
    color: var(--text-muted);
    line-height: 1.625;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}
#in-house .glass__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
#in-house .glass__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}
#in-house .glass__list .icon-check {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--emerald);
    flex-shrink: 0;
}
#in-house .glass__media {
    height: 16rem;
    background-size: cover;
    background-position: center;
    order: 1;
}
#in-house .glass__media::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(0, 119, 182, 0.05);
}

@media (min-width: 640px) {
    #in-house { padding: 3rem 1.5rem; }
    #in-house h2 { font-size: 2.25rem; }
    #in-house .glass__copy { font-size: 1rem; }
    #in-house .glass__media { height: 20rem; }
}
@media (min-width: 1024px) {
    #in-house { padding: 4.5rem 1.5rem; }
    #in-house .glass { grid-template-columns: 2fr 1fr; border-radius: 4rem; }
    #in-house .glass__content { order: 1; padding: 5rem 3rem; }
    #in-house .glass__media { order: 2; height: auto; min-height: 300px; }
    #in-house h2 { font-size: 3.75rem; }
    #in-house .glass__copy { font-size: 1.125rem; }
}

/* ===========================================================
   AVALES
   =========================================================== */
#aval {
    padding: 2rem 1rem;
    background: var(--bg);
    text-align: center;
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}
#aval h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    font-style: italic;
    font-family: 'Instrument Serif', serif;
    color: var(--text-primary);
}
#aval h2 .accent { color: var(--emerald); }
#avales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
#avales-grid .glass {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    border-radius: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#avales-grid .glass:hover {
    border-color: var(--blue-electric);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
#avales-grid img {
    border: none;
    box-shadow: none;
    opacity: 0.85;
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    #aval { padding: 3rem 1.5rem; }
    #aval h2 { font-size: 1.875rem; margin-bottom: 4rem; }
    #avales-grid { gap: 1.5rem; }
}
@media (min-width: 1024px) {
    #aval h2 { font-size: 2.25rem; }
    #avales-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================================================
   RECURSOS
   =========================================================== */
#recursos {
    padding: 2rem 1rem;
    background: var(--bg);
}
#recursos .section__container { text-align: center; }
#recursos h2 {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: 'Instrument Serif', serif;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.05em;
}
#recursos h2 .accent { color: var(--emerald); }
#recursos .recursos__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
#recursos .glass {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#recursos .glass:hover {
    border-color: var(--blue-electric);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
#recursos .glass--book { justify-content: space-between; }
#recursos .glass--feature {
    justify-content: center;
    align-items: center;
    border-color: rgba(0, 119, 182, 0.30);
}
#recursos .book-img {
    width: 10rem;
    height: 13rem;
    margin: 0 auto 2rem;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transform: rotate(-3deg);
    transition: transform 700ms;
}
#recursos .glass:hover .book-img { transform: rotate(0); }
#recursos h3 {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Instrument Serif', serif;
    margin-bottom: 1rem;
}
#recursos .glass--feature h3 { color: var(--emerald); text-shadow: 0 0 20px rgba(5, 150, 105, 0.3); }
#recursos .book-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 0.875rem;
}
#recursos .book-actions {
    display: flex;
    gap: 0.75rem;
    max-width: 20rem;
    margin: 0 auto;
    width: 100%;
}
#recursos .book-actions a {
    flex: 1;
    padding: 0.75rem;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
#recursos .book-actions .btn-ebook {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}
#recursos .book-actions .btn-ebook:hover {
    background: var(--cyan);
    color: #fff;
}
#recursos .book-actions .btn-paper {
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}
#recursos .book-actions .btn-paper:hover { background: var(--border-subtle); }
#recursos .badge-coming {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 119, 182, 0.08);
    color: var(--blue-electric);
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 9999px;
    font-style: italic;
    border: 1px solid rgba(0, 119, 182, 0.20);
}

@media (min-width: 640px) {
    #recursos { padding: 3rem 1.5rem; }
    #recursos h2 { font-size: 2.25rem; }
    #recursos h3 { font-size: 1.875rem; }
    #recursos .book-img { width: 12rem; height: 16rem; }
    #recursos .recursos__grid { gap: 3rem; }
    #recursos .glass { padding: 3rem; border-radius: 2rem; }
}
@media (min-width: 1024px) {
    #recursos h2 { font-size: 4.5rem; margin-bottom: 5rem; }
    #recursos h3 { font-size: 2.25rem; }
    #recursos .book-img { width: 14rem; height: 18rem; }
    #recursos .glass { border-radius: 4rem; }
    #recursos .recursos__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================================================
   PODCAST
   =========================================================== */
#podcast {
    padding: 2rem 1rem;
    background: rgba(220, 38, 38, 0.025);
    border-top: 1px solid var(--border-card);
    text-align: center;
}
#podcast .section__container { max-width: 56rem; margin: 0 auto; }
#podcast .podcast-icon-wrap {
    display: inline-block;
    padding: 0.75rem;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}
#podcast .icon-mic { width: 1.5rem; height: 1.5rem; color: #dc2626; }
#podcast h2 {
    font-size: 1.875rem;
    font-weight: 800;
    font-style: italic;
    font-family: 'Instrument Serif', serif;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
#podcast h2 .accent {
    color: #dc2626;
    font-style: normal;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.5rem;
    display: block;
}
#podcast .podcast__copy {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.625;
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0 1rem;
}
#podcast .podcast-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #dc2626;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
    transition: background 0.3s ease;
}
#podcast .podcast-cta:hover { background: #b91c1c; }
#podcast .icon-yt { width: 1.25rem; height: 1.25rem; }

@media (min-width: 640px) {
    #podcast { padding: 3rem 1.5rem; }
    #podcast h2 { font-size: 3rem; }
    #podcast h2 .accent { font-size: 2.25rem; }
    #podcast .icon-mic { width: 2rem; height: 2rem; }
    #podcast .podcast__copy { font-size: 1rem; }
    #podcast .podcast-cta { padding: 1.5rem 3rem; gap: 1.25rem; border-radius: 1.5rem; font-size: 12px; }
    #podcast .icon-yt { width: 1.5rem; height: 1.5rem; }
}
@media (min-width: 1024px) {
    #podcast h2 { font-size: 4.5rem; }
    #podcast h2 .accent { font-size: 3.75rem; }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
    padding: 3rem 1rem;
    background: #ece8e3;
    text-align: center;
    border-top: 1px solid var(--border-card);
}
.footer__top {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer__logo-link { cursor: pointer; }
.footer__logo {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    transition: opacity 500ms;
}
.footer__logo:hover { opacity: 1; }
.footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.footer__socials { display: flex; justify-content: center; gap: 1rem; }
.footer__socials a { color: var(--text-dim); transition: color 0.3s ease; }
.footer__socials a:hover { color: var(--emerald); }
.footer__socials .icon { width: 1.25rem; height: 1.25rem; }
.footer__link {
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.footer__link:hover { color: var(--emerald); }
.footer__credit a { font-size: 10px; }
.footer__credit .credit-author {
    color: var(--emerald);
}
.footer__copy {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(15, 23, 42, 0.30);
    font-style: italic;
}

@media (min-width: 640px) {
    .footer { padding: 4rem 1.5rem; }
    .footer__top { gap: 1.5rem; }
    .footer__logo { width: 5rem; height: 5rem; }
    .footer__socials { gap: 1.5rem; }
    .footer__link { font-size: 10px; }
    .footer__copy { letter-spacing: 0.5em; }
}
@media (min-width: 1024px) {
    .footer { padding: 5rem 1.5rem; }
    .footer__credit a { font-size: 15px; }
}

/* ===========================================================
   CARDS DINÁMICAS (insertadas por index.js)
   Reemplazan a las clases Tailwind que el JS original escribía.
   =========================================================== */

/* ---------- Docente card ---------- */
.docente-card {
    padding: 1.5rem;
    border-radius: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.docente-card:hover {
    border-color: var(--blue-electric);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.docente-card__photo {
    width: 8rem;
    height: 8rem;
    border-radius: 1rem;
    border: 2px solid rgba(5, 150, 105, 0.20);
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 500ms;
}
.docente-card:hover .docente-card__photo { transform: scale(1.05); }
.docente-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--border-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.docente-card__name {
    font-weight: 700;
    font-size: 1.125rem;
    font-family: 'Instrument Serif', serif;
    color: var(--text-primary);
}
.docente-card__role {
    color: var(--emerald);
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}
.docente-card__quote {
    color: var(--text-muted);
    font-size: 9px;
    margin-top: 1rem;
    font-style: italic;
    line-height: 1.625;
    padding: 0 0.5rem;
}
.docente-card__cta {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.75rem 0;
    background: var(--border-subtle);
    border: 1px solid rgba(5, 150, 105, 0.10);
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0.75rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.docente-card__cta:hover {
    background: #fff;
    color: var(--blue-electric);
    border-color: var(--blue-electric);
}

@media (min-width: 640px) {
    .docente-card__photo { width: 9rem; height: 9rem; }
    .docente-card__name { font-size: 1.25rem; }
    .docente-card__role { font-size: 8px; }
    .docente-card__quote { font-size: 10px; margin-top: 1.5rem; padding: 0 1rem; }
    .docente-card__cta { padding: 1rem 0; border-radius: 1rem; }
}
@media (min-width: 1024px) {
    .docente-card__photo { width: 10rem; height: 10rem; }
}

/* ---------- Aval card ---------- */
.aval-card {
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(5, 150, 105, 0.10);
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.aval-card:hover {
    border-color: var(--blue-electric);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.aval-card__logo {
    width: 66.6667%;
    height: 66.6667%;
    object-fit: contain;
    margin-bottom: 0.75rem;
    opacity: 0.85;
    transition: transform 500ms;
}
.aval-card:hover .aval-card__logo { transform: scale(1.05); }
.aval-card__name {
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    text-align: center;
}

@media (min-width: 640px) {
    .aval-card { border-radius: 2rem; padding: 1.5rem; }
    .aval-card__logo { margin-bottom: 1rem; }
    .aval-card__name { font-size: 8px; }
}
@media (min-width: 1024px) {
    .aval-card { border-radius: 2.5rem; padding: 2rem; }
}

/* ---------- Formación card ---------- */
.formacion-card {
    padding: 1.5rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.formacion-card:hover {
    border-color: var(--blue-electric);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.formacion-card__media {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.formacion-card__media img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid var(--border-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 700ms;
}
.formacion-card:hover .formacion-card__media img { transform: scale(1); }
.formacion-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.025em;
}
.formacion-card__desc {
    color: var(--text-muted);
    font-size: 9px;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.625;
    font-style: italic;
}
.formacion-card__cta {
    width: 100%;
    padding: 0.75rem 0;
    background: var(--border-subtle);
    border: 1px solid var(--border-card);
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0.75rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.formacion-card__cta:hover {
    background: #fff;
    color: var(--blue-electric);
    border-color: var(--blue-electric);
}

@media (min-width: 640px) {
    .formacion-card { padding: 2rem; }
    .formacion-card__media img { width: 9rem; height: 9rem; }
    .formacion-card__desc { font-size: 10px; margin-bottom: 2rem; }
    .formacion-card__cta { padding: 1rem 0; border-radius: 1rem; }
}
@media (min-width: 1024px) {
    .formacion-card { border-radius: 3rem; }
    .formacion-card__media img { width: 10rem; height: 10rem; }
}

/* ===========================================================
   SCROLLBAR + UTILIDADES GLOBALES
   =========================================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f1f0ec; }
::-webkit-scrollbar-thumb {
    background: var(--emerald-soft);
    border-radius: 10px;
}

/* Mailto links */
a[href*="mailto"] { color: var(--blue-electric); }
a[href*="mailto"]:hover { color: #005a8c; }

/* ===========================================================
   RESPONSIVE GLOBAL — Padding sections
   =========================================================== */
@media (max-width: 768px) {
    #docentes-grid .glass,
    .docente-card { padding: 1rem; }
    #formaciones-grid .glass,
    .formacion-card { padding: 1rem; }
    #formaciones-grid img { margin: -1rem -1rem 1rem -1rem; width: calc(100% + 2rem); }
    #avales-grid .glass,
    .aval-card { padding: 0.75rem; }
    #in-house .glass__content { padding: 1.5rem; }
    #recursos .glass { padding: 1.25rem; }
}

@media (max-width: 480px) {
    .glass { border-radius: var(--radius-sm); }
    #img-hero { border-radius: 1.25rem; }
}
