html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Ubuntu', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
  --color-celeste: #7ECCE0;
  --color-gris-oscuro: #A9ABAE;
  --color-gris-claro: #E6E7E8;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* ========== Mobile (celular) ========== */
@media (max-width: 575.98px) {
  body {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer {
    line-height: 1.4;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  }

  .hero-bar {
    padding-top: 0.75rem;
  }

  .hero-bar-inner {
    padding: 0.25rem 1rem;
  }

  .hero-logo-img {
    height: 52px;
  }

  .hero-bar .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .home-hero {
    min-height: 190px;
    padding-bottom: 2rem;
  }

  .home-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .home-veterans-section .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .regreso-paragraph {
    font-size: 1rem;
  }

  .regreso-btn {
    min-width: 100%;
  }

  .contact-text {
    font-size: 1rem;
  }

  .contact-form .contact-input {
    font-size: 16px; /* evita zoom en iOS */
  }

  .btn-pill-gray {
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    min-height: 44px; /* touch target */
  }

  .home-ojos-band {
    padding: 0.65rem 0;
  }

  .home-ojos-carousel-wrap {
    margin-top: -2.7rem;
    margin-bottom: 0;
  }

  .home-ojos-swiper.swiper {
    padding-top: 0.45rem;
  }

  .hero-nav-dropdown {
    left: 0;
    right: 0;
    min-width: 100%;
    margin-right: 0;
  }
}

.footer {
  position: relative;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;

  background: var(--color-gris-oscuro); /* gris oscuro de la paleta */
  color: #fff;                          /* texto blanco */
}

.footer .container {
  text-align: center;
}

footer.border-top {
  border-top: none;                     /* anula el borde gris claro de Bootstrap */
}

footer.text-muted {
  color: #fff !important;               /* por si sigue puesta la clase text-muted */
}

.main-navbar {
  font-size: 0.95rem;
  border-bottom: 3px solid var(--color-celeste);
}

.navbar-brand {
  font-size: 1rem;
  line-height: 1.1;
  color: var(--color-celeste);
}

.navbar-brand:hover {
  color: var(--color-celeste);
}

.navbar-subtitle {
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: none;
  color: var(--color-gris-oscuro);
}

.navbar-nav .nav-link {
  color: #000;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
  color: var(--color-celeste);
}

.disabled-link {
  opacity: 0.7;
  cursor: default;
  color: var(--color-gris-oscuro);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: #3c8da0;
  border-color: #3c8da0;
}

.btn-outline-primary {
  color: var(--color-celeste);
  border-color: var(--color-celeste);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--color-celeste);
  border-color: var(--color-celeste);
}

.home-hero {
  background: url("../img/portada.jpg") center/cover no-repeat;
  min-height: 450px;   
  padding-bottom: 3rem; 
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn 0.9s ease-out forwards;
}
@keyframes heroFadeIn {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.hero-bar {
  background: transparent;        /* la barra completa sin color */
  padding-top: 1.25rem;          /* separación desde el borde superior de la imagen */
}

.hero-bar-inner {
  position: relative;
  background: var(--color-gris-oscuro);  
  padding: 0.05rem 1.5rem;              
  margin-inline: auto;                   
  max-width: 960px;                      
}

.hero-bar .nav-link {
  position: relative;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

.hero-bar .nav-link:hover {
  color: #fff;
  opacity: 0.85;
}

/* subrayado animado en hover */
.hero-bar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.25s ease;
}

.hero-bar .nav-link:hover::after,
.hero-bar .nav-link:focus::after {
  width: 100%;
}

.hero-logo-img {
  height: 72px;                          /* logo grande */
  /* width: auto; */
  margin-top: -0.25rem;                  /* compensan para que la barra no engorde */
  margin-bottom: -0.25rem;
}

.navbar-toggler-light .navbar-toggler-icon {
  filter: invert(1);
}

.hero-nav-more-wrap {
  position: static;
}

.hero-nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  margin-top: 0;
  margin-right: 0;
  background: var(--color-gris-claro);
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.5rem;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1050;
}

