/* =========================================================
   Educativeland — hoja de estilos
   Estilo alineado con la página de referencia del albergue:
   cabecera oscura, fondo gris claro, tarjetas blancas con
   sombra suave, botones azules y tipografía de sistema
   (Arial). Mobile-first: la base es la vista móvil y a
   partir de 768px se activa el layout de escritorio.
   ========================================================= */

:root {
  --bg: #f4f4f4;
  --card: #ffffff;
  --ink: #222222;
  --ink-soft: #555555;
  --header-bg: #333333;
  --line: #e1e4e8;
  --blue: #007bff;
  --blue-dark: #0062cc;

  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --max-width: 1200px;
  --radius-card: 8px;
  --radius-btn: 5px;
  --radius-img: 4px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-img); }

a { color: inherit; }

.wrap {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .55em;
  color: var(--ink);
}

h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); }

p { color: var(--ink-soft); margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------------- Card: shared white/shadow container ---------------- */

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ---------------- Media box: crops any image without distorting it ---------------- */

.media-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--line);
}
.media-box img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 0; }
.media-box.ratio-wide { aspect-ratio: 16 / 10; }
.media-box.ratio-hero { aspect-ratio: 16 / 9; }

@supports not (aspect-ratio: 1) {
  .media-box.ratio-wide { padding-top: 62.5%; }
  .media-box.ratio-hero { padding-top: 56.25%; }
  .media-box img { position: absolute; inset: 0; }
}

/* ---------------- Header ---------------- */

.site-header {
  background: var(--header-bg);
  color: #ffffff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { height: 34px; width: auto; border-radius: 0; filter: brightness(0) invert(1); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  color: #ffffff;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a:focus-visible { border-bottom-color: var(--blue); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone svg { width: 16px; height: 16px; fill: #ffffff; }

@media (min-width: 768px) {
  .site-header .wrap { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------------- Main / sections ---------------- */

main { padding: 28px 0 8px; }

.content-section { padding: 20px 0; }

/* ---------------- Columns (mobile-first: stacked, row from 768px) ---------------- */

.columnas {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.columna { flex: 1; }

.columnas.reverse { flex-direction: column; }

@media (min-width: 768px) {
  .columnas { flex-direction: row; align-items: center; }
  .columnas.reverse { flex-direction: row-reverse; }
}

.eyebrow-rule {
  width: 46px;
  height: 3px;
  background: var(--blue);
  margin-bottom: 16px;
  border-radius: 2px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.btn-primary { background: var(--blue); color: #ffffff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blue-dark); }

.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: #ffffff;
  box-shadow: none;
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--blue); color: #ffffff; }

.hero-actions, .cta-row-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

/* ---------------- Feature cards ---------------- */

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0 8px;
}

.feature { text-align: center; }

.feature svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  margin-bottom: 14px;
}

.feature h3 { font-size: 1.02rem; margin-bottom: .4em; }
.feature p { font-size: .92rem; margin: 0; }

@media (min-width: 768px) {
  .feature-grid { flex-direction: row; }
}

/* ---------------- CTA row ---------------- */

.cta-row { padding: 12px 0 36px; }
.cta-row-inner { justify-content: center; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--header-bg);
  color: #d8d8d8;
  padding: 36px 0 22px;
  margin-top: 20px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 26px;
}

.footer-grid h4 { font-size: .85rem; color: #ffffff; margin: 0 0 12px; }

.footer-brand img { height: 30px; margin-bottom: 10px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .88rem; color: #b9b9b9; margin: 0; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; font-size: .88rem; color: #d8d8d8; }
.footer-links a:hover { color: var(--blue); }

.footer-social { display: flex; gap: 14px; margin-top: 12px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 15px; height: 15px; fill: #d8d8d8; }
.footer-social a:hover { border-color: var(--blue); }
.footer-social a:hover svg { fill: var(--blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 18px;
  font-size: .8rem;
  color: #9c9c9c;
}

@media (min-width: 768px) {
  .footer-grid { flex-direction: row; justify-content: space-between; }
  .footer-grid > div { flex: 1; }
}

/* ---------------- WhatsApp floating button ---------------- */

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  z-index: 999;
}
.wa-float svg { width: 26px; height: 26px; fill: #ffffff; }
