/*
Theme Name: Selectividad Contigo
Version: 1.0
Author: Selectividad Contigo
Description: Tema personalizado para Selectividad Contigo, basado en el diseño de Academia GH
Requires PHP: 7.4
*/

/* ========================================
   IMPORTAR FUENTES
======================================== */
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700&display=swap');

/* ========================================
   RESET Y ESTILOS BASE
======================================== */
html {
  scroll-behavior: smooth;
}

body,
.agh-root,
.agh-table,
.agh-table th,
.agh-table td,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', Arial, sans-serif !important;
}

body {
  background: #f8fafc;
  color: #181b1e;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

/* ========================================
   CONTENEDOR PRINCIPAL
======================================== */
.agh-root {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}

/* ========================================
   CABECERA PRINCIPAL
======================================== */
.sc-body {
  padding-top: 140px;
}

@media (max-width: 1024px) {
  .sc-body {
    padding-top: 126px;
  }
}

@media (max-width: 760px) {
  .sc-body {
    padding-top: 108px;
  }
}

.sc-site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(20, 83, 167, 0.08);
  backdrop-filter: blur(18px);
  z-index: 1200;
}

.sc-header-top {
  background: linear-gradient(90deg, rgba(22, 132, 214, 0.12) 0%, rgba(22, 132, 214, 0.08) 45%, rgba(255, 224, 0, 0.42) 100%);
  border-bottom: 1px solid rgba(20, 83, 167, 0.08);
}

.sc-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 0;
  flex-wrap: wrap;
  text-align: center;
}

.sc-header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #1684d6;
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sc-header-top-text {
  font-size: 1rem;
  color: #181b1e;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sc-header-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffe000;
  color: #181b1e;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 8px 22px rgba(255, 224, 0, 0.28);
}

.sc-header-top-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(22, 132, 214, 0.18);
}

.sc-header-main {
  background: rgba(255, 255, 255, 0.98);
}

.sc-header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.sc-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sc-logo img {
  width: 190px;
  max-width: 42vw;
  height: auto;
}

.sc-logo-text {
  font-size: 1.7rem;
  font-weight: 900;
  color: #1684d6;
  letter-spacing: 0.02em;
}

.sc-primary-nav {
  flex: 1 1 auto;
}

.sc-primary-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-primary-nav-list a {
  color: #23303e;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.18s;
}

.sc-primary-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #1684d6;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.sc-primary-nav-list a:hover,
.sc-primary-nav-list a:focus {
  color: #1684d6;
}

.sc-primary-nav-list a:hover::after,
.sc-primary-nav-list a:focus::after {
  transform: scaleX(1);
}

.sc-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sc-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #1684d6;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: 11px;
  text-decoration: none;
  letter-spacing: 0.015em;
  box-shadow: 0 8px 24px rgba(22, 132, 214, 0.2);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.sc-header-cta:hover {
  background: #1453a7;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(20, 83, 167, 0.25);
}

.sc-menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(22, 132, 214, 0.25);
  background: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: border 0.18s, background 0.18s;
}

.sc-menu-toggle:hover {
  border-color: #1684d6;
}

.sc-menu-toggle-line,
.sc-menu-toggle-line::before,
.sc-menu-toggle-line::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #1684d6;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sc-menu-toggle-line {
  position: relative;
}

.sc-menu-toggle-line::before,
.sc-menu-toggle-line::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sc-menu-toggle-line::before {
  top: -7px;
}

.sc-menu-toggle-line::after {
  top: 7px;
}

.sc-menu-toggle[aria-expanded="true"] .sc-menu-toggle-line {
  background: transparent;
}

.sc-menu-toggle[aria-expanded="true"] .sc-menu-toggle-line::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.sc-menu-toggle[aria-expanded="true"] .sc-menu-toggle-line::after {
  transform: translate(-50%, 0) rotate(-45deg);
}

@media (max-width: 1100px) {
  .sc-primary-nav-list {
    gap: 20px;
  }
}

