:root {
  --navy: #0b3d61;
  --navy-dark: #072a44;
  --navy-darker: #051a2e;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --off: #f0f5ff;
  --ink: #1e293b;
  --muted: #475569;
  --line: #d6e0f5;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 61, 97, .12);
  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { margin-top: 3px; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand b { color: var(--blue); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a.link:hover { color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--navy-dark); }

/* ---------- Portada ---------- */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(100deg, rgba(5, 26, 46, .92) 0%, rgba(7, 42, 68, .78) 45%, rgba(7, 42, 68, .25) 100%),
    url('img/cotopaxi.jpg') center 38% / cover no-repeat;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px);
}
.eyebrow { color: var(--cyan-light); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.08; margin: 0 0 18px; max-width: 16ch; font-weight: 700; }
.hero h1 span { color: var(--cyan-light); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; margin: 0 0 30px; color: #e3ecfb; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Secciones ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 12px; color: var(--navy); font-weight: 700; }
.section-head p { margin: 0; color: var(--muted); }
.bg-off { background: var(--off); }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--white); margin-bottom: 16px;
}
.card h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.place {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--navy); box-shadow: var(--shadow);
}
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.place:hover img { transform: scale(1.05); }
.place figcaption {
  position: absolute; inset: auto 0 0 0; padding: 56px 18px 14px; color: var(--white);
  background: linear-gradient(to top, rgba(5, 26, 46, .94), rgba(5, 26, 46, 0));
}
.place figcaption b { display: block; font-size: 1.25rem; }
.place figcaption span { font-size: .92rem; color: #dbe7fb; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 24px 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--cyan-light); font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
.note { margin-top: 22px; font-size: .92rem; color: var(--muted); }

.contact { background: var(--navy); color: var(--white); }
.contact .section-head h2 { color: var(--white); }
.contact .section-head p { color: #cfe0f8; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { flex: 0 0 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: var(--cyan-light); }
.contact-list small { display: block; color: #a9c2e6; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { color: var(--white); }
.contact-box { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 26px; }
.contact-box h3 { margin: 0 0 8px; font-size: 1.3rem; }
.contact-box p { margin: 0 0 18px; color: #d6e5fa; }

.subhead { margin: 0 0 18px; font-size: 1.25rem; color: var(--navy); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.subhead::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.places + .subhead { margin-top: 48px; }
.place figcaption .tag { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(5, 26, 46, .78); color: var(--cyan-light); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Páginas de destino ---------- */
.page-hero {
  color: var(--white);
  background: linear-gradient(100deg, rgba(5, 26, 46, .90) 0%, rgba(7, 42, 68, .72) 55%, rgba(7, 42, 68, .30) 100%), var(--hero-img) center / cover no-repeat;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 8vw, 90px);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 12px; max-width: 18ch; }
.page-hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 52ch; margin: 0 0 24px; color: #e3ecfb; }
.crumbs { margin: 0 0 18px; font-size: .9rem; color: #cfe0f8; }
.crumbs a { color: #cfe0f8; }
.dest { padding: clamp(40px, 6vw, 72px) 0; }
.dest .wrap { max-width: 860px; }
.dest-intro { font-size: 1.15rem; color: var(--ink); margin: 0 0 8px; }
.dest h2 { color: var(--navy); font-size: 1.5rem; margin: 36px 0 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.checks li::after { content: ''; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cta-box { margin: 36px 0 22px; padding: 26px; border-radius: var(--radius); background: var(--off); border: 1px solid var(--line); }
.cta-box h3 { margin: 0 0 6px; color: var(--navy); }
.cta-box p { margin: 0 0 16px; color: var(--muted); }
.cta-box .btn { margin: 0 8px 8px 0; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.more { color: var(--muted); font-size: .98rem; }
.place a { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-darker); color: #b9cde9; padding: 44px 0 28px; font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.site-footer h4 { color: var(--white); margin: 0 0 10px; font-size: 1rem; }
.site-footer a { color: #b9cde9; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer p { margin: 0 0 6px; }
.credits { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; font-size: .84rem; color: #8fa9cc; }
.credits p { margin: 0 0 6px; }

/* ---------- Páginas legales ---------- */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 800px; }
.legal h1 { color: var(--navy); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; font-size: .95rem; }
.legal h2 { color: var(--navy); font-size: 1.3rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal .box { background: var(--off); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 18px 0; font-size: .95rem; }

/* ---------- Adaptable ---------- */
@media (min-width: 961px) {
  .places-4 { grid-template-columns: repeat(4, 1fr); }
  .places-4 .place figcaption b { font-size: 1.1rem; }
  .places-4 .place figcaption span:not(.tag) { font-size: .85rem; }
}
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .places { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav a.link { display: none; }
  .brand-name { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .hero { background-position: 62% center; }
  .hero h1 { max-width: none; }
}
@media (max-width: 520px) {
  .services, .places { grid-template-columns: 1fr; }
  .hero .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .place img { transition: none; }
}