.hero-nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-nav-dropdown-item {
  display: block;
  color: #333;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 0.35rem;
  transition: background 0.2s ease;
}

.hero-nav-dropdown-item:hover {
  background: rgba(126, 204, 224, 0.3);
  color: #333;
}

.hero-nav-plus.hero-nav-expanded::after {
  width: 100%;
}

.home-hero .home-kicker {
  color: rgba(255, 255, 255, 0.9);
}

.home-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.home-kicker {
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-gris-oscuro);
}

.home-cta-btn {
  padding-inline: 2rem;
}

.home-contact-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--color-celeste);
}

.home-logo-placeholder {
  display: flex;
  justify-content: flex-end;
}

.logo-placeholder {
  width: 120px;
  height: 60px;
  background: var(--color-gris-claro);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gris-oscuro);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.home-veterans-section {
  background: transparent;
}

.home-veterans-carousel-wrap {
  position: relative;
  padding: 0 0rem;
}

.home-veterans-swiper.swiper {
  width: 100%;
}

.home-veterans-swiper .swiper-slide {
  height: auto;
}

.veteran-card {
  background: transparent;    /* sin fondo */
  border: none;              /* sin marco */
  padding: 0;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.veteran-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.veteran-photo {
  width: 100%;
  aspect-ratio: 3 / 4;       /* proporción rectangular (altura mayor que ancho) */
  background: var(--color-gris-oscuro);   /* placeholder mientras no haya img */
  border-radius: 0;          /* rectángulo, no circular */
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.veteran-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.veteran-name {
  font-size: 0.9rem;
  display: block;
  color: #000;
}

.home-veterans-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0px solid #cfcfcf;
  border-radius: 0;
  background: #f2f2f2;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-veterans-btn:hover {
  background: #e9e9e9;
  border-color: #bdbdbd;
}

.home-veterans-btn-prev {
  left: -10px;
}

.home-veterans-btn-next {
  right: -10px;
}

.home-veterans-btn-prev::before,
.home-veterans-btn-next::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-style: solid;
  border-color: #4a4a4a;
  border-width: 0 1.5px 1.5px 0;
}

.home-veterans-btn-prev::before {
  transform: rotate(135deg);
  margin-left: 1px;
}

.home-veterans-btn-next::before {
  transform: rotate(-45deg);
  margin-right: 1px;
}

.home-middle-bg {
  background-image: url('../img/ICONO MALVINAS GRIS.png');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 95%;
}

.home-links-section {
  background: transparent;
  position: relative;
  padding-top: 4rem;
  /* opcional: mapa tenue de fondo */
  /* background-image: url('../img/mapa-malvinas-fondo.png'); background-repeat: no-repeat; background-position: bottom center; background-size: 60% auto; opacity: 0.1; */
}

.home-links-quick-grid {
  display: grid;
  gap: clamp(0.5rem, 1.5vw, 1.15rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
}

.home-link-tile {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 150px;
  background: var(--color-celeste);
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0;
  border: none;
  padding: 1rem;
  min-width: 200px;
  max-width: 200px;
  margin: 0;
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-link-tile:hover {
  text-decoration: none;
  background: #3c8da0;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  background-color: rgba(255,255,255,0.06);
}

.home-link-tile:hover .home-link-icon {
  transform: translateY(-6px) scale(1.03);
}

.home-link-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: -120px auto 0.5rem;
  transition: transform 0.2s ease;
}

.home-link-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  font-size: 1.25rem;
  text-align: center;
  line-height: 1.2;
  color: #333;
  z-index: 1;
  font-weight: 500;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.5rem;
}

.section-title {
  color: var(--color-celeste);
  font-weight: 700;
}