@media (max-width: 960px) {
  .sc-primary-nav {
    display: none;
  }
  .sc-header-actions {
    gap: 12px;
  }
  .sc-menu-toggle {
    display: inline-flex;
  }
  .sc-header-cta {
    padding: 11px 22px;
    font-size: 0.94rem;
  }
  .sc-body {
    padding-top: 122px;
  }
}

@media (max-width: 720px) {
  .sc-header-top-inner {
    gap: 10px;
  }
  .sc-header-top-text {
    font-size: 0.95rem;
  }
  .sc-body {
    padding-top: 108px;
  }
  .sc-header-main-inner {
    gap: 18px;
  }
  .sc-header-cta {
    display: none;
  }
}

.sc-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 38, 60, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1190;
}

.sc-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sc-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 84vw);
  height: 100vh;
  background: #ffffff;
  box-shadow: -20px 0 45px rgba(20, 83, 167, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1205;
  display: flex;
  flex-direction: column;
}

.sc-mobile-menu.is-open {
  transform: translateX(0);
}

.sc-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 24px 28px 24px;
  gap: 24px;
}

.sc-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: #1684d6;
  cursor: pointer;
  padding: 6px;
}

.sc-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-mobile-nav-list a {
  display: block;
  font-weight: 700;
  color: #23303e;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(22, 132, 214, 0.1);
}

.sc-mobile-nav-list a:hover,
.sc-mobile-nav-list a:focus {
  color: #1684d6;
}

.sc-mobile-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-mobile-help {
  font-size: 0.95rem;
  color: #353a3e;
  text-align: center;
}

.sc-mobile-help a {
  color: #1684d6;
  text-decoration: none;
  font-weight: 700;
}

@media (min-width: 961px) {
  .sc-mobile-overlay,
  .sc-mobile-menu {
    display: none;
  }
}

html.sc-lock-scroll,
html.sc-lock-scroll body {
  overflow: hidden;
}

/* ========================================
   HEADER IMAGE BLOCK
======================================== */
.agh-header-img-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 34px 0 0 0;
}

.agh-header-img {
  width: 600px;
  max-width: 96vw;
  height: 170px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 3px 20px rgba(22, 132, 214, 0.09);
}

@media (max-width: 700px) {
  .agh-header-img {
    height: 95px;
    border-radius: 12px;
  }
}

/* ========================================
   TÍTULOS Y SUBTÍTULOS
======================================== */
.agh-title-block {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 0;
}

.agh-title {
  font-size: 5.3rem;
  font-weight: 900;
  color: #222;
  letter-spacing: 0.012em;
  line-height: 1.09;
  margin-bottom: 7px;
  margin-top: 0;
}

