@import 'fonts.css';

:root {
  color-scheme: dark;
  --bg: #08120e;
  --surface: #11231d;
  --surface-strong: #162f28;
  --accent: #c9ab6b;
  --accent-soft: #e6d0a2;
  --text: #f3f0e8;
  --muted: #a7b5a0;
  --border: rgba(201, 171, 107, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Im Fell Types', serif;
  background: radial-gradient(circle at top, rgba(201, 171, 107, 0.12), transparent 32%),
              linear-gradient(180deg, #0d1812 0%, #08120e 40%, #070d0b 100%);
  color: var(--text);
  text-align: justify;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: relative;
  padding: 28px clamp(20px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.familias-link {
  position: absolute;
  top: 24px;
  right: clamp(20px, 4vw, 40px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(201, 151, 69, 0.95);
  color: #1f1a0e;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 1;
}

.familias-link:hover {
  background: #e4b231;
  color: #111;
}

@media (max-width: 768px) {
  .familias-link {
    position: static;
    margin-bottom: 16px;
  }
}

.brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.logo-ring {
  width: 150px;
  height: 150px;
  border: 3px solid var(--accent);
  border-radius: 999px;
  position: relative;
  background-image: url("images/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}



.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  font-size: 0.75rem;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  font-family: 'aniron';
  font-size: 1.35rem;
  padding-bottom: 2px;
  overflow-x: auto;
}

.site-nav::-webkit-scrollbar {
  height: 8px;
}

.site-nav::-webkit-scrollbar-thumb {
  background: rgba(201, 171, 107, 0.35);
  border-radius: 999px;
}

/* Con 7 enlaces, en portátiles de ancho medio (1280-1440px) el nav no cabía
   entero y quedaba cortado sin pista de que hacía falta scroll. Se reduce
   un poco su tamaño en ese rango para que quepa completo. */
@media (max-width: 1500px) {
  .site-nav {
    font-size: 1.05rem;
    gap: 6px;
  }

  .site-nav .nav-link {
    padding: 8px 11px;
  }
}

.site-nav .nav-link {
  white-space: nowrap;
  padding: 10px 14px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(201, 171, 107, 0.13);
  color: var(--accent-soft);
}

.nav-link:focus-visible,
.button:focus-visible,
.back-button:focus-visible,
.download-btn:focus-visible,
.familias-link:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

main {
  padding: 0 clamp(20px, 4vw, 40px) 40px;
}

/* PÁRRAFOS */
.p1 {
    font-family: 'aniron';
    font-size: 1rem;
    line-height: 1.6;
}

.p2 {
    font-family: 'tolkien';
    font-size: 1.5rem;
    font-style: italic;
    text-align: justify;
}

.p3 {
    font-family: 'Half Elven';
    font-size: 1.5rem;
    text-align: justify;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0 20px;
}

.hero-copy {
  max-width: 720px;
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 16px;
  background: rgba(201, 151, 69, 0.95);
  border-radius: 999px;
  color: #08120e;
  font-weight: 600;
  text-decoration: none;  /* quita el subrayado */
}

.hero h2 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

h6 {
  font-family: 'Tengwar Annatar', serif;
  font-size: 2rem;
  font-style: italic;
}

.hero p {
  margin: 0 0 26px;
  max-width: 680px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;        /* separación entre botones */
  max-width: 500px;
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 171, 107, 0.88), rgba(197, 151, 69, 0.95));
  color: #08120e;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  flex: 1 1 calc(50% - 6px);
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: rgba(32, 60, 44, 0.95);
  color: #ffffff;
  border: 2px solid var(--accent);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-figure {
  display: grid;
  place-items: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 171, 107, 0.88), rgba(197, 151, 69, 0.95));
  color: #08120e;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
  margin-bottom: 25px; /* ajusta el valor a tu gusto */
  margin-top: 25px; /* ajusta el valor a tu gusto */
}

.back-button:hover {
  background: rgba(32, 60, 44, 0.95);
  color: #ffffff;
  border: 2px solid var(--accent);
}

.forest-card {
  width: 100%;
  max-width: 420px;
  min-height: 320px;
  border-radius: 32px;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(220, 188, 122, 0.18), transparent 42%),
              linear-gradient(180deg, #1c3a29 0%, #0c170f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  position: relative;
}

.forest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 24%),
                    radial-gradient(circle at bottom right, rgba(201, 171, 107, 0.12), transparent 18%);
  opacity: 0.9;
  border-radius: inherit;
}

.forest-card img.hero-poster {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}

.forest-card span {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  color: var(--accent-soft);
  font-weight: 700;
}

.forest-card-h {
  width: 100%;
  min-height: 320px;
  border-radius: 32px;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(220, 188, 122, 0.18), transparent 42%),
              linear-gradient(180deg, #1c3a29 0%, #0c170f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  position: relative;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.feature-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.feature-card p {
  margin: 14px 0 0;
  line-height: 1.8;
  color: var(--muted);
}

.principios-table th,
.principios-table td,
.principios-table th h3 {
  color: var(--muted);
}


.quote-panel-yellow {
  position: relative;
  padding: 80px 30px 60px;
  border-radius: 24px;
  background: rgba(201, 151, 69, 0.95);
  border: 1px solid rgba(201, 171, 67, 0.2);
  color: var(--text);
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.quote-panel-yellow p {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(32, 60, 44, 0.95) !important;
  font-weight: bold;
}

.quote-panel-yellow .quote-author {
  display: block;
  margin-top: 1rem;
  color: #ffffff;
  font-family: 'Bilbo Hand', serif;
  font-size: 2rem;
  font-weight: bold;
}

.quote-panel-yellow .quote-book {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(32, 60, 44, 0.95);
  color: #ffffff;
  font-weight: 600;
}

/* Center embedded forms on resource page and make responsive */
.form-embed iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 960px;
}

@media (max-width: 1050px) {
  .form-embed iframe {
    width: 100%;
    height: 1200px; /* adjust height for small screens */
  }
}

/* Resource gallery styles */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}
.resource-item {
  text-align: center;
}
.resource-item .forest-card {
  min-height: 160px;
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-item:hover .forest-card {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}
.resource-item .forest-card img.hero-poster {
  border-radius: 12px;
  max-height: 140px;
  object-fit: contain;
}
.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(201, 171, 107, 0.95);
  color: #08120e;
  text-decoration: none;
  font-weight: 700;
}
.download-btn:hover {
  background: rgba(228, 178, 49, 0.95);
}