.btn-pill-gray {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gris-oscuro);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.75rem;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-pill-gray:hover {
  background: var(--color-gris-claro);
  color: #333;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.btn-pill-celeste {
  background: var(--color-celeste);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-pill-celeste:hover {
  background: #3c8da0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-pill-celeste.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

.btn-outline-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Paginación unificada - estilo pill del proyecto */
.pagination-pill .pagination {
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

.pagination-pill .page-item {
  margin: 0;
}

.pagination-pill .page-item:not(:first-child) .page-link {
  margin-left: 0;
}

.pagination-pill .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-gris-claro);
  background-color: #f8f8f8;
  color: var(--color-gris-oscuro);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pagination-pill .page-link:hover {
  background-color: rgba(126, 204, 224, 0.15);
  border-color: var(--color-celeste);
  color: #000;
}

.pagination-pill .page-item.active .page-link {
  background-color: var(--color-celeste);
  border-color: var(--color-celeste);
  color: #000;
}

.pagination-pill .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: default;
  background-color: #f0f0f0;
  pointer-events: none;
}

/* Malvinas, el regreso */
.home-regreso-section {
  background: transparent;
}

.regreso-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;      /* ocupa todo el ancho del .container de Bootstrap */
  gap: 2rem;
}

.regreso-left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}

.regreso-right {
  flex: 0 0 auto;
  text-align: right;
}

.regreso-logo {
  max-width: 200px;
  height: auto;
  max-height: 20rem;
  display: block;
  margin-right: 0.25rem;
}

.regreso-divider {
  width: 1px;
  min-height: 65px;
  background: var(--color-gris-oscuro);
  margin: 0 0.25rem;
}

.regreso-btn {
  flex-shrink: 0;
  margin-left: 3rem;
  padding: 0.9rem 2.5rem;
  font-size: 1.05rem;
  min-width: 220px;
}

.regreso-paragraph {
  margin: 0 0.25rem;
  max-width: 600px;
  color: #333;
  font-size: 1.3rem;
  line-height: 1.5;
  text-align: left;
  flex-grow: 1;
  margin-right: 1rem;
}

/* Malvinas con ojos de San Luis — carrusel infinito (Swiper);
   mismo ancho que .container > .regreso-content (logo ↔ botón crónicas). */
.home-ojos-section {
  overflow: visible;
}

.home-ojos-header {
  text-align: left;
  padding-bottom: 3.25rem;
}

.home-ojos-band {
  position: relative;
  background: #e8e9eb;
  margin-top: 0.5rem;
  /* Franja gris más baja; el carrusel sobresale arriba y abajo */
  padding: 0.9rem 0;
  overflow: visible;
}

.home-ojos-watermark {
  position: absolute;
  inset: 0;
  background-image: url('../img/ICONO MALVINAS GRIS.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(40vw, 280px);
  opacity: 0.1;
  pointer-events: none;
}

.home-ojos-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  /* Sobresale por arriba de la franja gris (el fondo gris no se mueve) */
  margin-top: -3rem;
  margin-bottom: 2rem;
  z-index: 2;
  /* Pausa de autoplay con hover (Swiper pauseOnMouseEnter) */
  cursor: grab;
}

.home-ojos-carousel-wrap:active {
  cursor: grabbing;
}

.home-ojos-swiper.swiper {
  width: 100%;
  /* Poco aire bajo el borde superior del wrap; el cuerpo del carrusel queda más arriba */
  padding: 0.55rem 0 0;
  margin: 0;
  position: relative;
}

.home-ojos-slide-inner {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #dcdedf;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-ojos-slide-inner:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.home-ojos-slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-ojos-slide-inner:hover img {
  transform: scale(1.04);
}

.home-ojos-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0px solid #cfcfcf;
  border-radius: 0;
  background: #f2f2f2;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-ojos-btn:hover {
  background: #e9e9e9;
  border-color: #bdbdbd;
}

.home-ojos-btn-prev {
  left: -10px;
}

.home-ojos-btn-next {
  right: -10px;
}

.home-ojos-btn-prev::before,
.home-ojos-btn-next::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-style: solid;
  border-color: #4a4a4a;
  border-width: 0 1.5px 1.5px 0;
}

.home-ojos-btn-prev::before {
  transform: rotate(135deg);
  margin-left: 1px;
}

.home-ojos-btn-next::before {
  transform: rotate(-45deg);
  margin-right: 1px;
}