.agh-title-sub {
  font-size: 1.21rem;
  color: #555;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

@media (max-width: 800px) {
  .agh-title {
    font-size: 2.5em;
  }
  .agh-title-sub {
    font-size: 0.91em;
  }
}

/* ========================================
   CTA (CALL TO ACTION)
======================================== */
.agh-cta {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 18px 0;
  padding: 33px 0 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 1.23rem;
  opacity: 0;
  animation: agh-cta-fadein 1.4s cubic-bezier(0.44, 0, 0.33, 1.02) 0.3s forwards;
  z-index: 1;
  border: none;
  background: none;
  overflow: hidden;
}

.agh-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(to right, rgba(255, 224, 0, 0) 0%, #ffe000 20%, #ffe000 80%, rgba(255, 224, 0, 0) 100%);
  transition: background 0.3s;
}

@media (max-width: 800px) {
  .agh-cta::before {
    background: #ffe000 !important;
  }
}

.agh-cta-title {
  text-decoration: underline;
  font-size: 2.03em;
  font-weight: 900;
  color: #181b1e;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.1;
  margin-bottom: 0px;
  padding-bottom: 0px;
  display: block;
}

.agh-cta-desc {
  font-size: 1.09em;
  font-weight: 500;
  color: #181b1e;
  margin-top: 3px;
  line-height: 1.30;
  margin-bottom: 0;
  padding: 0;
}

@keyframes agh-cta-fadein {
  to {
    opacity: 1;
  }
}

.agh-cta-fade-static {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 15px auto;
  background: #ffe000;
  color: #181b1e;
  font-size: 1.08em;
  font-weight: 500;
  text-align: center;
  padding: 16px 9px 12px 9px;
  box-sizing: border-box;
  border-radius: 0;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

@media (max-width: 800px) {
  .agh-cta-fade-static {
    max-width: 98vw;
    font-size: 0.98em;
    padding: 13px 2vw 10px 2vw;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ========================================
   BOTONES
======================================== */
.agh-mat-btn {
  display: block;
  margin: 28px auto 18px auto;
  padding: 19px 42px 19px 42px;
  background: #1684d6;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.35em;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.16s;
  box-shadow: 0 1.5px 8px 0 rgba(16, 74, 189, 0.07);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  width: auto;
  min-width: 240px;
  max-width: 370px;
}

.agh-mat-btn:hover {
  background: #1453a7;
}

.agh-intensive-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  background: #1684d6;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
}

.agh-intensive-btn:hover {
  background: #1453a7;
}

/* ========================================
   DEGREE CARD BOX (Seleccionar grado)
======================================== */
.agh-degree-cardbox {
  background: #fff;
  box-shadow: 0 3px 24px 0 rgba(20, 83, 167, 0.08);
  border-radius: 19px;
  padding: 35px 18px 22px 18px;
  max-width: 740px;
  margin: 0 auto 34px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agh-degree-cardbox .agh-degree-title {
  font-size: 2.08rem;
  font-weight: 900;
  color: #1453a7;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.agh-degree-cardbox .agh-degree-sub {
  font-size: 1.11rem;
  color: #555;
  font-weight: 400;
  margin-bottom: 25px;
}

.agh-degree-cardbox .agh-degree-buttons {
  display: flex;
  justify-content: center;
  gap: -4px;
  margin: 0 0 0 0;
  flex-wrap: wrap;
  flex-direction: column;
}

.agh-degree-cardbox .agh-degree-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #1684d6;
  color: #fff !important;
  font-size: 1.22em;
  font-weight: 800;
  border-radius: 13px;
  border: none;
  box-shadow: 0 2px 14px 0 rgba(20, 83, 167, 0.08);
  padding: 16px 42px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.16s, transform 0.12s;
  margin-bottom: 0;
  justify-content: center;
  width: 100%;
}

.agh-degree-cardbox .agh-degree-btn.tec {
  background: #1453a7;
}

.agh-degree-cardbox .agh-degree-btn.ant {
  background: #1476a7;
}

.agh-degree-cardbox .agh-degree-btn:hover {
  background: #1265b1;
  transform: scale(1.03);
}

.agh-degree-cardbox .agh-degree-btn.tec:hover {
  background: #17407b;
}

.agh-degree-cardbox .agh-degree-btn.ant:hover {
  background: #148fa7;
}

.agh-degree-cardbox .agh-degree-btn img {
  width: 36px;
  height: 36px;
  vertical-align: middle;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .agh-degree-cardbox {
    padding: 18px 3vw 16px 3vw;
  }
  .agh-degree-title {
    font-size: 1.18rem;
  }
  .agh-degree-cardbox .agh-degree-buttons {
    grid-template-columns: 1fr;
    gap: -2px;
  }
}

/* ========================================
   TRUSTINDEX (RESEÑAS) - FULL WIDTH
======================================== */
.agh-trustindex-bg {
  width: 100vw;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
  background: #eaf3ff;
  padding: 56px 0 44px 0;
  margin: 50px 0 32px 0;
}

.agh-trustindex-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
}

.agh-trustindex-title {
  color: #181b1e;
  text-align: center;
  font-size: 2.13rem;
  font-weight: 900;
  letter-spacing: 0.012em;
  margin-bottom: 0;
}

.agh-trustindex-sub {
  text-align: center;
  color: #555;
  font-size: 1.09rem;
  font-weight: 400;
  margin-top: 22px !important;
  margin-bottom: 29px;
  letter-spacing: 0.01em;
}

.agh-trustindex-row {
  display: flex;
  justify-content: center;
  gap: 29px;
  align-items: stretch;
  flex-wrap: wrap;
}

.agh-trustindex-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 13px 0 rgba(20, 83, 167, 0.07);
  padding: 25px 26px 22px 26px;
  min-width: 280px;
  max-width: 370px;
  flex: 1 1 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.agh-trustindex-card .agh-g-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-right: 11px;
}

.agh-trustindex-rating {
  font-size: 2.2em;
  color: #ffc400;
  font-weight: 900;
  letter-spacing: 0.07em;
  margin: 7px 0 4px 0;
}

.agh-trustindex-author {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.12em;
}

.agh-trustindex-date {
  color: #999;
  font-size: 0.97em;
  margin-left: 8px;
  font-weight: 500;
}

.agh-trustindex-verif {
  color: #429c4b;
  background: #eafae4;
  font-size: 1.02em;
  font-weight: 700;
  border-radius: 6px;
  padding: 5px 11px;
  display: inline-block;
  margin-top: 16px;
}

.agh-trustindex-body {
  font-size: 1.09em;
  color: #181b1e;
  margin: 10px 0 0 0;
}

@media (max-width: 1200px) {
  .agh-trustindex-row {
    gap: 16px;
  }
}

@media (max-width: 960px) {
  .agh-trustindex-row {
    flex-direction: column;
    gap: 19px;
    align-items: center;
  }
  .agh-trustindex-card {
    max-width: 470px;
    width: 98vw;
  }
}

/* ========================================
   WELCOME ICONS (Por qué elegirnos)
======================================== */
.agh-whychooseus-bg {
  width: 100vw;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
  background: #eaf3ff;
  padding: 56px 0 44px 0;
  margin: 50px 0 32px 0;
}

.agh-whychooseus-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
}