.downloads {
  margin-top: 48px;
}

.fichas-section {
  margin-top: 56px;
}

/* Documentación: subida de PDFs */
.documentacion {
  margin: 48px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.documentacion-intro {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.upload-identity {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto 28px;
}

.upload-identity label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
  width: 260px;
}

.upload-identity input[type="text"] {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.upload-identity input[type="text"]:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1500px;
  margin: 1.25rem auto 0;
}

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 32px;
  background: radial-gradient(circle at top, rgba(220, 188, 122, 0.18), transparent 42%),
              linear-gradient(180deg, #1c3a29 0%, #0c170f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.upload-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 24%),
                    radial-gradient(circle at bottom right, rgba(201, 171, 107, 0.12), transparent 18%);
  opacity: 0.9;
  border-radius: inherit;
  pointer-events: none;
}

.upload-card > * {
  position: relative;
  z-index: 1;
}

.upload-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--accent-soft);
  text-align: center;
}

.upload-hint {
  margin: -10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.upload-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
}

.upload-card input[type="text"],
.upload-card input[type="file"] {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.upload-card input[type="text"]:focus,
.upload-card input[type="file"]:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.upload-submit {
  align-self: center;
  flex: 0 0 auto;
  width: 220px;
  max-width: 100%;
  margin-top: auto;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
}

.upload-status {
  min-height: 1.3em;
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.upload-status-ok {
  color: #8fd19e;
}

.upload-status-error {
  color: #e8877a;
}

@media (max-width: 480px) {
  .upload-card {
    padding: 24px;
    border-radius: 22px;
  }
}

/* Fichas de actividades: subida de la versión completada por ficha */
.ficha-upload {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.ficha-upload label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.ficha-upload input[type="file"] {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.ficha-upload input[type="file"]:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.ficha-upload-submit {
  align-self: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.ficha-upload .upload-status {
  margin-top: 4px;
}

/* Fichas rows layout: first row 3 items, then two rows with 2 items */
.fichas-grid {
  margin-top: 1.75rem;
}
.fichas-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 36px;
}
.fichas-row .resource-item {
  flex: 1 1 0;
  max-width: 360px;
}
.fichas-row .resource-item .forest-card {
  padding: 28px;
}
@media (max-width: 800px) {
  .fichas-row {
    flex-wrap: wrap;
    gap: 28px;
  }
  .fichas-row .resource-item {
    max-width: 48%;
  }
}

.quote-panel-yellow .hero-badge {
  background: rgba(32, 60, 44, 0.95);
  color: #ffffff;
  position: absolute;
  top: 20px;
  left: 30px;
  margin: 0;
  z-index: 1;
}

.quote-panel {
  position: relative;
  padding: 80px 30px 60px;
  border-radius: 24px;
  background: rgba(32, 60, 44, 0.95);
  border: 1px solid rgba(201, 171, 67, 0.2);
  color: var(--text);
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.quote-panel p {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 223, 126, 1) !important;
}

.quote-panel .quote-author {
  display: block;
  margin-top: 1rem;
  color: #ffffff;
  font-family: 'Bilbo Hand', serif;
  font-size: 2rem;
  font-weight: bold;
}

.quote-panel .quote-book {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(201, 151, 69, 0.95);
  color: #08120e;
  font-weight: 600;
}

.quote-panel .hero-badge {
  position: absolute;
  top: 20px;
  left: 30px;
  margin: 0;
  z-index: 1;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.content-page h2,
.content-page h3 {
  color: var(--text);
  margin-bottom: 16px;
}

.content-page h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.content-page p,
.content-page li {
  color: var(--muted);
  line-height: 1.9;
}

.content-page ul {
  padding-left: 1.15rem;
  margin: 16px 0 0;
}

.content-page li {
  margin-bottom: 12px;
}

.site-footer {
  padding: 24px clamp(20px, 4vw, 40px);
  min-height: 110px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 16px;
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-left {
  justify-content: flex-start;
}

.footer-right {
  justify-content: flex-end;
}

.footer-brand {
  margin: 0;
  justify-self: center;
  font-family: 'The Shire', 'Im Fell Types', serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-align: center;
}

.footer-logo {
  max-height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-right,
  .footer-brand {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0 16px;
  }

  .hero-figure {
    order: -1; /* imagen arriba en móvil */
  }

  .forest-card {
    max-width: 100%;
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    justify-content: center;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
  }

  .hero h2 {
    font-size: 2.4rem;
  }
}


/* ============================================
   OPTIMIZACIÓN MÓVIL - RESPONSIVE FIXES
   ============================================ */

/* --- HEADER: logo + título apilados en móvil --- */
@media (max-width: 480px) {
  .site-header {
    padding: 16px 16px;
    gap: 16px;
    justify-content: center;
    text-align: center;
  }

  .brand {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo-ring {
    width: 80px;
    height: 80px;
  }

  .site-header h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .eyebrow {
    font-size: 0.65rem;
    text-align: center;
  }

  .subtitle {
    font-size: 0.85rem;
    text-align: center;
  }

  /* Nav: scroll horizontal en lugar de desbordarse */
  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.85rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
    padding: 8px 12px;
    flex-shrink: 0;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 12px;
  }

  body {
    text-align: left; /* evita "ríos" de espacio del justificado en pantallas estrechas */
  }

  .hero p, .p2 {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
  }

  .hero-actions {
    max-width: 100%;
    gap: 10px;
  }

  .button {
    flex: 1 1 calc(50% - 5px);
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  main {
    padding: 0 16px 32px;
  }

  h6 {
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: center;
  }
}

/* --- CONTENT PAGES (ambientación, formación…) --- */
@media (max-width: 480px) {
  .content-page {
    padding: 20px 0;
  }

  .content-page h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .back-button {
    font-size: 1rem;
    padding: 10px 20px;
    margin-bottom: 16px;
    margin-top: 16px;
  }
}

/* --- TABLAS: scroll horizontal --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .principios-table,
  .camp-table {
    font-size: 0.8rem;
    min-width: 480px; /* fuerza scroll horizontal */
  }

  .principios-table th,
  .principios-table td,
  .camp-table th,
  .camp-table td {
    padding: 8px 8px;
  }
}

/* --- IFRAME PDF: altura adaptable --- */
@media (max-width: 600px) {
  iframe[src*=".pdf"] {
    height: 60vh;
    min-height: 300px;
  }
}

/* --- QUOTE PANELS --- */
@media (max-width: 600px) {
  .quote-panel,
  .quote-panel-yellow {
    padding: 56px 16px 52px;
    border-radius: 16px;
  }

  .quote-panel p,
  .quote-panel-yellow p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .quote-panel .quote-book,
  .quote-panel-yellow .quote-book {
    position: static;
    display: inline-flex;
    margin-top: 12px;
  }

  .quote-panel .hero-badge,
  .quote-panel-yellow .hero-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 12px;
  }
}

/* --- CALENDAR: scroll horizontal en móvil --- */
@media (max-width: 600px) {
  .calendar-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cal-header,
  .cal-grid {
    min-width: 420px;
  }

  .cal-cell {
    min-height: 42px;
    padding: 4px 4px;
  }

  .day-num {
    font-size: 12px;
  }
}

/* --- FEATURES GRID --- */
@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px 0;
  }

  .feature-card {
    padding: 20px;
  }
}

/* --- FOOTER --- */
@media (max-width: 480px) {
  .site-footer {
    padding: 20px 16px;
  }

  .footer-logo {
    max-height: 56px;
  }

  .footer-brand {
    font-size: 1rem;
  }
}

/* --- IMÁGENES: nunca se salen del contenedor --- */
img, iframe {
  max-width: 100%;
}

/* --- TOUCH: áreas táctiles mínimas de 44px --- */
@media (max-width: 600px) {
  .nav-link,
  .button,
  .back-button {
    min-height: 44px;
  }
}