.home-ojos-empty {
  position: relative;
  z-index: 1;
  text-align: center;
}

.home-videos-preview-section {
  background: #fff;
  position: relative;
  overflow: visible;
}

.home-videos-preview-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/ICONO MALVINAS GRIS.png');
  background-repeat: no-repeat;
  background-position: right -60px top;
  background-size: min(28vw, 250px);
  opacity: 0.08;
  pointer-events: none;
}

.home-videos-preview-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  background: #fff;
  box-shadow: 0 2px 14px rgba(15, 23, 32, 0.06);
}

.home-videos-preview-left {
  flex: 1 1 auto;
  max-width: 760px;
}

.home-videos-preview-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.home-videos-preview-kicker {
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.home-videos-preview-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-videos-preview-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #77838d;
  line-height: 1;
  margin-top: 0;
  transform: translateY(-1px);
}

.home-videos-preview-label-mark {
  color: var(--color-celeste);
  margin-right: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.home-videos-preview-text {
  color: #4e5257;
  line-height: 1.55;
  max-width: 68ch;
}

.home-videos-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4f555b;
  background: #f1f2f3;
  border: 1px solid #e1e3e6;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.home-videos-preview-chip i {
  color: var(--color-celeste);
}

.home-contact-section {
  background: #fff;
}

.contact-text {
  font-size: 1.3rem;
  line-height: 1.4;
  color: #333;
}

.contact-form .contact-input {
  border-radius: 999px;
  border: 1px solid #999;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

.contact-form textarea.contact-input {
  border-radius: 999px; /* para que quede “píldora” como en el diseño */
  resize: vertical;
}

.contact-submit {
  padding-inline: 2.5rem;
}

/* El diálogo se adapta al contenido, no a todo el ancho */
.home-ojos-modal .modal-dialog {
  width: fit-content;
  max-width: 95vw;
  margin: 1rem auto;
}

/* Sin fondo oscuro "caja" alrededor */
.home-ojos-modal-content {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: fit-content;
}

/* Flechas anterior / siguiente dentro del modal (misma idea que galería) */
.home-ojos-modal-controls {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1060;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  pointer-events: none;
}

.home-ojos-modal-nav {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  pointer-events: auto;
}

.home-ojos-modal-nav:hover {
  background: #ffffff;
  border-color: #bdbdbd;
}

.home-ojos-modal-prev::before,
.home-ojos-modal-next::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-style: solid;
  border-color: #2f2f2f;
  border-width: 0 2px 2px 0;
}

.home-ojos-modal-prev::before {
  transform: rotate(135deg);
  margin-left: 1px;
}

.home-ojos-modal-next::before {
  transform: rotate(-45deg);
  margin-right: 1px;
}

/* La imagen define el tamaño final */
.home-ojos-modal-img {
  display: block;
  width: auto;      
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}

.home-ojos-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1065;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.55);
  opacity: 1;
  filter: invert(1) grayscale(1);
}

.home-ojos-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.home-ojos-modal .modal-backdrop,
.modal-backdrop.show {
  opacity: 0.75;
}

.photo-modal .modal-dialog {
  width: fit-content;
  max-width: 95vw;
  margin: 1rem auto;
}
.photo-modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  width: fit-content;
  position: relative;
}
.photo-modal-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}
.photo-modal-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 10;
}

/* Responsive: Malvinas el regreso */
@media (max-width: 767px) {
  .regreso-content {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    align-items: center;
  }

  .regreso-left {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 0;
  }

  .regreso-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .regreso-logo {
    margin-right: 0;
    max-height: 8rem;
  }

  .regreso-divider {
    width: 80%;
    min-width: 100px;
    min-height: 1px;
    margin: 1rem 0;
  }

  .regreso-paragraph {
    margin: 0;
    max-width: 100%;
    text-align: center;
  }

  .regreso-btn {
    margin-left: 0;
    width: 100%;
    max-width: 280px;
  }

  .home-ojos-btn {
    width: 18px;
    height: 18px;
  }

  .home-veterans-btn {
    width: 18px;
    height: 18px;
  }

  .home-ojos-btn-prev {
    left: -8px;
  }

  .home-ojos-btn-next {
    right: -8px;
  }

  .home-ojos-modal-controls {
    padding: 0 6px;
  }

  .home-veterans-btn-prev {
    left: -8px;
  }

  .home-veterans-btn-next {
    right: -8px;
  }

  .home-videos-preview-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-videos-preview-right {
    width: 100%;
    align-items: flex-start;
  }

  .home-videos-preview-section::before {
    background-position: center;
    background-size: min(52vw, 220px);
  }
}