.agh-whychooseus-title {
  color: #181b1e;
  text-align: center;
  font-size: 2.13rem;
  font-weight: 900;
  letter-spacing: 0.012em;
  margin-bottom: 0;
}

.agh-whychooseus-section-sub {
  text-align: center;
  color: #555;
  font-size: 1.11rem;
  font-weight: 400;
  margin-top: 22px !important;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.agh-whychooseus-row {
  display: flex;
  justify-content: center;
  gap: 29px;
  align-items: stretch;
  flex-wrap: wrap;
}

.agh-whychooseus-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 13px 0 rgba(20, 83, 167, 0.07);
  padding: 18px 18px 14px 18px;
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

.agh-whychooseus-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  margin-top: 0;
}

.agh-whychooseus-card h3 {
  font-size: 1.14rem;
  margin-bottom: 4px;
  color: #1684d6;
  font-weight: 800;
  margin-top: 0;
}

.agh-whychooseus-card p {
  font-size: 0.97rem;
  color: #353a3e;
  line-height: 1.4;
  margin-bottom: 0;
  margin-top: 0;
}

@media (max-width: 1000px) {
  .agh-whychooseus-row {
    gap: 1.2rem;
  }
}

@media (max-width: 900px) {
  .agh-whychooseus-row {
    flex-wrap: wrap;
    gap: 1.1rem;
  }
  .agh-whychooseus-card {
    max-width: 46vw;
  }
}

@media (max-width: 700px) {
  .agh-whychooseus-row {
    flex-direction: column;
    gap: 1.1rem;
  }
  .agh-whychooseus-card {
    max-width: 98vw;
  }
  .agh-whychooseus-card img {
    width: 80px;
    height: 80px;
  }
}

