/* ======================
   STYLE GLOBAL (INDEX + NOTA1)
   CSS: /css/style.css
   IMG: /img/  (al mismo nivel que los HTML)
   ====================== */

:root {
  --bg: #fff;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --shadow: 0 18px 45px rgba(0, 0, 0, .14);
  --card: #fff;
  --accent: #7b8f4c;
  --max: 1100px;

  --blue: #004e89;
  --heroRadius: 8px;

  /* fondo “letterbox” cuando usamos contain */
  --containBg: #efeae6;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* ======================
   HEADER + MENU
   ====================== */

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar__inner {
  padding: 22px 0;
  display: flex;
  align-items: flex-end;
  gap: 26px;
}

/* Logo responsive */
.brand {
  width: min(520px, 100%);
  aspect-ratio: 1200/300;
  height: auto;
}

.brand img {
  height: 100px;   /* probá entre 30px y 50px según te guste */
  width: auto;
}

/* Menu */
.menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.menu a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .2px;
  white-space: nowrap;
}

.menu a:hover {
  opacity: .75;
}

.menu a.active {
  color: #6F4CA0;
  font-weight: 700;
}

.divider {
  height: 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0));
}

/* Tablet */
@media (max-width:920px) {
  .topbar__inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .menu {
    width: 100%;
    justify-content: space-between;
    padding: 4px 6px 0;
  }

  .menu a {
    font-size: 18px;
  }
}

/* Mobile menu */
@media (max-width:600px) {
  .wrap {
    padding: 0 14px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-bottom: 0;
  }

  .menu a {
    font-size: 16px;
  }
}

@media (max-width:300px) {
  .wrap {
    padding: 0 10px;
  }

  .menu a {
    font-size: 14px;
  }
}

/* ======================
   INDEX: CARRUSEL (UNIFICADO)
   Imagen arriba + card abajo en TODOS los tamaños
   ====================== */

.carousel {
  position: relative;
  background: #efeae6;
  overflow: hidden;
}

.carousel input[type="radio"] {
  position: absolute;
  left: -9999px;
}

/* control único del alto de la imagen (responsive) */
.viewport {
  width: 100%;
  position: relative;
  height: auto;
  --imgH: clamp(260px, 55vh, 620px);
}

.track {
  display: flex;
  width: 500%;
  transition: transform .6s ease;
  height: auto;
}

/* 5 slides -> 20% cada slide */
.slide {
  position: relative;
  flex: 0 0 20%;
  height: auto;
  display: flex;
  flex-direction: column;

  /* apagamos el background del desktop */
  background-image: none !important;
  background-color: white;
}

/* ✅ IMAGEN SIEMPRE ARRIBA (sin recorte) */
.slide::before {
  content: "";
  display: block;
  width: 100%;
  height: var(--imgH);

  background-image: var(--bgimg);
  background-size: contain;
  /* ✅ NO recorta */
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #fff;
}

/* overlay desktop OFF */
.slide::after {
  display: none;
}

/* ✅ CARD SIEMPRE ABAJO */
.slide .card {
  position: relative;
  left: auto;
  top: auto;
  transform: none;

  width: min(920px, calc(100% - 36px));
  margin: 14px auto 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 2px;
  box-shadow: var(--shadow);
  padding: 34px 32px;
  z-index: 2;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--blue);
}

.card p {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--blue);
  font-size: 16px;
}

.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(123, 143, 76, .28);
}

.btn:hover {
  opacity: .9;
}

/* Flechas */
.arrow {
  position: absolute;

  /* centradas sobre la imagen */
  top: calc(var(--imgH) / 2);
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .12);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  user-select: none;
  backdrop-filter: blur(4px);
}

.arrow:hover {
  background: rgba(255, 255, 255, .8);
}

.arrow.left {
  left: 18px;
}

.arrow.right {
  right: 18px;
}

.arrow span {
  font-size: 34px;
  line-height: 1;
  color: rgba(0, 0, 0, .55);
  transform: translateY(-2px);
}

.navlabel {
  display: none;
}

/* Dots */
.dots {
  position: absolute;
  right: 22px;
  top: 14px;
  display: flex;
  gap: 10px;
  z-index: 7;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

/* ✅ Tus rutas (desde /css/style.css) */
.s1 {
  --bgimg: url("../img/slides/NOTA1.png");
}

.s2 {
  --bgimg: url("../img/slides/NOTA2.png");
}

.s3 {
  --bgimg: url("../img/slides/NOTA3.png");
}

.s4 {
  --bgimg: url("../img/slides/NOTA4.png");
}

/* Slide 5: sin cambiar rutas existentes -> usamos la misma imagen del slide 4 */
.s5 {
  --bgimg: url("../img/slides/ospedyc.png");
}

/* Transforms (radios) */
#c1:checked~.viewport .track {
  transform: translateX(0%);
}

