/* =========================================================
   Cascada Velo de Novia – guía de visita
   Estilos principales (móvil primero)
   ========================================================= */

:root {
  --teal: #0c5b4f;
  --teal-2: #0f7a6b;
  --teal-soft: #e2f0ec;
  --sand: #f6f2e9;
  --card: #fffdf8;
  --ink: #20342f;
  --muted: #5b6d67;
  --line: #e3dac8;
  --accent: #c76a3a;
  --danger: #b3372d;
  --warn: #b07a16;
  --ok: #1e7d52;
  --shadow: 0 10px 30px rgba(32, 52, 47, 0.12);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 99;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Cabecera ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 91, 79, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.head-inner { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand em { font-style: normal; color: #ffd9b8; }
.brand-name { font-size: 16px; }

.main-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1 1 auto;
  order: 3;
  padding: 6px 0;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  color: #eafff8;
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px;
  border-radius: 999px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: #dffaf1;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 38px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.is-active { background: #fff; color: var(--teal); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 40, 35, 0.28) 0%, rgba(10, 40, 35, 0.1) 30%, rgba(8, 30, 26, 0.82) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 96px 20px 46px; color: #fff; }

.crumbs ol {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #d9f2ea;
}
.crumbs a { color: #fff; }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: 0.7; }

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.h1-city { color: #ffe0c2; }

.hero-lead {
  max-width: 760px;
  font-size: clamp(15px, 2vw, 19px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 26px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--teal); box-shadow: var(--shadow); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13.5px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: var(--shadow);
}
.chip span { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; }
.chip small { color: var(--muted); }
.hero-note { font-size: 13px; margin: 12px 0 0; color: #e7f6f0; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: #efe9db; }

.kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 13px;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.2;
}
.section h3 { margin: 34px 0 8px; font-size: 21px; color: var(--teal); }
.section h4 { margin: 0 0 6px; font-size: 17px; }
.section-lead { margin: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 820px; }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }

.media-grid { margin-top: 26px; }

.figure-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.figure-card img { width: 100%; }
.figure-card figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); }
.figure-inline { max-width: 560px; margin-top: 26px; }

.note-box {
  background: var(--teal-soft);
  border-left: 4px solid var(--teal-2);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  margin-top: 18px;
}

.section-foot { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ---------- Clima ---------- */
.weather-root { margin-top: 8px; }

.weather-loading, .weather-error {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.weather-error { border-color: #e6b3ae; color: var(--danger); }

.w-risk {
  background: #fdeae6;
  border: 1px solid #efb4aa;
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 15px;
}
.w-risk ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }

.w-now {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.w-now-icon { font-size: 58px; line-height: 1; }
.w-now-temp { font-size: 56px; font-weight: 800; line-height: 1; }
.w-now-desc { font-size: 18px; margin-top: 2px; }
.w-now-sub { font-size: 13.5px; opacity: 0.85; margin-top: 4px; }
.w-now-left { display: flex; align-items: center; gap: 18px; }

.w-kpis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 8px;
  flex: 1 1 320px;
  max-width: 560px;
}
.w-kpi {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
}
.w-kpi span { display: block; font-size: 11.5px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.6px; }
.w-kpi strong { font-size: 19px; }

/* Consejos */
.advice-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.advice-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(32, 52, 47, 0.07);
}
.advice-card h4 { margin: 0 0 8px; font-size: 15px; color: var(--teal); }
.advice-card ul { margin: 0; padding-left: 18px; }
.advice-card li { margin-bottom: 6px; font-size: 14.5px; }
.advice-card li:last-child { margin-bottom: 0; }
.advice-empty { color: var(--muted); font-style: italic; font-size: 14px; }

/* Pronóstico */
.w-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.w-day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(32, 52, 47, 0.06);
}
.w-day.today { border-color: var(--teal-2); background: var(--teal-soft); }
.w-day-name { font-weight: 700; font-size: 14px; }
.w-day-date { font-size: 11.5px; color: var(--muted); }
.w-day-icon { font-size: 30px; line-height: 1.2; margin: 4px 0; }
.w-day-temp { font-size: 15px; font-weight: 800; }
.w-day-temp small { color: var(--muted); font-weight: 400; }
.w-day-meta { font-size: 11.5px; color: var(--muted); display: flex; justify-content: center; gap: 8px; margin-top: 5px; }
.weather-update { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Ubicación ---------- */
.address-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-style: normal;
  line-height: 1.7;
  box-shadow: 0 4px 14px rgba(32, 52, 47, 0.07);
}
.address-card a { display: inline-block; margin-top: 8px; font-weight: 700; }

.steps { margin: 0 0 14px; padding-left: 22px; }
.steps li { margin-bottom: 9px; }

.map-wrap {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.map-wrap iframe { display: block; min-height: 320px; }

/* ---------- Alrededores ---------- */
.place-grid {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.place-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 14px rgba(32, 52, 47, 0.07);
}
.place-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--teal); }
.place-card p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Servicios ---------- */
.fac-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.fac-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
}

/* ---------- Tabla ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 14.5px;
  min-width: 860px;
}
.styled-table th {
  background: var(--teal);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
}
.styled-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.styled-table tbody tr:nth-child(even) { background: #fbf7ee; }
.styled-table tbody tr:hover { background: var(--teal-soft); }

/* ---------- Rutas ---------- */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin: 10px 0 8px;
}
.route-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 14px rgba(32, 52, 47, 0.07);
}
.route-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--teal); }
.route-card p { margin: 0; font-size: 15px; }

.itin { margin-top: 8px; }
.itin-card {
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.itin-card h4 { color: var(--teal); }
.itin-card ol { margin: 6px 0 0; padding-left: 20px; }
.itin-card li { margin-bottom: 5px; font-size: 15px; }

/* ---------- Lista de verificación ---------- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px 12px 46px;
  position: relative;
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 18px;
  height: 9px;
  border-left: 3px solid var(--ok);
  border-bottom: 3px solid var(--ok);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 18px;
  font-weight: 700;
  position: relative;
  font-size: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--teal-2);
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 18px 18px; font-size: 15.5px; color: var(--muted); }

/* ---------- Fuentes ---------- */
.src-list {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 15px;
}
.src-list li { margin-bottom: 6px; }
.src-list.small { font-size: 13.5px; color: var(--muted); }
.src-list.small li { margin-bottom: 3px; }

/* ---------- Pie ---------- */
.site-foot {
  background: #12332c;
  color: #d8efe7;
  padding: 44px 0 20px;
  margin-top: 8px;
}
.site-foot a { color: #9fe0d2; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.foot-grid p { font-size: 14px; margin: 6px 0; color: #bfdcd4; }
.foot-grid p strong { color: #fff; font-size: 16px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 8px; }
.foot-grid nav a { text-decoration: none; font-size: 14px; }
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  padding-top: 14px;
  font-size: 12.5px;
  color: #93b4ab;
}

/* ---------- Responsivo ---------- */
@media (min-width: 720px) {
  .main-nav { order: 0; }
}
@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
@media (max-width: 560px) {
  .head-inner { min-height: 58px; }
  .brand-name { font-size: 14.5px; }
  .w-kpis { grid-template-columns: repeat(2, 1fr); }
  .chips .chip { flex: 1 1 44%; }
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