/* ========================================
   INSTALACIONES (CAROUSEL)
======================================== */
.agh-installaciones-bg {
  background: #eaf3ff;
  width: 100vw;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
  padding: 56px 0 44px 0;
  margin: 50px 0 32px 0;
  display: flex;
  justify-content: center;
}

.agh-installaciones-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.agh-installaciones-title {
  color: #181b1e;
  text-align: center;
  font-size: 2.13rem;
  font-weight: 900;
  letter-spacing: 0.012em;
  margin-bottom: 0;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
}

.agh-installaciones-sub {
  text-align: center;
  color: #555;
  font-size: 1.09rem;
  font-weight: 400;
  margin-top: 22px !important;
  margin-bottom: 29px;
  letter-spacing: 0.01em;
}

.agh-installaciones-slides {
  display: flex;
  justify-content: center;
  width: 100%;
}

.agh-installations-carousel {
  width: 520px;
  height: 520px;
  max-width: 90vw;
  max-height: 90vw;
  aspect-ratio: 1/1;
  border-radius: 23px;
  overflow: hidden;
  box-shadow: 0 2.5px 18px 0 rgba(22, 132, 214, 0.07);
  background: #eaf3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.agh-installations-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 1s;
  z-index: 0;
}

.agh-installations-carousel img.active {
  opacity: 1;
  z-index: 1;
  position: relative;
}

@media (max-width: 700px) {
  .agh-installations-carousel {
    width: 90vw;
    height: 90vw;
    max-width: 98vw;
    max-height: 98vw;
    border-radius: 12px;
  }
}

/* ========================================
   BENEFICIOS / MODALIDADES GRID
======================================== */
.beneficios-cuadricula {
  background: #fff;
  border-radius: 25px;
  max-width: 1220px;
  margin: 48px auto 36px auto;
  padding: 40px 18px 36px 18px;
  box-shadow: 0 2.5px 18px 0 rgba(22, 132, 214, 0.06);
}

.beneficios-cuadricula h2 {
  color: #1453a7;
  text-align: center;
  font-size: 2.11rem;
  font-weight: 900;
  letter-spacing: 0.012em;
  margin-bottom: 28px;
}

.beneficio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.beneficio-cuadro {
  background: #f7fbfe;
  border-radius: 16px;
  padding: 30px 20px 22px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.23s, box-shadow 0.21s;
  border: 1.2px solid #e0ebff;
}

.beneficio-cuadro:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 8px 38px 0 rgba(22, 132, 214, 0.11);
}

.beneficio-cuadro img {
  width: 61px;
  height: auto;
  margin-bottom: 1rem;
}

.beneficio-cuadro h3 {
  font-size: 1.13rem;
  margin-bottom: 0.6rem;
  color: #1684d6;
  font-weight: 800;
}

.beneficio-cuadro p {
  font-size: 0.98rem;
  color: #353a3e;
  line-height: 1.5;
}

.agh-modality-options {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 8px 0;
}

