/* ==========================================================
   VISITA LA CRUZ - Identidad turistica propia
   Paleta inspirada en el escudo municipal, el rio y la tierra.
========================================================== */
:root {
  --wine: #6f1824;
  --wine-dark: #481019;
  --gold: #d5a142;
  --gold-soft: #f4dfaf;
  --river: #0e665b;
  --river-light: #1d8b7e;
  --cream: #fbf7ee;
  --sand: #efe5d2;
  --white: #ffffff;
  --ink: #252724;
  --muted: #69706d;
  --line: #e7dfd1;
  --shadow: 0 22px 54px rgba(45, 25, 18, 0.14);
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.section-heading h2, .page-title h1, .feature-copy h2, .detail-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.72,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ========================== Cabecera ========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 247, 238, .97);
  box-shadow: 0 3px 17px rgba(50, 27, 20, .07);
  backdrop-filter: blur(12px);
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(1400px, calc(100% - 42px));
  min-height: 86px;
  margin: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--wine);
}
.brand img {
  width: 67px;
  height: 67px;
  object-fit: contain;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}
.brand-copy small {
  margin-top: 7px;
  color: var(--gold);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.site-navigation {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.1vw, 32px);
  flex: 1;
  list-style: none;
  color: var(--wine-dark);
  font-size: .93rem;
  font-weight: 650;
}
.site-navigation a {
  position: relative;
  white-space: nowrap;
}
.site-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .24s ease;
}
.site-navigation a:hover::after, .site-navigation a.current::after { transform: scaleX(1); }
.language-panel {
  flex-shrink: 0;
  padding: 7px 9px 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}
