/* =========================================================
   ACEE Chile - Vanilla CSS (clon de la versión Tailwind)
   ========================================================= */

:root {
  --white: #ffffff;
  --background: #f2eee2;
  --foreground: #252d1e;
  --primary: #059697;
  --primary-foreground: #f2eee2;
  --secondary: #cad5cb;
  --secondary-foreground: #252d1e;
  --muted: #eae8e5;
  --muted-foreground: #323232;
  --accent: #cad5cb;
  --accent-foreground: #252d1e;
  --card: #ffffff;
  --card-foreground: #252d1e;
  --border: #c8c2b4;
  --linen: #e2efef;
  --light-grey: #efefef;
  --light-sky: #c9eae6;
  --light-linen: #f2faf8;
  --cream: #eae8e5;
  --sage: #cad5cb;
  --stone: #c8c2b4;
  --charcoal: #323232;

  /* Form / UI aliases */
  --dark: #252d1e;
  --text: #252d1e;
  --text-3: #6b7280;
  --text-4: #323232;
  --yellow: #059697;
  --yellow-light: #e2efef;
  --green: #0f7a34;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-label: "Inter", system-ui, sans-serif;

  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-pill: 9999px;
  --shadow-soft: 0 8px 30px -12px rgba(37, 45, 30, 0.12);
}

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

body.menu-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--foreground);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Layout helpers ---------- */
.container-acee {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  padding: 16px;
}

.section {
  padding-block: 96px;
}

.section--card {
  background: var(--card);
}
.section--sky {
  background: var(--light-sky);
}
.section--linen {
  background: var(--light-linen);
}

.section-head {
  max-width: 768px;
  margin: 0 auto 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-head--small {
  margin-bottom: 40px;
  gap: 12px;
}

.section-head h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.section-head .h2-small,
.h2-small {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}

.section-head p.muted-lg {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  display: inline-block;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.muted {
  color: var(--muted-foreground);
}

.muted-lg {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.accent {
  color: var(--primary);
  font-style: normal;
}

/* ---------- Botones ---------- */
.btn-primary,
.btn-outline {
  padding: 14px 48px;
  width: fit-content;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 200ms ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: #2d4d42;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-chev {
  width: 12px;
  height: 12px;
}

/* ---------- HEADER ---------- */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}

.header-sticky.scrolled {
  border-bottom-color: var(--border);
  .brand-logo{
    width: 150px;
  }
  .header-inner {
    height: 70px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 85px;
}
.navbar{
  display: flex;
  gap: 26px;
  align-items: center ;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 175px;
  height: auto;
}


.nav-link {
  font-family: var(--font-label);
  font-size: 16px;
  color: var(--foreground);
  transition: color 200ms ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-trigger {
  font-family: var(--font-label);
  font-size: 15px;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  display: none;
  z-index: 60;
}

.nav-dropdown.is-open .dropdown-panel,
.nav-dropdown:hover .dropdown-panel {
  display: block;
}

.dropdown-card {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  min-width: 350px;
  padding: 8px;
}

.dropdown-panel--narrow .dropdown-card {
  min-width: 390px;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  transition: background-color 200ms ease;
  font-family: var(--font-label);
}

.dropdown-item:hover {
  background: var(--muted);
}

/* Dropdown de 2 niveles: categorías + submenú lateral */
.dropdown-card--l1 {
  min-width: 300px;
}

.dropdown-group {
  position: relative;
}

.dropdown-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-label);
  transition: background-color 200ms ease;
}

.dropdown-cat:hover,
.dropdown-group.is-open > .dropdown-cat {
  background: var(--muted);
}

.icon-chev-sub {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.dropdown-submenu {
  position: absolute;
  top: -8px;
  left: 100%;
  padding-left: 8px;
  display: none;
  z-index: 61;
}

.dropdown-group:hover > .dropdown-submenu,
.dropdown-group.is-open > .dropdown-submenu {
  display: block;
}

.dropdown-submenu .dropdown-card {
  min-width: 340px;
  max-height: 70vh;
  overflow-y: auto;
}

.btn-consultas {
  display: none;
}

.nav-burger {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 100;
  position: relative;
}

.nav-burger span {
  position: absolute;
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.35s ease;
  &:nth-last-of-type(1){
    top: 10px;
    left: 8px;
  }
  &:nth-last-of-type(2){
    top: 18px;
    left: 8px;
  }
  &:nth-last-of-type(3){
    top: 26px;
    left: 8px;
  }
}

.nav-burger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(-5px, -7px)
}

.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-burger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(-4px, 6px);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-top: 80px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 90;
  overflow-y: auto;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 24px;
}

.nav-link-mobile {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.nav-link-mobile:last-of-type {
  border-bottom: none;
}

.btn-mobile-cta {
  align-self: flex-start;
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 85px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 96px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 36rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-image {
  position: relative;
}

/* Marco decorativo de imagen (rotación + sombra de color) */
.image-frame {
  position: relative;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: var(--radius-lg);
  background: rgba(202, 213, 203, 0.4); /* sage/40 */
  z-index: 0;
}

.image-frame--secondary::before {
  background: rgba(202, 213, 203, 0.5);
}

.image-frame--rotL::before {
  transform: rotate(-2deg);
}
.image-frame--rotR::before {
  transform: rotate(1deg);
}

.image-frame--small::before {
  inset: -12px;
}

.image-frame img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.hero-image .image-frame img {
  height: 560px;
  object-fit: cover;
}

/* ---------- CERTIFICACIONES ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  transition: all 250ms ease;
  font-family: var(--font-label);
  color: var(--primary);
  font-size: 14px;
}

.cert-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* ---------- Two col genérico ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

.col-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.col-text h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.col-image {
  position: relative;
}

#quienes-somos .image-frame img {
  height: 480px;
  object-fit: cover;
}

/* ---------- MENSAJE RECTORA ---------- */
.two-col--rectora {
  grid-template-columns: 1fr;
  gap: 56px;
}

.col-rectora-img {
  max-width: 24rem;
  margin-inline: auto;
  width: 100%;
}

.col-rectora-img .image-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.rectora-sign .sign-name {
  font-weight: 500;
  color: var(--foreground);
}

.rectora-sign .sign-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- CURSOS ---------- */
.cursos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 16px 0 64px 0
}

.course-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid transparent;
  transition: all 250ms ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.course-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.course-card h3 {
  font-size: 1.5rem;
}

.course-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}

.course-cta {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 200ms ease;
}

.course-card:hover .course-cta {
  gap: 12px;
}

/* ---------- GALERÍA ---------- */
.section--galeria {
  padding-block: 64px;
}

.galeria-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Mapas / Ubicaciones ---------- */
.section--mapas {
  padding-block: 64px;
}

.mapas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

.mapa-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mapa-title {
  margin: 0;
}

.mapa-dir {
  margin: 0;
}

.mapa-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.mapa-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .mapa-embed {
    aspect-ratio: 21 / 9;
  }
}