.agh-modality-card {
  background: #f7fbfe;
  border-radius: 16px;
  padding: 30px 20px 22px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.23s, box-shadow 0.21s;
  border: 1.2px solid #e0ebff;
  min-width: 210px;
  max-width: 340px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agh-modality-card img {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.agh-modality-card h3 {
  font-size: 1.13rem;
  margin-bottom: 0.6rem;
  color: #1684d6;
  font-weight: 800;
}

.agh-modality-card p {
  font-size: 0.98rem;
  color: #353a3e;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .beneficio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .beneficios-cuadricula {
    padding: 18px 5px 20px 5px;
  }
  .agh-modality-options {
    gap: 1rem;
  }
}

@media (max-width: 700px) {
  .beneficio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .beneficio-cuadro {
    padding: 15px 6px;
  }
  .agh-modality-options {
    flex-direction: column;
    gap: 1rem;
  }
  .agh-modality-card {
    max-width: 98vw;
  }
}

/* ========================================
   CAROUSELS (PEQUEÑOS)
======================================== */
.agh-carousel-block {
  width: 100%;
  max-width: 650px;
  height: 220px;
  margin: 14px auto 36px auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 0;
  background: #eaf3ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agh-carousel-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.7s;
  z-index: 1;
}

.agh-carousel-img.active {
  opacity: 0.54;
  z-index: 2;
}

@media (max-width: 800px) {
  .agh-carousel-block {
    height: 120px;
  }
  .agh-carousel-img,
  .agh-carousel-block {
    height: 120px;
  }
}

/* ========================================
   ACCORDIONS
======================================== */
.agh-accordion-btn {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: #123267;
  color: #fff;
  font-size: 2em;
  font-weight: 700;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: none;
  margin-bottom: 0px !important;
  padding: 18px 0 18px 13vw;
  letter-spacing: 0.01em;
  box-shadow: none;
  outline: none;
  transition: background 0.18s;
  text-align: left;
  gap: 17px;
  position: relative;
  justify-content: flex-start;
}

.agh-accordion-btn[aria-expanded="true"] {
  background: #17407b;
}

.agh-accordion-btn .agh-arrow {
  font-size: 1.22em;
  margin-right: 22px;
  margin-left: 0;
  transition: transform 0.18s;
  flex-shrink: 0;
}

.agh-accordion-btn[aria-expanded="true"] .agh-arrow {
  transform: rotate(-90deg);
}

.agh-accordion-btn.agh-blue {
  background: #1453a7;
}

.agh-accordion-btn.agh-lightblue {
  background: #1684d6;
}

.agh-guide {
  font-size: 0.60em;
  font-weight: 700;
  opacity: 0.40;
  margin-right: 9px;
  letter-spacing: 0.01em;
  color: #ffe000;
  min-width: 39px;
  text-align: right;
  display: inline-block;
  align-self: flex-end;
  position: relative;
  top: 1.5px;
  line-height: 1;
}

.agh-accordion-panel {
  background: #fafcfe;
  border-radius: 0 0 10px 10px;
  margin-bottom: 0px !important;
  padding: 24px 16px 22px 16px;
  display: none;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 36px 0 rgba(0, 0, 0, 0.06);
}

.agh-accordion-panel.open {
  display: block;
}

@media (max-width: 800px) {
  .agh-accordion-btn {
    font-size: 1.05em;
    padding: 14px 0 14px 7vw;
  }
  .agh-accordion-panel {
    padding: 13px 5px 10px 5px;
    max-width: 98vw;
  }
}

/* ========================================
   TABLAS (HORARIOS / PRECIOS)
======================================== */
.agh-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #0282e6 #eaeaea;
  margin-top: 0;
  margin-bottom: 8px;
  padding-bottom: 6px;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.agh-table-wrap::-webkit-scrollbar {
  height: 12px;
  background: #f1f1f1;
}

.agh-table-wrap::-webkit-scrollbar-thumb {
  background: #0282e6;
  border-radius: 6px;
}

.agh-table-wrap {
  overflow-x: scroll !important;
}

.agh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.09em;
  margin-bottom: 0;
  min-width: 760px;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

.agh-table th,
.agh-table td {
  padding: 15px 10px;
  text-align: center;
  border: 1px solid #eee;
  font-weight: 400;
  vertical-align: middle;
  font-size: 1.13em;
  background: #fff;
  color: #181b1e;
}

.agh-table th {
  font-weight: 900;
  font-size: 1.17em;
  background: #ededed;
}

.agh-table .agh-course-row td {
  font-weight: 900;
  font-size: 1.10em;
  background: #f7f7f7 !important;
  color: #181b1e !important;
}

.agh-table .agh-space-row td {
  border: none !important;
  background: transparent !important;
  height: 16px !important;
  padding: 0 !important;
}

.agh-table td span {
  display: block;
  font-size: 0.97em;
  margin-top: 2px;
  font-weight: 400;
  color: #181b1e;
}

.agh-scroll-hint {
  display: none;
}

@media (max-width: 800px) {
  .agh-table {
    font-size: 1em;
    min-width: 560px;
  }
  .agh-scroll-hint {
    display: block;
    margin: 11px auto 10px auto;
    background: #fff9d1;
    color: #555;
    font-weight: 600;
    font-size: 0.93em;
    border-radius: 9px;
    padding: 6px 14px 5px 14px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 1px 6px 0 rgba(16, 74, 189, 0.03);
    letter-spacing: 0.01em;
    z-index: 3;
    position: relative;
    border: 1.2px solid #ffe070;
  }
}

/* ========================================
   PROFESORES / INTENSIVOS
======================================== */
.agh-prof-title {
  display: block;
  color: #353a3e;
  font-weight: 900;
  font-size: 1.08em;
  margin-top: 23px;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}

.agh-accordion-panel ul {
  margin-top: 0;
  margin-bottom: 14px;
}

.agh-accordion-panel ul:last-child {
  margin-bottom: 0;
}

.agh-prof-divider {
  border: none;
  border-top: 1.5px solid #dde2e7;
  margin: 28px 0 16px 0;
  width: 100%;
  opacity: 0.75;
}

/* ========================================
   FOOTER
======================================== */
.agh-footer-bg {
  background: #123267;
  color: #fff;
  padding: 56px 0 24px 0;
  margin-top: 60px;
}

.agh-footer-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.agh-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.agh-footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #ffe000;
  font-weight: 800;
}

