/* ==========================================================================
   MEDIACIÓN TRES BASES - IDENTIDAD INSTITUCIONAL 2026
   Manual de Marca v1.0
   Tipografía: Montserrat (Google Fonts)
   Colores: 
     - Azul Base: #273541
     - Verde Acuerdo: #2BB58A
     - Gris: #A2A9AE
     - Gris Texto: #4A5763
     - Fondo Claro: #F2F4F5
   ========================================================================== */

:root {
  --color-primary: #273541;
  --color-primary-dark: #1c2730;
  --color-primary-light: #364858;
  --color-accent: #2BB58A;
  --color-accent-hover: #229974;
  --color-accent-light: rgba(43, 181, 138, 0.12);
  --color-gray: #A2A9AE;
  --color-gray-light: #e8ebed;
  --color-text: #4A5763;
  --color-text-dark: #1f2830;
  --color-text-muted: #6b7782;
  --color-bg-light: #F2F4F5;
  --color-white: #FFFFFF;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BA56;

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(39, 53, 65, 0.08);
  --shadow-lg: 0 16px 40px rgba(39, 53, 65, 0.12);
  --shadow-hover: 0 20px 48px rgba(39, 53, 65, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Layout container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-sm {
  padding: 50px 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}

.bg-white {
  background-color: var(--color-white);
}

.bg-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--color-white);
}

/* Section Header Titles */
.section-title-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  color: var(--color-primary);
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
  margin: 16px auto 0 auto;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ==========================================================================
   HEADER & NAVBAR
   Fixed top, transparent on scroll 0, transitions to #273541 smoothly
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 18px 0;
}

.site-header.scrolled {
  background-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(15, 23, 30, 0.45);
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1340px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 28px;
  flex-shrink: 1;
  min-width: 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-fast), height var(--transition-fast);
}

.site-header.scrolled .brand-logo img {
  height: 34px;
}

.brand-logo:hover img {
  transform: scale(1.02);
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  border: 1px solid transparent;
}

.site-header.scrolled .nav-link {
  text-shadow: none;
}

.nav-link:hover {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Estado activo sobre menú transparente arriba */
.site-header:not(.scrolled) .nav-link.active {
  color: var(--color-accent);
  background-color: rgba(39, 53, 65, 0.75);
  border: 1px solid rgba(43, 181, 138, 0.45);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Estado activo sobre menú azul con scroll */
.site-header.scrolled .nav-link.active {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(43, 181, 138, 0.35);
  font-weight: 600;
}

.nav-link.btn-cta {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-shadow: none;
  box-shadow: 0 4px 12px rgba(43, 181, 138, 0.35);
  margin-left: 8px;
  border: none;
}

.nav-link.btn-cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  color: var(--color-white);
}

/* Dropdown Menu - Fondo sólido #273541 con sombra para evitar traslúcidos */
.dropdown-chevron {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background-color: #273541 !important;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  z-index: 1050;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  margin-bottom: 4px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #d1d8dc;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-accent);
  padding-left: 18px;
}

.dropdown-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.badge-upcoming {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.15);
  color: #b0bec5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-white);
  z-index: 1001;
}

.hamburger-box {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   HERO / BANNER DE ENCABEZADO CON COMPUTADORAS SUPERPUESTAS
   Computadoras ubicadas a mitad de la banda azul inferior del banner
   ========================================================================== */

.page-hero {
  position: relative;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding-top: 125px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  margin-bottom: 95px;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(39, 53, 65, 0.4) 0%, rgba(39, 53, 65, 0.2) 40%, rgba(39, 53, 65, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Logo blanco sobre banner (más grande, sin título de sección) */
.hero-logo-wrap {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.hero-logo-white {
  width: 310px;
  max-width: 90%;
  height: auto;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.55));
}

/* Títulos en banner eliminados por indicación de diseño */
.hero-title {
  display: none !important;
}

/* Texto de habilitación limpio en cursiva sin caja de fondo */
.hero-habilitacion-clean {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.78rem, 1.25vw, 0.88rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  max-width: 680px;
  background: none;
  backdrop-filter: none;
  border: none;
  padding: 0;
  text-align: center;
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-social-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.hero-social-btn svg {
  width: 14px;
  height: 14px;
}

.hero-social-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: var(--color-white);
}

.hero-social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}

.hero-social-btn.whatsapp:hover {
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
}

/* Superposición de las computadoras montadas sobre el borde inferior del banner (un poco más pequeñas) */
.hero-computers-container {
  width: 100%;
  max-width: 490px;
  margin: 6px auto 0 auto;
  position: relative;
  z-index: 10;
  margin-bottom: -95px;
}

.hero-graphic-computers {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(43, 181, 138, 0.35);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 181, 138, 0.5);
  color: var(--color-white);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ==========================================================================
   SECCIONES: BIENVENIDOS (INICIO)
   ========================================================================== */

.quienes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 50px;
  align-items: center;
}