/* ---------- Interior ---------- */
.cont-interior {
  p{
    font-size: clamp(1rem, 0.752vw + 0.639rem, 1.25rem);
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 24px;
    a{
      font-weight: 500;
      color: var(--primary);
      &:hover{
        color: var(--secondary-foreground);
      }
    }
  }
  ul, ol{
    font-size: clamp(1rem, 0.752vw + 0.639rem, 1.25rem);
    margin-bottom: 2em;
  }
  ul{
    list-style: disc;
    padding-left: 20px;
  }
  ol{
    list-style: decimal;
    padding-left: 20px;
  }
  .checked-list{
    list-style: none;
    padding-left: 0;
  }
  h2{
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1em;
  }
  .section--cursos{
    width: calc(100% - 32px);
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    clear: both;
    overflow: hidden;
    .img-cursos{
      max-width: 30%;
      float: right;
      margin: 0 0 0 32px;
      border-radius: 16px;
    }
    .cont-imgs{
      display: flex;
      flex-direction: column;
      gap: 16px;
      width: 100%;
      max-width: 300px;
      margin: 0 0 0 32px;
      img{
        width: 100%;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
      }
    }
    @media screen and (max-width: 768px){
      flex-direction: column;
      .img-cursos{
        max-width: 100%;
        float: none;
        margin: 0 0 16px;
      }
      .cont-imgs{
        flex-direction: row;
        gap: 8px;
        max-width: 100%;
        margin: 0;
        img{
          width: auto;
          max-width: calc(33% - 3px);
        }
      }
    }
  }
  .section--galeria{
    background-color: var(--light-linen);
  }
}

/* ---------- Quiénes Somos ---------- */
.section--hero-interior {
  padding-block: 66px 64px;
}

.hero-interior {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-interior .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.519vw - 1.609rem, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}