.agh-footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 16px;
}

.agh-footer-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #d9e2f0;
}

.agh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.agh-footer-links li {
  margin-bottom: 12px;
}

.agh-footer-links a,
.agh-footer-contact a {
  color: #d9e2f0;
  text-decoration: none;
  transition: color 0.18s;
  font-size: 1.05rem;
}

.agh-footer-links a:hover {
  color: #ffe000;
}

.agh-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d9e2f0;
}

.agh-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.agh-social-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.18s, transform 0.12s;
}

.agh-social-btn:hover {
  background: #1684d6;
  transform: scale(1.1);
}

.agh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.95rem;
  color: #d9e2f0;
}

.agh-footer-bottom a {
  color: #d9e2f0;
  text-decoration: none;
  transition: color 0.18s;
}

.agh-footer-bottom a:hover {
  color: #ffe000;
}

@media (max-width: 768px) {
  .agh-footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========================================
   FORMULARIO DE MATRÍCULA (STEPPER)
======================================== */
.agh-enroll-main {
  background: #f4f7fa;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(22, 132, 214, 0.09);
  max-width: 600px;
  width: 90vw;
  margin: 0 auto 34px;
  padding: 12px;
  border-left: 7px solid #1684d6;
  box-sizing: border-box;
}

.agh-form-header {
  font-family: 'Roboto Condensed', Arial, sans-serif !important;
  text-align: center;
  margin-bottom: 8px;
}

.agh-form-header h1 {
  font-family: 'Roboto Condensed', Arial, sans-serif !important;
  font-size: 3.1em;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin: 0;
}

.agh-stepper-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 12px;
}

.agh-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  max-width: 540px;
  min-width: 320px;
  position: relative;
  gap: 0;
}

.agh-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  position: relative;
}

.agh-step-circle {
  width: 48px;
  height: 48px;
  border: 3px solid #ffe000;
  background: #fff;
  color: #000;
  font-size: 1.37em;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
  position: relative;
  box-sizing: content-box;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}

.agh-step-circle.active {
  border-color: #1684d6;
  background: #eaf3ff;
  color: #000;
}

.agh-step-circle.done {
  border-color: #1684d6;
  background: #eaf3ff;
  color: #1684d6;
}

.agh-step-bar {
  position: absolute;
  top: 50%;
  left: 100%;
  height: 4px;
  width: calc(99% + 8px);
  background: #ffe000;
  z-index: 1;
  transform: translateY(-50%);
  border-radius: 2px;
  transition: background 0.16s;
}