.language-label {
  display: block;
  margin: 0 3px 5px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.language-switch { display: flex; gap: 4px; }
.language-switch button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}
.language-switch button.active {
  background: var(--wine);
  color: var(--white);
}
.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.flag-es {
  background: linear-gradient(#74bfe7 0 33%, #fff 33% 67%, #74bfe7 67%);
}
.flag-en {
  background:
    linear-gradient(90deg, transparent 42%, #cf142b 42% 58%, transparent 58%),
    linear-gradient(transparent 36%, #cf142b 36% 64%, transparent 64%),
    #fff;
}
.flag-pt {
  position: relative;
  overflow: hidden;
  background: #009b3a;
}
.flag-pt::before {
  content: "";
  position: absolute;
  inset: 2px 4px;
  background: #ffdf00;
  transform: rotate(45deg);
}
.flag-pt::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #002776;
}
.menu-button {
  display: none;
  gap: 5px;
  margin-left: auto;
  border: 0;
  background: transparent;
}
.menu-button span { width: 25px; height: 2px; background: var(--wine); }

/* ========================== Portada ========================== */
.home-hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  color: var(--white);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe 17s ease-in-out infinite alternate;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(45, 14, 20, .78), rgba(45, 14, 20, .27) 54%, rgba(14, 48, 44, .26)),
    linear-gradient(0deg, rgba(24, 22, 19, .62), transparent 53%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 112px 0 130px;
}
.hero-content h1 {
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 6.4vw, 5.9rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .98;
}
.hero-content > p:not(.eyebrow) {
  max-width: 515px;
  margin-top: 24px;
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
}
.search-box {
  display: flex;
  gap: 9px;
  max-width: 690px;
  margin-top: 42px;
  padding: 8px;
  border-radius: 17px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0 17px;
  border: 0;
  color: var(--ink);
  outline: none;
}
.search-box button {
  min-height: 53px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--wine-dark);
  font-weight: 800;
}
.search-status {
  min-height: 25px;
  margin-top: 13px;
  color: var(--gold-soft);
  font-size: .9rem;
}
.main-paths {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -78px;
}
.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 212px;
  padding: 27px;
  border-radius: var(--radius);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .28s ease;
}
.path-card:hover { transform: translateY(-9px); }
.path-card img, .visual-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.path-card:hover img, .visual-card:hover img { transform: scale(1.08); }
.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
}
.path-card.wine::after { background: linear-gradient(transparent, rgba(87, 14, 26, .94)); }
.path-card.river::after { background: linear-gradient(transparent, rgba(7, 73, 65, .94)); }
.path-card.gold::after { background: linear-gradient(transparent, rgba(93, 58, 17, .93)); }
.path-card div { position: relative; z-index: 1; }
.path-card span {
  color: var(--gold-soft);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.path-card h2 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
.path-card p { color: rgba(255,255,255,.84); font-size: .88rem; }

/* ========================== Home sections/cards ========================== */
.home-section { padding: 96px 0 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
}
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); color: var(--wine-dark); }
.section-heading p:last-child { max-width: 360px; color: var(--muted); }
.visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.visual-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  color: var(--white);
  overflow: hidden;
}
.visual-card::after {
  content: "";
  position: absolute;
  inset: 28% 0 0;
  background: linear-gradient(transparent, rgba(29,20,18,.88));
}
.visual-card div {
  position: absolute;
  right: 23px;
  bottom: 23px;
  left: 23px;
  z-index: 1;
}
.tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--wine-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.visual-card h3 { font-size: 1.35rem; }
.visual-card p { color: rgba(255,255,255,.84); font-size: .88rem; }
.identity-band {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 66px;
  align-items: center;
  margin-top: 100px;
  padding: 86px max(calc((100% - 1220px) / 2), 24px);
  background: var(--wine-dark);
  color: var(--white);
}
.identity-band h2 { font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.12; }
.identity-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.identity-links a {
  padding: 22px;
  border: 1px solid rgba(244,223,175,.25);
  border-radius: 16px;
  transition: background .2s ease, border-color .2s ease;
}
.identity-links a:hover { border-color: var(--gold); background: rgba(213,161,66,.12); }
.identity-links strong { display: block; color: var(--gold-soft); }
.identity-links span { color: #d7c9c4; font-size: .88rem; }

/* ========================== Paginas interiores ========================== */
.page-hero {
  padding: 66px 0 55px;
  background: var(--wine-dark);
  color: var(--white);
}
.page-title { max-width: 790px; }
.page-title h1 { font-size: clamp(2.7rem, 5vw, 4.3rem); }
.page-title p:last-child { margin-top: 18px; color: #e4d9d4; font-size: 1rem; }
.page-content { padding: 64px 0 88px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.listing-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(44,28,17,.08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.listing-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.listing-card img { height: 245px; object-fit: cover; }
.listing-card div { padding: 23px; }
.listing-card h2, .listing-card h3 { color: var(--wine-dark); font-size: 1.28rem; }
.listing-card p { margin: 9px 0 19px; color: var(--muted); font-size: .92rem; }
.text-link { color: var(--river); font-weight: 750; }
.split-content { display: grid; grid-template-columns: .88fr 1fr; gap: 58px; align-items: start; }
.copy-panel h2 { margin-bottom: 18px; color: var(--wine-dark); font-family: Georgia, serif; font-size: 2.2rem; font-weight: 500; }
.copy-panel p { margin-bottom: 17px; color: var(--muted); }
.info-panel {
  padding: 29px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.info-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border: 0; }
.info-row span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.info-row strong, .info-row a { color: var(--wine-dark); font-weight: 650; }
.button-link {
  display: inline-flex;
  margin-top: 25px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--river);
  color: var(--white);
  font-weight: 750;
}
.detail-layout { display: grid; grid-template-columns: 1.05fr .83fr; gap: 40px; }
.detail-gallery img { width: 100%; max-height: 490px; object-fit: cover; border-radius: var(--radius); }
.detail-copy h1 { margin: 8px 0 17px; color: var(--wine-dark); font-size: clamp(2.15rem,4vw,3.1rem); }
.detail-copy > p { margin-bottom: 27px; color: var(--muted); }
.map-action {
  display: block;
  margin-top: 18px;
  padding: 17px;
  border-radius: 13px;
  background: var(--gold);
  color: var(--wine-dark);
  text-align: center;
  font-weight: 800;
}
.pending-note {
  margin-top: 26px;
  padding: 17px;
  border-left: 4px solid var(--gold);
  background: #fff7e6;
  color: var(--muted);
  font-size: .89rem;
}

/* ========================== Asistente ========================== */
.assistant-button {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 1.65rem;
}
.assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 40;
  display: none;
  flex-direction: column;
  width: min(365px, calc(100vw - 32px));
  max-height: 560px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.assistant-panel.open { display: flex; animation: rise .25s ease; }
.assistant-header { display: flex; justify-content: space-between; padding: 18px 19px; background: var(--wine); color: var(--white); }
.assistant-header button { border: 0; background: transparent; color: var(--white); font-size: 1.25rem; }
.assistant-messages { display: flex; flex-direction: column; gap: 11px; padding: 18px; overflow-y: auto; }
.bot-message {
  padding: 12px 14px;
  border-radius: 14px 14px 14px 3px;
  background: var(--cream);
  color: var(--ink);
  font-size: .9rem;
}
.bot-links { display: grid; gap: 8px; }
.bot-links a, .bot-links button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--river);
  text-align: left;
  font-weight: 700;
}
.assistant-security {
  padding: 0 18px 15px;
  color: var(--muted);
  font-size: .72rem;
}

/* ========================== Pie ========================== */
.footer {
  margin-top: 90px;
  padding: 44px max(calc((100% - 1220px) / 2), 24px) 22px;
  background: #321018;
  color: #d9cbc7;
  font-size: .86rem;
}

/* Footer global: mapa, contacto, legales y credito de desarrollo N2. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
}
.footer strong { display: block; color: var(--gold-soft); font-family: Georgia, serif; font-size: 1.22rem; }
.footer h3 { margin-bottom: 12px; color: var(--gold-soft); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer p { margin-top: 8px; color: #d9cbc7; }
.footer-links { display: grid; gap: 8px; list-style: none; }
.footer-links a { color: #f4e7dd; opacity: .88; }
.footer-links a:hover { color: var(--gold-soft); opacity: 1; }
.footer-credit { align-self: start; }

/* Credito N2: el enlace completo, incluido el logo, abre la web configurada en HTML. */
.n2-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  transition: transform .2s ease, background .2s ease;
}
.n2-credit:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.n2-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}
.n2-logo-img {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.n2-drop {
  position: absolute;
  inset: 5px;
  border-radius: 65% 35% 65% 35%;
  background: linear-gradient(135deg, var(--river), var(--gold-soft));
  transform: rotate(45deg);
}
.n2-logo strong,
.n2-credit-text strong {
  display: inline;
  color: var(--white);
  font-family: inherit;
  font-size: inherit;
}
.n2-logo strong {
  position: relative;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #c8b8b3;
}

/* Paginas legales simples para privacidad, terminos y accesibilidad. */
.legal-page { padding-top: 58px; }
.legal-card {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 42px rgba(73, 24, 34, .08);
}
.legal-card h2 { margin-bottom: 9px; color: var(--wine-dark); }

/* ========================== Animaciones ========================== */
@keyframes breathe { to { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ========================== Responsive ========================== */
@media (max-width: 1080px) {
  .top-nav { gap: 14px; }
  .site-navigation { font-size: .85rem; gap: 14px; }
  .language-switch button span:last-child { display: none; }
}
@media (max-width: 880px) {
  .top-nav { min-height: 76px; }
  .brand img { width: 56px; height: 56px; }
  .brand-copy strong { font-size: 1.1rem; }
  .menu-button { display: grid; order: 2; }
  .language-panel { order: 1; margin-left: auto; }
  .site-navigation {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 15px 25px;
    background: var(--cream);
    box-shadow: var(--shadow);
  }
  .site-navigation.open { display: flex; }
  .site-navigation a { display: block; padding: 12px 0; }
  .main-paths, .visual-grid, .cards-grid, .identity-band, .split-content, .detail-layout { grid-template-columns: 1fr; }
  .main-paths { margin-top: -55px; }
  .path-card { min-height: 180px; }
  .identity-band { gap: 35px; margin-top: 68px; padding-top: 54px; padding-bottom: 54px; }
  .detail-gallery img { max-height: 390px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .brand-copy small { letter-spacing: .15em; }
  .language-label { display: none; }
  .language-panel { padding: 5px; }
  .language-switch button { padding: 5px; }
  .home-hero { min-height: 610px; }
  .hero-content { padding-top: 68px; }
  .search-box { flex-direction: column; padding: 9px; }
  .search-box input { min-height: 49px; }
  .main-paths { gap: 10px; }
  .section-heading { align-items: start; flex-direction: column; }
  .identity-links { grid-template-columns: 1fr; }
  .assistant-button { right: 16px; bottom: 16px; }
  .assistant-panel { right: 16px; bottom: 92px; }
  .footer { margin-top: 62px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