.breadcrumb a {
  color: var(--muted-foreground);
  transition: color 200ms ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb [aria-current="page"] {
  color: var(--foreground);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.mv-card {
  align-items: flex-start;
}

.mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: var(--light-sky);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mv-icon svg {
  width: 24px;
  height: 24px;
}

.mv-icon--sm {
  width: 48px;
  height: 48px;
}

.mv-icon--sm svg {
  width: 20px;
  height: 20px;
}
ul.checked-list {
  list-style: none;
  li{
    display: flex;
    gap: 4px;
    padding-bottom: 8px;
    &::before{
      color: var(--primary);
      content: "check";
      font-family: 'Material Symbols Outlined';
      font-weight: normal;
      font-style: normal;
      font-size: 1.4rem;
      line-height: 1;
      letter-spacing: normal;
      text-transform: none;
      display: inline-block;
      white-space: nowrap;
      word-wrap: normal;
      direction: ltr;
      -webkit-font-feature-settings: 'liga';
      -webkit-font-smoothing: antialiased;
    }
  }
}
.perfil-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.perfil-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.perfil-list .dot {
  margin-top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: rgba(5, 150, 151, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.video-yt{
  width: 1000px;
  height: auto;
  aspect-ratio: 16/9;
  max-width: calc(100% - 32px);
  border-radius: var(--radius-lg);
  margin: 0 auto;
  display: block;
  float: none ;
}
.perfil-list .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--primary);
}

.team-grid {
  align-items: stretch;
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-card-head h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.team-role {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 4px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding-top: 8px;
}

/* Form Styles */
  #form-contacto {
    position: relative;
  }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .form-group.full {
    grid-column: 1 / -1;
  }

  .form-group label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
  }

  .form-hint {
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-3);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    background: #f9f9f9;
    border: 1.5px solid #e0e0e0;
    border-radius: 3px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
    color: var(--text-4);
    width: 100%;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--primary);
    background: var(--yellow-light);
    box-shadow: 0 0 0 3px rgba(5, 150, 151, 0.25);
  }

  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }

  .form-submit {
    margin-top: 8px;
  }

  .form-submit button {
    width: 100%;
    margin: 0 auto;
    max-width: 500px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary);
    border: 1px solid transparent;
    color: var(--white);
    transition: background .2s, opacity .2s;
    &:hover {
      background: transparent;
      border-color: var(--primary);
      color: var(--primary);
    }
    &:disabled {
      opacity: .6;
      cursor: not-allowed;
    }
  }

  /* Honeypot — invisible para humanos, visible en el DOM para bots */
  .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-size: 0;
  }

  /* Feedback de envío */
  .form-feedback {
    display: none;
    font-size: .9rem;
    border-radius: 6px;
    padding: 12px 16px;
    line-height: 1.5;
  }
  .form-feedback--error {
    display: block;
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #ef4444;
  }
  .form-feedback--ok {
    display: block;
    background: rgba(43, 215, 122, .1);
    border: 1px solid rgba(43, 215, 122, .35);
    color: var(--green);
  }

  /* Estado de éxito tras envío */
  .form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 32px;
    text-align: center;
  }
  .form-success .material-symbols-outlined {
    font-size: 56px;
    color: var(--green);
  }
  .form-success p {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
  }
@media screen and (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary);
  color: var(--background);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer h3 {
  color: var(--background);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col p {
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(242, 238, 226, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.6;
}

.footer-list--links {
  gap: 8px;
}

.footer-list--links li {
  display: block;
}

.footer-list--links a {
  transition: color 200ms ease;
}

.footer-list--links a:hover {
  color: var(--secondary);
}

.icon-secondary {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(242, 238, 226, 0.15);
  padding-top: 24px;
  font-size: 0.75rem;
  color: rgba(242, 238, 226, 0.5);
  text-align: center;
}

/* ---------- Animaciones ---------- */
.fade-in {
  animation: fadeIn 800ms ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1250px) {
  body.menu-open{
    &:before{
      content: "";
      position: fixed;
      inset: 0;
      background: rgba(37, 45, 30, 0.5);
      z-index: 10;
      width: 100%;
      height: 100vh;
    }
    main, footer{
      filter: blur(3px);
    }
  }
  .brand-logo {
    width: 120px;
  }
  .nav-burger{
    display: block;
  }
  .header-sticky .header-inner{
    height: 70px;
  }
  .header-sticky.scrolled .brand-logo{
    width: 120px;
  }
  .navbar{
    background: var(--white);
    top: 71px;
    left: 0;
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 80;
    gap: 0;
    padding: 8px 0;
    max-height: calc(100vh - 71px);
    max-height: calc(100dvh - 71px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
    .nav-link, .nav-dropdown{
      width: 100%;
    }
    .nav-link{
      padding: 8px 16px;
    }
    .dropdown-panel{
      position: relative;
      .dropdown-card{
        width: 100%;
      }
    }
    /* Segundo nivel como acordeón vertical en mobile */
    .dropdown-submenu{
      position: static;
      padding-left: 0;
    }
    .dropdown-submenu .dropdown-card{
      min-width: 0;
      max-height: none;
      border: none;
      box-shadow: none;
      padding: 0 0 0 12px;
    }
    .icon-chev-sub{
      transform: rotate(90deg);
    }
    .dropdown-group.is-open > .dropdown-cat .icon-chev-sub{
      transform: rotate(-90deg);
    }
  }
  .navbar.is-open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 0s;
    z-index: 3;
  }
  .nav-dropdown:hover .dropdown-panel{
    display: none;
  }
  .nav-dropdown.is-open .dropdown-panel{
    display: block;
  }
  .dropdown-group:hover > .dropdown-submenu{
    display: none;
  }
  .dropdown-group.is-open > .dropdown-submenu{
    display: block;
  }
  .btn-primary, .btn-outline{
    padding: 8px 32px;
  }
}
@media (min-width: 640px) {
  .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cursos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .btn-consultas {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .two-col--rectora {
    grid-template-columns: 1fr 1.4fr;
  }
  .mv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .col-image--first {
    order: 1;
  }
  .col-text--second {
    order: 2;
  }
  .col-rectora-img {
    margin-inline: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section-head h2 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cursos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-title {
    font-size: 4.5rem;
  }
}

/* ---------- Accesibilidad: skip link y foco visible ---------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-label);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--foreground);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}