/* Responsive: acceso rápido */
@media (max-width: 767px) {
  .home-links-quick-grid {
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    justify-items: center;
  }

  /* Centrar el quinto ítem cuando la última fila tiene uno solo (5 accesos en 2 columnas). */
  .home-link-tile:nth-child(5):last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .home-link-tile {
    width: 148px;
    height: 132px;
    min-width: 148px;
    max-width: 148px;
    padding: 0.75rem;
  }

  .home-link-icon {
    width: 90px;
    height: 90px;
    max-width: 90px;
    min-width: unset;
    margin-top: -1.65rem;
    margin-bottom: 0.25rem;
  }

  .home-link-label {
    position: relative;
    bottom: auto;
    margin-top: auto;
    font-size: 0.85rem;
    line-height: 1.15;
    padding: 0.25rem;
  }

  .home-links-section {
    padding-top: 3rem;
    overflow: visible;
  }
}

/* Celulares muy pequeños: iconos más compactos para evitar superposición */
@media (max-width: 575.98px) {
  .home-links-quick-grid {
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .home-link-tile {
    width: 140px;
    height: 126px;
    min-width: 140px;
    max-width: 140px;
  }

  .home-link-icon {
    width: 80px;
    height: 80px;
    max-width: 80px;
    margin-top: -1.15rem;
  }

  .home-link-label {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .home-link-tile {
    width: 150px;
    height: 113px;
    min-width: 150px;
    max-width: 150px;
  }

  .home-link-icon {
    width: 120%;
    max-width: 200px;
    min-width: 150px;
    margin-top: -3.5rem;
  }
}

/* Modal Centros */
.centros-modal .modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.centros-modal-header {
  background-color: var(--color-celeste);
  color: #000;
  padding: 1rem 1.5rem;
}

.centros-modal-header .modal-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1rem;
}

.centros-modal-body {
  padding: 1.5rem;
}

.centros-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.centro-card {
  background-color: #f9f9f9;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-celeste);
}

.centro-card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.centro-card-detail {
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
  color: #444;
}

.centro-card-detail span {
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .centros-modal-body {
    padding: 1.25rem 1rem;
  }

  .centro-card {
    padding: 0.75rem 0.9rem;
  }
}

/* Modal escuelas malvinizadoras: iconos Bootstrap Icons */
.escuelas-malvinizadoras-modal .modal-title .bi {
  color: #000;
  opacity: 0.85;
  font-size: 1.15rem;
}

.escuelas-malvinizadoras-modal .escuela-modal-ic {
  color: var(--color-celeste);
  font-size: 1rem;
  vertical-align: -0.15em;
  margin-right: 0.2rem;
}

.escuelas-malvinizadoras-modal .centro-card-title .bi {
  color: var(--color-celeste);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.escuelas-malvinizadoras-modal .escuela-modal-section {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #333;
}

.escuelas-malvinizadoras-modal .escuela-modal-section .bi {
  color: var(--color-celeste);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.escuelas-malvinizadoras-modal .escuela-modal-section-label {
  font-weight: 600;
}

.escuelas-malvinizadoras-modal .escuela-modal-mail-link {
  color: #2a7f94;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.escuelas-malvinizadoras-modal .escuela-modal-mail-link:hover {
  color: #1e5c6b;
}

.escuelas-malvinizadoras-modal .escuela-modal-mail-link .bi {
  margin-right: 0;
  vertical-align: -0.1em;
}