.quienes-image-wrap {
  position: relative;
  text-align: center;
  width: 100%;
}

.quienes-photo {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--color-white);
}

.quienes-content h2 {
  margin-bottom: 20px;
  color: var(--color-primary);
}

.quienes-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--color-text);
}

.quienes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

/* Nuestras Formaciones Section con Fondo */
.formaciones-bg-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  color: var(--color-white);
}

.formaciones-bg-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(39, 53, 65, 0.88);
  pointer-events: none;
}

.formaciones-wrapper {
  position: relative;
  z-index: 2;
}

.formaciones-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px auto;
}

.formaciones-intro h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.formaciones-intro p {
  color: #cfd8dc;
  font-size: 1.15rem;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.pilar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pilar-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--color-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.pilar-icon-wrap {
  width: 84px;
  height: 84px;
  background: rgba(43, 181, 138, 0.15);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform var(--transition-fast);
}

.pilar-card:hover .pilar-icon-wrap {
  transform: scale(1.1);
}

.pilar-icon-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pilar-title {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.pilar-desc {
  color: #d8e0e6;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.notebook-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.notebook-img {
  max-width: 680px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* ==========================================================================
   SECCIÓN: NUESTRA HISTORIA (DIAGRAMACIÓN EN ZIGZAG)
   ========================================================================== */

.historia-zigzag-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.historia-zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
  align-items: center;
}

.historia-zigzag-row.reverse {
  grid-template-columns: 1.25fr 1fr;
}

.historia-card-visual {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.historia-card-visual:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.historia-card-visual.logo-card img {
  max-width: 240px;
  height: auto;
}

.historia-card-visual.icon-card img {
  max-width: 180px;
  height: auto;
}

.historia-card-visual.img-card {
  padding: 0;
}

.historia-card-visual.img-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.historia-card-visual.img-card:hover img {
  transform: scale(1.03);
}

.historia-text-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.historia-text-content p {
  color: var(--color-text);
  margin: 0;
}

.historia-highlight-box {
  background-color: var(--color-bg-light);
  border-left: 4px solid var(--color-accent);
  padding: 28px 32px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 50px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   SECCIÓN: NUESTRO EQUIPO Y MODALES
   ========================================================================== */

.team-group {
  margin-bottom: 70px;
}

.team-group:last-child {
  margin-bottom: 0;
}

.team-group-title {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gray-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-group-title span {
  display: inline-block;
  width: 10px;
  height: 24px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.team-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.team-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.team-card-header {
  padding: 30px 24px 20px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-white) 100%);
}

.team-avatar-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 18px auto;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  position: relative;
}

.team-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-avatar-wrap img {
  transform: scale(1.05);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.team-role {
  color: var(--color-accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.team-title-desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.team-card-footer {
  padding: 18px 24px 24px 24px;
  margin-top: auto;
  text-align: center;
}

.btn-team-more {
  width: 100%;
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  border: 1px solid var(--color-gray-light);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-team-more:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(43, 181, 138, 0.3);
}

/* MODALES PARA INTEGRANTES - z-index alto para no quedar debajo */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 26, 33, 0.82);
  backdrop-filter: blur(8px);
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 100000 !important;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-bg-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-light);
}

.modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-accent);
}

.modal-title-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.modal-title-wrap p {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.modal-section-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title::before {
  content: '';
  width: 6px;
  height: 16px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.modal-list {
  list-style: none;
  padding-left: 0;
}

.modal-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ==========================================================================
   SECCIÓN: FORMACIONES EN CURSO
   ========================================================================== */

.formaciones-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto 60px auto;
}

.formacion-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.formacion-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

/* Cabecera de la tarjeta con el badge afuera del arte del flyer */
.formacion-card-header {
  padding: 12px 24px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 2px solid var(--color-accent);
}

.formacion-badge-header {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* Flyer Desktop */
.formacion-flyer-desktop {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
  width: 100%;
}

.formacion-flyer-desktop img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.formacion-card:hover .formacion-flyer-desktop img {
  transform: scale(1.015);
}

/* Flyer Mobile en puro HTML/CSS (oculto en desktop) */
.formacion-flyer-mobile {
  display: none;
  background: linear-gradient(135deg, #1f2b36 0%, #273541 65%, #1d2731 100%);
  position: relative;
  overflow: hidden;
  padding: 34px 20px 28px 20px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 3px solid var(--color-accent);
}

.formacion-flyer-mobile::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -20px;
  width: 110px;
  height: 130px;
  border-top: 12px solid rgba(43, 181, 138, 0.28);
  border-left: 24px solid rgba(255, 255, 255, 0.04);
  border-right: 24px solid rgba(162, 169, 174, 0.04);
  pointer-events: none;
}

.formacion-flyer-mobile::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 90px;
  height: 90px;
  border-bottom: 10px solid rgba(43, 181, 138, 0.15);
  border-right: 20px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.mobile-flyer-logo {
  max-width: 210px;
  width: 75%;
  height: auto;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.mobile-flyer-divider {
  width: 36px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
  margin: 0 auto 16px auto;
  position: relative;
  z-index: 2;
}

.mobile-flyer-title {
  color: #ffffff !important;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
}

.mobile-flyer-homologacion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #d1d8dc;
  font-size: 0.84rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.mobile-flyer-homologacion svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.formacion-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.formacion-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--color-primary);
}

.formacion-desc {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.formacion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}

.inscription-contact-box {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  border: 1px dashed var(--color-gray);
}

.inscription-contact-box h3 {
  margin-bottom: 12px;
}

.inscription-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* ==========================================================================
   SECCIÓN: MEDIACIÓN
   ========================================================================== */

.mediacion-block {
  margin-bottom: 60px;
}

.mediacion-block:last-child {
  margin-bottom: 0;
}

.mediacion-block h2 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.mediacion-source {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 8px;
}

.mediacion-source a {
  color: var(--color-accent);
  text-decoration: underline;
}

.requisitos-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

.requisito-item {
  background-color: var(--color-bg-light);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
}

.requisito-icon {
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1;
}

.ley-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e2832 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}

.ley-box h4 {
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.ley-box p {
  color: #dbe3e8;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================================================
   SECCIÓN: MATERIAL DE INTERÉS
   ========================================================================== */

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.material-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
}

.material-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.material-thumb-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-primary);
}

