/*---------Seccion bienvenido a la UEMA*/
#welcome {
  min-height: 50vh;
  padding-top: 0px;
  padding-bottom: 0px;
}

#welcome p {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
}


@media (max-width: 576px) {
  #welcome p {
    text-align: center;
    font-size: 13px;
  }
}


@media (max-width: 991px) {
  #welcome p {
    text-align: center;
  }
}


.typing-text {
  width: 0;
  max-width: max-content;
  margin: 25px auto 0;
  overflow: hidden;
  white-space: nowrap;

  font-size: 1.2rem;
  color: #444444;

  border-right: 2.5px solid #FA1212;
  animation: typing 5s steps(70, end) forwards, cursor 0.9s infinite;
}

.typing-text strong {
  color: #FA1212;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100ch;
  }
}

@keyframes cursor {
  0%, 100% {
    border-color: #FA1212;
  }
  50% {
    border-color: transparent;
  }
}

@media (max-width: 768px) {
  .typing-text {
    white-space: normal;
    width: auto;
    border-right: none;
    animation: none;
    text-align: center;
  }
}

/*Efecto revelador*/

/* ==============================
   UEMA SLOGAN - BLOCK REVEAL
============================== */

.uema-slogan-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0px;
}

.block-effect {
  font-size: clamp(4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  display: inline-block;
  text-align: center;
}

.block-reveal {
  --t: calc(var(--td) + var(--d));

  display: block;
  width: fit-content;
  margin: 0 auto 14px auto;
  padding: 6px 12px;

  color: transparent;
  position: relative;
  overflow: hidden;
}

/* Bloque de color oculto inicialmente */
.block-reveal::after {
  content: "";
  width: 0%;
  height: 100%;

  position: absolute;
  top: 0;
  left: 0;

  background: var(--bc);
}

/* El efecto se activa solo cuando JS agregue la clase .active */
.reveal-on-scroll.active .block-reveal {
  animation: revealBlock 0s var(--t) forwards;
}

.reveal-on-scroll.active .block-reveal::after {
  animation:
    revealingIn var(--td) var(--d) forwards,
    revealingOut var(--td) var(--t) forwards;
}

/* Cuando termina el bloque, aparece el texto */
@keyframes revealBlock {
  100% {
    color: #d7d5d5;
  }
}

/* El bloque entra de izquierda a derecha */
@keyframes revealingIn {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* El bloque sale hacia la derecha */
@keyframes revealingOut {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .uema-slogan-section {
    min-height: 60vh;
    padding: 70px 16px;
  }

  .block-effect {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .block-reveal {
    padding: 5px 8px;
    margin-bottom: 10px;
  }
}

/*Imgane full width*/
.full-image-section {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  position: relative;
  padding: 0px;
}

.full-screen-image {
  width: 100%;
  height: 100%;
  object-fit:contain;
  object-position: center;
  display: block;
}

/* Tablet */
@media (max-width: 991px) {
  .full-screen-image {
    min-height: auto;
    padding: 0 0 0;
  }

  .vespertina-text {
    max-width: 100%;
    padding-bottom: 50px;
    text-align: center;
    margin: 0 auto;
  }

  .vespertina-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .vespertina-image-box {
    min-height: auto;
    justify-content: center;
  }

  .vespertina-image-box::before {
    right: 50%;
    transform: translateX(50%);
    width: 85%;
    height: 68%;
  }

    .vespertina-img {
    width: 80%;
    max-height: 520px;
    object-position: center bottom;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .full-screen-image {
    width: 100%;
    max-height: 900px;
  }

  .full-image-section {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  position: relative;
}
}

/* ==============================
   SECCIÓN VESPERTINA MINIMAL
============================== */

.vespertina-minimal {
  position: relative;
  width: 100%;
  min-height: 80vh;
  padding: 0px;
  background: #ffffff;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.419);
}

.vespertina-minimal .container {
  position: relative;
  z-index: 2;
}

/* Texto */
.vespertina-text {
  max-width: 520px;
  padding-bottom: 80px;
}

.section-label {
  display: inline-block;
  margin-bottom: 18px;

  color: #FA1212;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vespertina-text h2 {
  margin-bottom: 24px;

  color: #151515;
  font-size: clamp(2.4rem, 5vw, 2.8rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.vespertina-text p {
  max-width: 460px;
  margin-bottom: 34px;

  color: #5c5c5c;
  font-size: clamp(1rem, 1.25vw, 1rem);
  line-height: 1.8;
  font-weight: 400;
}



/* Botón */
.btn-vespertina-minimal {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 32px;

  background: #FA1212;
  color: #ffffff;
  border: 1px solid #FA1212;
  border-radius: 100px;

  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;

  transition: all 0.3s ease;
}

.btn-vespertina-minimal:hover {
  background: #ffffff;
  color: #FA1212;
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(250, 18, 18, 0.18);
}

/* Imagen */
.vespertina-image-box {
  min-height: calc(100vh - 120px);

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  position: relative;
}

.vespertina-img {
  width: min(100%, 850px);
  max-height: 60vh;

  object-fit: contain;
  object-position: bottom right;
  display: block;
}

/* Detalle decorativo minimalista */
.vespertina-minimal::before {
  content: "";
  position: absolute;
  top: 90px;
  right: 80px;

  width: 14px;
  height: 14px;

  background: #FA1212;
  border-radius: 50%;
  opacity: 0.8;
}

.vespertina-minimal::after {
  content: "";
  position: absolute;
  left: 70px;
  bottom: 90px;

  width: 90px;
  height: 90px;

  border: 1px solid rgba(250, 18, 18, 0.18);
  border-radius: 50%;
}

/* Tablet */
@media (max-width: 991px) {
  .vespertina-minimal {
    min-height: auto;
    padding: 90px 0 0;
  }

  .vespertina-text {
    max-width: 100%;
    padding-bottom: 50px;
    text-align: center;
    margin: 0 auto;
  }

  .vespertina-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .vespertina-image-box {
    min-height: auto;
    justify-content: center;
  }

  .vespertina-image-box::before {
    right: 50%;
    transform: translateX(50%);
    width: 85%;
    height: 68%;
  }

  .vespertina-img {
    width: 90%;
    max-height: 520px;
    object-position: center bottom;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .vespertina-minimal {
    padding: 70px 0 0;
  }

  .vespertina-text {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 40px;
  }

  .section-label {
    font-size: 0.75rem;
  }

  .vespertina-text h2 {
    font-size: clamp(1.4rem, 12vw, 1.4rem);
  }

  .vespertina-text p {
    font-size: .8rem;
    line-height: 1.6;
  }

  .btn-vespertina-minimal {
    padding: 12px 28px;
  }

  .vespertina-img {
    width: 105%;
    max-height: 390px;
  }

  .vespertina-minimal::before,
  .vespertina-minimal::after {
    display: none;
  }
}

/* ==============================
   SECCIÓN ROBÓTICA EDUCATIVA
   Fondo pastel animado
============================== */

.robotica-section {
  position: relative;
  overflow: hidden;
  min-height: 60vh;

/*   background: linear-gradient(
    120deg,
    #e8eefc 0%,
    #f7f9ff 28%,
    #fffaf0 55%,
    #f5edcf 78%,
    #edf4ff 100%
  ); */

  background-size: 300% 300%;
  animation: roboticaGradientMove 14s ease-in-out infinite;
}

/* Movimiento sutil del degradado */
@keyframes roboticaGradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Capa decorativa con luz suave */
/* .robotica-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 12% 18%, rgba(219, 224, 239, 0.5), transparent 28%),
    radial-gradient(circle at 86% 52%, rgba(255, 255, 255, 0.75), transparent 32%),
    radial-gradient(circle at 48% 85%, rgba(252, 252, 252, 0.65), transparent 36%);

  z-index: 0;
  pointer-events: none;
} */

.robotica-section .container {
  position: relative;
  z-index: 2;
}

/* Alto completo solo en escritorio */
@media (min-width: 992px) {
  .min-vh-lg-100 {
    min-height: 100vh;
  }
}

/* Contenido */
.robotica-content {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.robotica-label {
  display: inline-block;
  margin-bottom: 18px;

  color: #FA1212;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.robotica-title {
  margin-bottom: 24px;

  color: #151515;
  font-size: clamp(2rem, 13vw, 2rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.robotica-description {
  max-width: 520px;
  margin: 0 auto 28px auto;

  color: #4f4f4f;
  font-size: clamp(1rem, 1.2vw, 1rem);
  line-height: 1.8;
}

/* En escritorio el texto se alinea mejor hacia la izquierda */
@media (min-width: 992px) {
  .robotica-description {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Tags */
.robotica-tags {
  margin-bottom: 34px;
}

.robotica-tags span {
  padding: 9px 16px;

  background: rgba(255, 255, 255, 0.62);
  color: #FA1212;
  border: 1px solid rgba(250, 18, 18, 0.12);
  border-radius: 100px;

  font-size: 0.85rem;
  font-weight: 700;

  backdrop-filter: blur(10px);
}

/* Botón */
.btn-robotica {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 32px;

  background: #151515;
  color: #ffffff;
  border: 1px solid #151515;
  border-radius: 100px;

  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;

  transition: all 0.3s ease;
}

.btn-robotica:hover {
  background: #FA1212;
  color: #ffffff;
  border-color: #FA1212;
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(250, 18, 18, 0.18);
}

/* Imagen */
.robotica-image-box {
  position: relative;
  padding-top: 40px;
}

/* Fondo detrás de la imagen */

.robotica-img {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 760px;
  max-height: 78vh;

  object-fit: contain;
  object-position: bottom center;

  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.08));
}

/* Tablet */
@media (max-width: 991px) {
  .robotica-section {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 0;
  }

  .robotica-content {
    max-width: 760px;
  }

  .robotica-image-box {
    padding-top: 20px;
  }

  .robotica-img {
    max-height: 520px;
  }

  .robotica-section::after {
    width: 380px;
    height: 380px;
    top: -160px;
    left: -170px;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .robotica-section {
    padding-top: 70px;
  }

  .robotica-title {
    font-size: clamp(1.4rem, 12vw, 1.4rem);
  }

  .robotica-description {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .robotica-tags span {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .btn-robotica {
    padding: 12px 28px;
  }

  .robotica-img {
    max-height: 390px;
  }

  .robotica-image-box::before {
    width: 92%;
    height: 62%;
    border-radius: 30px 30px 0 0;
  }

  .robotica-section::after {
    display: none;
  }
}

.features-item {
  min-height: 120px;
  padding: 25px 20px;
}

.features-item i {
  font-size: 2rem;
}

.features-img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

/* ==============================
   SECCIÓN CONVENIOS EDUCATIVOS
============================== */

.convenios-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding-top: 210px !important;
  padding-bottom: 210px !important;
}

/* Decoración suave */
/* .convenios-section::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: rgba(250, 18, 18, 0.06);
  border-radius: 50%;
  z-index: 0;
} */

.convenios-section::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(250, 18, 18, 0.12);
  border-radius: 50%;
  z-index: 0;
}

.convenios-section .container {
  position: relative;
  z-index: 2;
}

.convenios-label {
  display: inline-block;
  margin-bottom: 18px;
  color: #FA1212;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.convenios-title {
  margin-bottom: 22px;
  color: #151515;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.convenios-description {
  max-width: 760px;
  margin: 0 auto;
  color: #5c5c5c;
  font-size: clamp(1rem, 1.2vw, 1rem);
  line-height: 1.8;
}

/* Tarjetas de logos */
.brand-card {
  height: 130px;
  padding: 28px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(248, 248, 248, 0.9);
  border: 1px solid rgba(21, 21, 21, 0.07);
  border-radius: 28px;

  transition: all 0.35s ease;
}

.brand-card:hover {
  background: #ffffff;
  border-color: rgba(250, 18, 18, 0.22);
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.08);
}

.brand-logo {
  max-width: 150px;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;

  filter: grayscale(100%);
  opacity: 0.72;
  transition: all 0.35s ease;
}

.brand-card:hover .brand-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}

/* Tablet */
@media (max-width: 991px) {
  .convenios-section {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
  }

  .brand-card {
    height: 120px;
    border-radius: 24px;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .convenios-section {
    padding-top: 75px !important;
    padding-bottom: 75px !important;
  }

  .convenios-title {
    font-size: clamp(1.4rem, 12vw, 1.4rem);
  }

  .convenios-description {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .brand-card {
    height: 105px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .brand-logo {
    max-width: 110px;
    max-height: 50px;
  }
}

/* ==============================
   CTA FINAL UEMA - FONDO BLANCO
============================== */

.cta-final-section {
  position: relative;
  overflow: hidden;
  padding: 120px 20px;
  background: #ffffff;
  color: #151515;
}

.cta-label {
  display: inline-block;
  margin-bottom: 20px;
  color: #FA1212;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-final-section h2 {
  max-width: 900px;
  margin: 0 auto 24px auto;
  color: #151515;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.cta-final-section p {
  max-width: 760px;
  margin: 0 auto 38px auto;
  color: #5c5c5c;
  font-size: clamp(1rem, 1.2vw, 1rem);
  line-height: 1.3;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 32px;
  border-radius: 100px;

  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;

  transition: all 0.3s ease;
}

.btn-cta-primary {
  background: #FA1212;
  color: #ffffff;
  border: 1px solid #FA1212;
}

.btn-cta-primary:hover {
  background: #ffffff;
  color: #FA1212;
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(250, 18, 18, 0.18);
}

.btn-cta-secondary {
  color: #25D366;
  border: 1px solid #25D366;
  border-color: #1ebe5d;
}

.btn-cta-secondary:hover {
  color: #25D366;
  border-color: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(37, 211, 102, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .cta-final-section {
    padding: 90px 18px;
  }

  .cta-final-section h2 {
    font-size: clamp(1.4rem, 12vw, .4rem);
  }

  .cta-final-section p {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}

@media (max-width: 576px) {
  .cta-buttons {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
  }

  .cta-final-section::before,
  .cta-final-section::after {
    display: none;
  }
}

/* ==============================
   MODAL COOKIES UEMA - FULLSCREEN
============================== */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  z-index: 1;
}

.cookie-modal-box {
  position: relative;
  z-index: 2;

  width: min(100%, 820px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  background: #ffffff;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 34px;

  padding: 34px;

  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.16);

  animation: cookieModalIn 0.45s ease forwards;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.cookie-modal-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(250, 18, 18, 0.08);
  color: #FA1212;
  border-radius: 20px;

  font-size: 1.7rem;
}

.cookie-modal-label {
  display: inline-block;
  margin-bottom: 6px;

  color: #FA1212;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-modal-header h3 {
  margin: 0;

  color: #151515;
  font-size: clamp(1.8rem, 4vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.cookie-main-text {
  margin-bottom: 14px;

  color: #6a6a6a;
  font-size: .8rem;
  line-height: 1.3;
}

.cookie-secondary-text {
  margin-bottom: 26px;

  color: #6a6a6a;
  font-size: 0.8rem;
  line-height: 1.3;
}

.cookie-settings {
  display: none;
  margin-top: 22px;
}

.cookie-settings.show {
  display: block;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding: 20px 0;
  border-top: 1px solid rgba(21, 21, 21, 0.08);
}

.cookie-option h4 {
  margin-bottom: 6px;

  color: #151515;
  font-size: .8rem;
  font-weight: 800;
}

.cookie-option p {
  margin: 0;

  color: #666666;
  font-size: 0.8rem;
  line-height: 1.3;
}

.cookie-switch {
  position: relative;
  width: 54px;
  height: 30px;
  min-width: 54px;
  cursor: pointer;
}

.cookie-switch input {
  display: none;
}

.cookie-switch span {
  position: absolute;
  inset: 0;

  background: #d8d8d8;
  border-radius: 100px;

  transition: all 0.3s ease;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;

  background: #ffffff;
  border-radius: 50%;

  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.cookie-switch input:checked + span {
  background: #FA1212;
}

.cookie-switch input:checked + span::before {
  transform: translateX(24px);
}

.cookie-switch.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 32px;
}

.btn-cookie-primary,
.btn-cookie-secondary,
.btn-cookie-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 26px;
  border-radius: 100px;

  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;

  transition: all 0.3s ease;
}

.btn-cookie-primary {
  background: #FA1212;
  color: #ffffff;
  border: 1px solid #FA1212;
}

.btn-cookie-primary:hover {
  background: #ffffff;
  color: #FA1212;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(250, 18, 18, 0.18);
}

.btn-cookie-secondary {
  background: #151515;
  color: #ffffff;
  border: 1px solid #151515;
}

.btn-cookie-secondary:hover {
  background: #ffffff;
  color: #151515;
  transform: translateY(-2px);
}

.btn-cookie-outline {
  background: #ffffff;
  color: #151515;
  border: 1px solid rgba(21, 21, 21, 0.16);
}

.btn-cookie-outline:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.d-none {
  display: none !important;
}

body.cookie-lock {
  overflow: hidden;
}

@keyframes cookieModalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-modal {
    padding: 16px;
  }

  .cookie-modal-box {
    padding: 26px;
    border-radius: 28px;
  }

  .cookie-modal-header {
    align-items: flex-start;
  }

  .cookie-option {
    flex-direction: column;
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .btn-cookie-primary,
  .btn-cookie-secondary,
  .btn-cookie-outline {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .cookie-modal-box {
    padding: 22px;
    border-radius: 24px;
  }

  .cookie-modal-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.4rem;
  }
}

/* ==============================
   FOOTER - CONFIGURAR COOKIES
============================== */

.footer-cookie-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 18px;
  padding: 10px 18px;

  color: #FA1212;
  background: rgba(250, 18, 18, 0.06);
  border: 1px solid rgba(250, 18, 18, 0.14);
  border-radius: 100px;

  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;

  transition: all 0.3s ease;
}

.footer-cookie-link i {
  font-size: 1rem;
}

.footer-cookie-link:hover {
  color: #ffffff;
  background: #FA1212;
  border-color: #FA1212;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(250, 18, 18, 0.18);
}

/* ==============================
   PÁGINA NUESTRA INSTITUCIÓN
   Archivo: nuestra_institucion.html
============================== */

:root {
  --uema-red: #FA1212;
  --uema-dark: #151515;
  --uema-text: #5c5c5c;
  --uema-soft: #f8f8f8;
}

body.institution-page {
  background: #ffffff;
}

.institution-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.institution-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--uema-red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.institution-title {
  color: var(--uema-dark);
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}


@media (max-width: 576px) {
    .institution-title {
      color: var(--uema-dark);
      font-size: clamp(1.4rem, 12vw, 1.4rem);
      font-weight: 850;
      line-height: 1.04;
      letter-spacing: -0.045em;
      margin-bottom: 22px;
    }
}

.institution-description {
  color: var(--uema-text);
  font-size: clamp(1rem, 1.2vw, 1rem);
  line-height: 1.6;
  margin-bottom: 0;
  text-align: left;
}

/* Imagen de cabecera institucional */
.institution-cover {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--uema-red);
}

.institution-cover-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero interno textual */
.institution-hero {
  min-height: auto;
  padding: 0px 0 0px;
  display: flex;
  align-items: center;
  text-align: center;
}

.institution-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(250, 18, 18, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.institution-hero .container {
  position: relative;
  z-index: 2;
}

.institution-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--uema-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.institution-breadcrumb a {
  color: var(--uema-red);
  font-weight: 800;
}

.institution-hero h1 {
  max-width: 900px;
  margin: 0 auto 24px;
  color: var(--uema-dark);
  font-size: clamp(2rem, 13vw, 3.2rem);
  font-weight: 900;
  line-height: 0.94;
}


@media (max-width: 576px) {
    .institution-hero h1 {
        font-size: clamp(2rem, 4vw, 1rem);
    }
}


.institution-hero .script-text {
  display: block;
  color: var(--uema-red);
  font-family: "Oooh Baby", cursive;
  font-size:.7em;
  font-weight: 400;
  line-height: .7;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

@media (max-width: 576px) {
    .institution-hero .script-text {
        font-size: clamp(1rem, 4vw, 1rem);
    }
}


.institution-hero p {
  max-width: 760px;
  margin: 0 auto 34px;
  color: var(--uema-text);
  font-size: 1rem;
  line-height: 1.6;
}


@media (max-width: 576px) {
    .institution-hero p {
        font-size: .6rem;
    }
}


.institution-hero-actions {
  justify-content: center;
}

.btn-institution-primary,
.btn-institution-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-institution-primary {
  background: var(--uema-red);
  color: #ffffff;
  border: 1px solid var(--uema-red);
}

.btn-institution-primary:hover {
  background: #ffffff;
  color: var(--uema-red);
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(250, 18, 18, 0.18);
}

.btn-institution-secondary {
  background: #ffffff;
  color: var(--uema-dark);
  border: 1px solid rgba(21, 21, 21, 0.14);
}

.btn-institution-secondary:hover {
  background: var(--uema-dark);
  color: #ffffff;
  border-color: var(--uema-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

/* Quiénes somos */
.about-institution {
  padding: 100px 0;
}

.about-highlight {
  margin-top: 30px;
  padding: 28px;
  background: rgba(250, 18, 18, 0.055);
  border-left: 4px solid var(--uema-red);
  border-radius: 0 28px 28px 0;
  color: var(--uema-dark);
  font-size: clamp(1.25rem, 2vw, 1.2rem);

  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 18px;
  align-items: end;
}

.about-image-main,
.about-image-small {
  overflow: hidden;
  background: var(--uema-soft);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.06);
}

.about-image-main {
  height: 480px;
  border-radius: 38px;
}

.about-image-small {
  height: 330px;
  border-radius: 32px;
  transform: translateY(38px);
}

.about-image-main img,
.about-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================
   TRAYECTORIA INSTITUCIONAL
============================== */

.trayectoria-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0 0px;

  background:
    radial-gradient(circle at 12% 18%, rgba(250, 18, 18, 0.07), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(250, 18, 18, 0.045), transparent 30%),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fff8f8 48%,
      #ffffff 100%
    );
}

.trayectoria-section .institution-description {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
  text-align: left;
}

.trayectoria-image-box {
  position: relative;
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.trayectoria-image-box::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 0;
}

.trayectoria-image {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: 620px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.08));
}

/* Tablet */
@media (max-width: 991px) {
  .trayectoria-section {
    padding: 90px 0 70px;
  }

  .trayectoria-image {
    width: min(100%, 620px);
    max-height: 520px;
  }

  .trayectoria-image-box::before {
    width: 82%;
    height: 54%;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .trayectoria-section {
    padding: 75px 0 55px;
  }

  .trayectoria-section .institution-description {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .trayectoria-image-box {
    margin-top: 26px;
  }

  .trayectoria-image {
    width: 100%;
    max-height: 390px;
  }

  .trayectoria-image-box::before {
    width: 92%;
    height: 48%;
    border-radius: 28px 28px 0 0;
  }
}

/* Misión / Visión / Valores */
.identity-section {
  padding: 110px 0;
}

.identity-card {
  height: 100%;
  padding: 34px 30px;
  background: #ffffff;
  border: 1px solid rgba(21, 21, 21, 0.07);
  border-radius: 32px;
  transition: all 0.35s ease;
}

.identity-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 18, 18, 0.24);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.07);
}

.identity-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 18, 18, 0.075);
  color: var(--uema-red);
  border-radius: 20px;
  font-size: 1.65rem;
}

.identity-card h3 {
  color: var(--uema-dark);
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.identity-card p {
  color: var(--uema-text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.values-list li {
  padding: 9px 14px;
  color: var(--uema-red);
  background: rgba(250, 18, 18, 0.065);
  border: 1px solid rgba(250, 18, 18, 0.11);
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 800;
}

/* ==============================
   NIVELES EDUCATIVOS - SECUENCIA
============================== */

.levels-sequence-section {
  position: relative;
  overflow: hidden;
  padding: 50px 0;
}

.levels-sequence-section .container {
  position: relative;
  z-index: 2;
}

.levels-sequence-wrapper {
  margin-top: 70px;
}

.level-sequence-item {
  position: relative;
  padding: 28px 0 72px;
}

.level-sequence-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  background: linear-gradient(
    180deg,
    rgba(250, 18, 18, 0.35),
    rgba(250, 18, 18, 0.05)
  );
}

.level-sequence-content {
  position: relative;
}

.level-sequence-number {
  display: block;
  margin-bottom: 12px;

  color: rgba(250, 18, 18, 0.14);
  font-size: clamp(3.5rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.level-sequence-label {
  display: inline-block;
  margin-bottom: 10px;

  color: #FA1212;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.level-sequence-content h3 {
  margin-bottom: 14px;

  color: #151515;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.level-sequence-content p {
  margin: 0;
  color: #5c5c5c;
  font-size: 0.96rem;
  line-height: 1.75;
  max-width: 460px;
}

.level-sequence-content::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: 18px;
  background: #FA1212;
  opacity: 0.78;
}

.level-sequence-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.level-sequence-image img {
  height: 320px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}


/* Tablet */
@media (max-width: 991px) {
  .levels-sequence-section {
    padding: 95px 0;
  }

  .levels-sequence-wrapper {
    margin-top: 55px;
  }

  .level-sequence-item {
    padding: 18px 0 56px;
  }

  .level-sequence-item:not(:last-child)::after {
    height: 40px;
    bottom: 6px;
  }

  .level-sequence-content p {
    max-width: 100%;
  }

  .level-sequence-image img {
    height: 360px;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .levels-sequence-section {
    padding: 75px 0;
  }

  .levels-sequence-wrapper {
    margin-top: 42px;
  }

  .level-sequence-item {
    padding: 10px 0 46px;
  }

  .level-sequence-item:not(:last-child)::after {
    height: 32px;
    bottom: 8px;
  }

  .level-sequence-number {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .level-sequence-label {
    font-size: 0.66rem;
    margin-bottom: 8px;
  }

  .level-sequence-content h3 {
    font-size: 1.28rem;
  }

  .level-sequence-content p {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .level-sequence-content::before {
    width: 40px;
    margin-bottom: 14px;
  }

  .level-sequence-image {
    border-radius: 24px;
  }

  .level-sequence-image img {
    height: 240px;
  }
}

/* CTA final */
.institution-cta {
  padding: 120px 20px;
  background: #ffffff;
}

.institution-cta-box {
  position: relative;
  overflow: hidden;
  padding: 64px 42px;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.25), transparent 32%),
    linear-gradient(135deg, #FA1212 0%, #d70000 100%);
  border-radius: 42px;
  color: #ffffff;
}

.institution-cta-box::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.institution-cta-box h2 {
  max-width: 850px;
  margin: 0 auto 20px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.institution-cta-box p {
  max-width: 700px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.75;
}

.institution-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.institution-cta .btn-white,
.institution-cta .btn-outline-white {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
}

.institution-cta .btn-white {
  background: #ffffff;
  color: var(--uema-red);
  border: 1px solid #ffffff;
}

.institution-cta .btn-white:hover {
  background: var(--uema-dark);
  color: #ffffff;
  border-color: var(--uema-dark);
  transform: translateY(-3px);
}

.institution-cta .btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.institution-cta .btn-outline-white:hover {
  background: #ffffff;
  color: var(--uema-red);
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .institution-hero {
    padding: 86px 0 74px;
  }

  .institution-cover-img {
    min-height: 280px;
    object-fit: cover;
    object-position: center top;
  }

  .about-institution,
  .trajectory-section,
  .identity-section,
  .levels-section {
    padding: 90px 0;
  }

  .about-image-grid {
    margin-top: 42px;
  }

  .timeline-wrap::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .institution-cover-img {
    min-height: 230px;
    object-fit: cover;
    object-position: center top;
  }

  .institution-hero {
    padding: 66px 0 58px;
  }

  .institution-hero h1 {
    font-size: clamp(2.65rem, 15vw, 3.4rem);
  }

  .institution-hero .script-text {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .institution-hero p,
  .institution-description {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .institution-hero-actions,
  .institution-cta-actions {
    flex-direction: column;
  }

  .btn-institution-primary,
  .btn-institution-secondary,
  .institution-cta .btn-white,
  .institution-cta .btn-outline-white {
    width: 100%;
  }

  .about-institution,
  .trajectory-section,
  .identity-section,
  .levels-section {
    padding: 72px 0;
  }

  .about-highlight {
    padding: 22px;
    font-size: 1.25rem;
  }

  .about-image-grid {
    grid-template-columns: 1fr;
  }

  .about-image-main,
  .about-image-small {
    height: 280px;
    border-radius: 28px;
    transform: none;
  }

  .institution-title {
    font-size: clamp(1.8rem, 10vw, 2.35rem);
  }

  .timeline-card,
  .identity-card,
  .level-card {
    border-radius: 26px;
  }

  .institution-cta {
    padding: 78px 16px;
  }

  .institution-cta-box {
    padding: 46px 22px;
    border-radius: 30px;
  }

  .institution-cta-box h2 {
    font-size: clamp(1.75rem, 10vw, 2.45rem);
  }

  .institution-cta-box p {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

/* ==============================
   ESPECIALIDADES UEMA
============================== */

.specialties-heading {
  position: relative;
  padding: 50px 0 18px;
  background: #ffffff;
  overflow: hidden;
}

.specialties-heading-content {
  max-width: 980px;
  margin: 0 auto;
}

.specialties-heading .section-label {
  display: inline-block;
  margin-bottom: 18px;
  color: #FA1212;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.specialties-heading h2 {
  max-width: 900px;
  margin: 0 auto 26px;
  color: #151515;
  font-size: clamp(2.4rem, 5vw, 2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.specialties-heading p {
  max-width: 920px;
  margin: 0 auto;
  color: #5c5c5c;
  font-size: clamp(1rem, 1.35vw, 1rem);
  line-height: 1.6;
}

/* Sistema general */
.specialty-overlap {
  --card-start: 285px;
  --image-overlap: 44px;
  --people-width: 500px;
  --people-left: auto;
  --people-right: 24px;
  position: relative;
  width: 100%;
  padding: 45px 0 110px;
  background: #ffffff;
  overflow: hidden;
}

/* Primera card cerca del encabezado */
.specialties-heading + .specialty-overlap {
  padding-top: 0;
}

/* Separación entre cards */
.specialty-overlap + .specialty-overlap {
  padding-top: 35px;
}

/* Ciencias Sociales */
.specialty-overlap-socials {
  --card-start: 285px;
  --image-overlap: 42px;
  --people-width: 670px;
  --people-left: 28px;
  --people-right: auto;
}

/* Desarrollo de Software */
.specialty-overlap-software {
  --card-start: 285px;
  --image-overlap: 46px;
  --people-width: 540px;
  --people-left: auto;
  --people-right: 24px;
}

/* Escenario */
.specialty-overlap-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding-top: var(--card-start);
}

/* Imagen detrás de la card */
.specialty-overlap-people {
  position: absolute;
  top: 0;
  left: var(--people-left);
  right: var(--people-right);
  z-index: 1;
  width: min(var(--people-width), 58%);
  height: calc(var(--card-start) + var(--image-overlap));
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.specialty-overlap-socials .specialty-overlap-people {
  justify-content: flex-start;
}

.specialty-overlap-software .specialty-overlap-people {
  justify-content: flex-end;
}

.specialty-overlap-people img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.035));
}

.specialty-overlap-socials .specialty-overlap-people img {
  object-position: left bottom;
}

.specialty-overlap-software .specialty-overlap-people img {
  object-position: right bottom;
}

/* Card */
.specialty-overlap-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 68px 68px 66px;
  background: #ffffff;
  border: 1px solid rgba(21, 21, 21, 0.07);
  border-radius: 44px;
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.085),
    0 12px 32px rgba(0, 0, 0, 0.035);
}

/* Línea */
.specialty-overlap-line {
  display: block;
  width: 64px;
  height: 3px;
  margin-bottom: 28px;
  background: #FA1212;
  border-radius: 100px;
}

/* Número */
.specialty-overlap-number {
  display: block;
  margin-bottom: 10px;
  color: rgba(250, 18, 18, 0.16);
  font-size: clamp(4.6rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.09em;
}

/* Etiqueta */
.specialty-overlap-label {
  display: inline-block;
  margin: 18px 0 14px;
  color: #FA1212;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Título */
.specialty-overlap-card h3 {
  margin: 0 0 22px;
  color: #151515;
  font-size: clamp(2rem, 4vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

/* Descripción */
.specialty-overlap-card p {
  max-width: 850px;
  margin: 0 0 30px;
  color: #656565;
  font-size: 1rem;
  line-height: 1.6;
}

/* Tags */
.specialty-overlap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.specialty-overlap-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  color: #FA1212;
  background: rgba(250, 18, 18, 0.055);
  border: 1px solid rgba(250, 18, 18, 0.15);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Tablet */
@media (max-width: 991px) {
  .specialties-heading {
    padding: 90px 0 16px;
  }

  .specialties-heading h2 {
    font-size: clamp(2.2rem, 7vw, 3.3rem);
  }

  .specialty-overlap {
    --card-start: 250px;
    --image-overlap: 38px;
    padding: 35px 0 95px;
  }

  .specialties-heading + .specialty-overlap {
    padding-top: 0;
  }

  .specialty-overlap-stage {
    width: 94%;
  }

  .specialty-overlap-socials {
    --people-width: 500px;
    --people-left: 18px;
    --people-right: auto;
  }

  .specialty-overlap-software {
    --people-width: 520px;
    --people-left: auto;
    --people-right: 18px;
  }

  .specialty-overlap-people {
    width: min(var(--people-width), 62%);
  }

  .specialty-overlap-card {
    padding: 56px 44px 54px;
    border-radius: 36px;
    box-shadow:
      0 32px 75px rgba(0, 0, 0, 0.08),
      0 10px 28px rgba(0, 0, 0, 0.03);
  }

  .specialty-overlap-card p {
    max-width: 100%;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .specialties-heading {
    padding: 72px 18px 12px;
  }

  .specialties-heading .section-label {
    margin-bottom: 14px;
    font-size: 0.7rem;
  }

  .specialties-heading h2 {
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 10vw, 1.5rem);
    line-height: 1.04;
  }

  .specialties-heading p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .specialty-overlap {
    --card-start: 185px;
    --image-overlap: 28px;
    padding: 28px 0 75px;
  }

  .specialties-heading + .specialty-overlap {
    padding-top: 0;
  }

  .specialty-overlap + .specialty-overlap {
    padding-top: 20px;
  }

  .specialty-overlap-socials,
  .specialty-overlap-software {
    --people-width: 430px;
    --people-left: 50%;
    --people-right: auto;
  }

  .specialty-overlap-stage {
    width: calc(100% - 16px);
  }

  /* Ambas imágenes centradas */
  .specialty-overlap-people {
    left: 50%;
    right: auto;
    width: min(88%, var(--people-width));
    translate: -50% 0;
    justify-content: center;
  }

  .specialty-overlap-socials .specialty-overlap-people,
  .specialty-overlap-software .specialty-overlap-people {
    justify-content: center;
  }

  .specialty-overlap-people img,
  .specialty-overlap-socials .specialty-overlap-people img,
  .specialty-overlap-software .specialty-overlap-people img {
    object-position: center bottom;
  }

  .specialty-overlap-card {
    padding: 40px 22px 42px;
    border-radius: 28px;
    box-shadow:
      0 24px 55px rgba(0, 0, 0, 0.075),
      0 8px 20px rgba(0, 0, 0, 0.025);
  }

  .specialty-overlap-line {
    width: 46px;
    height: 2px;
    margin-bottom: 22px;
  }

  .specialty-overlap-number {
    margin-bottom: 8px;
    font-size: 3.5rem;
  }

  .specialty-overlap-label {
    margin: 14px 0 10px;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }

  .specialty-overlap-card h3 {
    margin-bottom: 18px;
    font-size: 1.65rem;
    line-height: 1.05;
  }

  .specialty-overlap-card p {
    margin-bottom: 24px;
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .specialty-overlap-tags {
    gap: 8px;
  }

  .specialty-overlap-tags span {
    padding: 8px 12px;
    font-size: 0.73rem;
  }
}

/* Móviles pequeños */
@media (max-width: 390px) {
  .specialty-overlap {
    --card-start: 165px;
    --image-overlap: 24px;
  }

  .specialty-overlap-socials,
  .specialty-overlap-software {
    --people-width: 390px;
  }

  .specialty-overlap-stage {
    width: calc(100% - 12px);
  }

  .specialty-overlap-people {
    width: 92%;
  }

  .specialty-overlap-card {
    padding: 36px 18px 38px;
    border-radius: 25px;
  }

  .specialty-overlap-card h3 {
    font-size: 1.48rem;
  }

  .specialty-overlap-card p {
    font-size: 0.82rem;
  }

  .specialty-overlap-tags span {
    padding: 7px 10px;
    font-size: 0.69rem;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .specialty-overlap-people,
  .specialty-overlap-card {
    transition: none !important;
  }
}