#c2:checked~.viewport .track {
  transform: translateX(-20%);
}

#c3:checked~.viewport .track {
  transform: translateX(-40%);
}

#c4:checked~.viewport .track {
  transform: translateX(-60%);
}

#c5:checked~.viewport .track {
  transform: translateX(-80%);
}

#c1:checked~.viewport .dots label[for="c1"],
#c2:checked~.viewport .dots label[for="c2"],
#c3:checked~.viewport .dots label[for="c3"],
#c4:checked~.viewport .dots label[for="c4"],
#c5:checked~.viewport .dots label[for="c5"] {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .95);
}

/* Flechas activas por slide */
#c1:checked~.viewport .prev-1,
#c1:checked~.viewport .next-1 {
  display: flex;
}

#c2:checked~.viewport .prev-2,
#c2:checked~.viewport .next-2 {
  display: flex;
}

#c3:checked~.viewport .prev-3,
#c3:checked~.viewport .next-3 {
  display: flex;
}

#c4:checked~.viewport .prev-4,
#c4:checked~.viewport .next-4 {
  display: flex;
}

#c5:checked~.viewport .prev-5,
#c5:checked~.viewport .next-5 {
  display: flex;
}

/* Ajustes finos mobile */
@media (max-width:600px) {
  .viewport {
    --imgH: clamp(220px, 42vh, 420px);
  }

  .slide .card {
    width: calc(100% - 24px);
    padding: 22px 18px;
    margin: 12px auto 16px;
  }

  .dots {
    top: 10px;
    right: 14px;
  }

  .arrow.left {
    left: 12px;
  }

  .arrow.right {
    right: 12px;
  }
}

@media (max-width:400px) {
  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

@media (max-width:250px) {
  .viewport {
    --imgH: clamp(180px, 50vh, 340px);
  }

  .card h3 {
    font-size: 14px;
  }

  .card p {
    font-size: 12px;
  }

  .btn {
    font-size: 12px;
    padding: 9px 14px;
  }
}

@media (max-width:200px) {
  .viewport {
    --imgH: clamp(160px, 55vh, 320px);
  }
}

/* ======================
   NOTA1: HERO (slide único)
   ====================== */

.hero {
  margin: 18px 0 0;
}

.hero__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  max-height: 70vh;
  border-radius: var(--heroRadius);
  overflow: hidden;
  position: relative;

  background-image: var(--bgimg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay sutil opcional */
.hero__img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ✅ NOTA1 MOBILE: JPG COMPLETO (contain) */
@media (max-width:600px) {
  .hero__img {
    aspect-ratio: auto;
    max-height: none;
    min-height: clamp(220px, 40vh, 420px);

    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

@media (max-width:250px) {
  .hero__img {
    min-height: clamp(180px, 50vh, 340px);
  }
}

@media (max-width:200px) {
  .hero__img {
    min-height: clamp(160px, 55vh, 320px);
  }
}

.news {
  padding: 22px 0 10px;
}

.news__title {
  margin: 0 0 12px;
  text-align: center;
  color: var(--blue);
  letter-spacing: .4px;
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
}

.news__text {
  margin: 0 auto;
  max-width: 860px;
  text-align: left;
  color: var(--blue);
  line-height: 1.65;
  font-size: clamp(14px, 2.2vw, 17px);
}

@media (max-width:400px) {
  .news__text {
    font-size: 13px;
  }
}

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

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 22px;
}

.footer-compact {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 14px;
  text-align: center;
}

.footer-compact p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .2px;
}

.footer-compact a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
}

@media (max-width:600px) {
  .footer-compact {
    padding: 6px 12px;
  }

  .footer-compact p {
    font-size: 13px;
  }
}

@media (max-width:250px) {
  .footer-compact p {
    font-size: 12px;
  }
}

/* ===== Autor / entrevistada ===== */
.author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.author__photo {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
}

.author__body {
  flex: 1;
  min-width: 0;
}

.author__name {
  margin-top: 0;
}

/* Mobile: apila imagen arriba y texto abajo */
@media (max-width:700px) {
  .author {
    flex-direction: column;
    align-items: flex-start;
  }

  .author__photo {
    width: 96px;
    height: 96px;
  }
}