.material-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.material-card:hover .material-thumb-wrap img {
  transform: scale(1.05);
}

.material-source-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(39, 53, 65, 0.9);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.material-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.material-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.material-card:hover .material-title {
  color: var(--color-accent);
}

.material-read-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SECCIÓN: NOVEDADES
   ========================================================================== */

.novedades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.novedad-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.novedad-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.novedad-media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #000;
}

.novedad-media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.novedad-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.novedad-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.novedad-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--color-primary);
  line-height: 1.35;
}

.novedad-details {
  list-style: none;
  margin-bottom: 24px;
}

.novedad-details li {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.novedad-details li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
}

.novedad-action {
  margin-top: auto;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--color-whatsapp-hover);
  color: var(--color-white);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background-color: var(--color-whatsapp);
  opacity: 0.6;
  animation: pulseRadar 2s infinite;
  z-index: -1;
}

@keyframes pulseRadar {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.cta-unite-bar {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a242c 100%);
  color: var(--color-white);
  padding: 40px 0;
  border-top: 4px solid var(--color-accent);
}

.cta-unite-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-unite-text h3 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 6px;
}

.cta-unite-text p {
  color: var(--color-gray);
  margin: 0;
  font-size: 1rem;
}

.whatsapp-pie-link {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.whatsapp-pie-link:hover {
  transform: scale(1.05);
}

.whatsapp-pie-link img {
  height: 42px;
  width: auto;
}

.site-footer {
  background-color: var(--color-primary);
  color: #cfd8dc;
  padding-top: 60px;
  padding-bottom: 24px;
  position: relative;
}

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

.footer-brand img {
  height: 46px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  color: #a2a9ae;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col-title {
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #a2a9ae;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-help p {
  color: #a2a9ae;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: #8b969e;
}

.footer-bottom a {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .pilares-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .team-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 0;
  }

  .site-header.scrolled {
    padding: 10px 0;
  }

  .header-container {
    padding-left: 20px;
    padding-right: 20px;
    gap: 12px;
  }

  .brand-logo {
    margin-right: 0;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .brand-logo img {
    height: 36px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
  }

  .site-header.scrolled .brand-logo img {
    height: 32px;
    max-width: 200px;
  }

  .mobile-toggle {
    display: block;
    flex-shrink: 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 75px 20px 40px 20px;
    gap: 10px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    z-index: 1000;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.active {
    right: 0;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-accent);
    background: #1c2730;
    padding: 8px 14px;
    margin-top: 4px;
    display: none;
    pointer-events: auto;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }

  .quienes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    text-align: center;
  }

  .quienes-image-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .quienes-photo {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .quienes-actions {
    justify-content: center;
  }

  .historia-zigzag-row,
  .historia-zigzag-row.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    text-align: center;
  }

  .historia-card-visual {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 24px;
  }

  .historia-card-content {
    text-align: center;
  }

  .material-grid,
  .novedades-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    gap: 26px;
  }

  .formaciones-grid {
    display: flex;
    flex-direction: column;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    gap: 32px;
  }

  .formacion-card-header {
    justify-content: center;
    padding: 10px 16px;
  }

  .formacion-flyer-desktop {
    display: none !important;
  }

  .formacion-flyer-mobile {
    display: flex !important;
  }

  .team-grid-2,
  .team-grid-3 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    gap: 24px;
  }

  .page-hero {
    padding-top: 105px;
    margin-bottom: 60px;
  }

  .hero-logo-white {
    width: 250px;
    max-width: 85%;
  }

  .hero-computers-container {
    width: 100%;
    max-width: 340px;
    margin: 6px auto 0 auto;
    margin-bottom: -60px;
  }

  .hero-graphic-computers {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .hero-social-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }

  .site-footer {
    padding-top: 45px;
    padding-bottom: 95px;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-bottom: 36px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand img {
    height: 40px;
    max-width: 220px;
    margin: 0 auto 16px auto;
  }

  .footer-col-title {
    text-align: center;
  }

  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-help {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 580px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding: 50px 0;
  }

  .page-hero {
    padding-top: 96px;
    margin-bottom: 50px;
  }

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-logo-white {
    width: 220px;
    max-width: 82%;
  }

  .hero-habilitacion-clean {
    font-size: 0.74rem;
    line-height: 1.45;
    margin-bottom: 14px;
    padding: 0 6px;
  }

  .hero-social-links {
    gap: 8px;
    margin-bottom: 14px;
    justify-content: center;
  }

  .hero-social-btn {
    padding: 5px 12px;
    font-size: 0.74rem;
  }

  .hero-computers-container {
    max-width: 280px;
    margin-bottom: -50px;
  }

  .cta-unite-bar {
    padding: 30px 0;
  }

  .cta-unite-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .cta-unite-text h3 {
    font-size: 1.2rem;
  }

  .cta-unite-text p {
    font-size: 0.92rem;
  }

  .whatsapp-pie-link img {
    height: 36px;
    max-width: 100%;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-tooltip {
    display: none !important;
  }

  .modal-container {
    padding: 24px 18px;
    max-width: 95%;
  }

  .modal-header-info {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .formacion-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .formacion-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-container {
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }

  .brand-logo img {
    height: 32px;
    max-width: 190px;
  }

  .site-header.scrolled .brand-logo img {
    height: 28px;
    max-width: 175px;
  }

  .page-hero {
    padding-top: 90px;
    margin-bottom: 44px;
  }

  .hero-logo-white {
    width: 195px;
    max-width: 80%;
  }

  .hero-habilitacion-clean {
    font-size: 0.70rem;
    line-height: 1.4;
  }

  .hero-computers-container {
    max-width: 240px;
    margin-bottom: -44px;
  }

  .quienes-image-wrap,
  .quienes-photo {
    max-width: 270px;
  }

  .historia-card-visual {
    max-width: 270px;
    padding: 16px;
  }

  .team-grid-2,
  .team-grid-3,
  .formaciones-grid,
  .material-grid,
  .novedades-grid,
  .pilares-grid {
    max-width: 290px;
  }
}