.agh-step-circle.active .agh-step-bar,
.agh-step-circle.done .agh-step-bar {
  background: #1684d6;
}

.agh-step:last-child .agh-step-bar {
  display: none;
}

.agh-step-label {
  margin-top: 8px;
  font-size: 1.07em;
  color: #000;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  width: fit-content;
}

.agh-enroll-step {
  display: none;
}

.agh-enroll-step.active {
  display: block;
}

.agh-enroll-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 1px;
  column-gap: 8px;
  margin-bottom: -10px;
}

.agh-enroll-field {
  display: flex;
  flex-direction: column;
  margin-bottom: -24px;
}

.agh-enroll-field label {
  font-weight: 700;
  font-size: 1em;
  color: #1684d6;
  margin-bottom: -20px;
}

.agh-enroll-field input,
.agh-enroll-field select {
  padding: 6px;
  border: 1.2px solid #dde6f4;
  border-radius: 7px;
  background: #f7fbfe;
  color: #181b1e;
  font-size: 1em;
  box-sizing: border-box;
}

.agh-enroll-field input:focus,
.agh-enroll-field select:focus {
  border-color: #1684d6;
  outline: none;
  box-shadow: 0 1px 7px #eaf3fa;
}

.error-message {
  color: #d90000;
  font-size: 0.9em;
  min-height: 16px;
  margin-top: -24px;
  margin-bottom: 5px;
}

.agh-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  width: 100%;
  margin-top: 0;
  margin-bottom: 12px;
}

.agh-radio-row > label {
  min-width: 180px;
  font-weight: 700;
  color: #1684d6;
  margin-bottom: 0;
  margin-right: 14px;
}

.agh-radio-opt {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.agh-radio-opt label {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  color: #222 !important;
  font-weight: 300;
}

.agh-enroll-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
  margin-right: 10px;
}

.agh-enroll-next,
.agh-enroll-back {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92em;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: filter 0.15s, transform 0.06s, box-shadow 0.15s, background-color 0.15s;
}

.agh-enroll-back {
  background: #f6fafd;
  color: #1684d6;
  border: 1px solid #d1e6fa;
}

.agh-enroll-back:hover {
  background: #eaf3ff;
}

.agh-enroll-back:active {
  transform: translateY(1px);
  box-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.08);
}

.agh-enroll-next {
  background: linear-gradient(90deg, #1684d6 70%, #22d1ee 100%);
  color: #fff;
}

.agh-enroll-next:not(:disabled):hover {
  filter: brightness(1.06);
}

.agh-enroll-next:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.12);
}

.agh-enroll-next:disabled {
  background: #c4d8f8;
  color: #fff;
  cursor: not-allowed;
  filter: none;
}

@media (max-width: 700px) {
  .agh-stepper {
    max-width: 330px;
    min-width: 0;
  }
  .agh-step-circle {
    width: 32px;
    height: 32px;
    font-size: 1em;
  }
  .agh-step-bar {
    height: 3px;
  }
  .agh-step-label {
    font-size: 0.9em;
    margin-top: 2px;
  }
  .agh-enroll-main {
    width: 90vw;
  }
  .agh-enroll-fields {
    grid-template-columns: 1fr !important;
  }
  .agh-enroll-field {
    grid-column: auto !important;
    width: 100%;
    margin-bottom: -12px;
  }
  .agh-radio-row {
    grid-column: auto !important;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
  }
  .agh-radio-row > label {
    min-width: 120px;
    margin-bottom: 0;
  }
}

/* ========================================
   UTILIDADES Y EXTRAS
======================================== */
.agh-content-wrap {
  padding: 24px 0;
}

.agh-post {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 14px rgba(20, 83, 167, 0.06);
}

.agh-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #353a3e;
}

.agh-post-content p {
  margin-bottom: 1.2rem;
}

.agh-post-content a {
  color: #1684d6;
  text-decoration: none;
  transition: color 0.18s;
}

.agh-post-content a:hover {
  color: #1453a7;
  text-decoration: underline;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}
