/* Sonrisas hacia la Gran Senda — site shell */
:root {
  --green-deep: #0f3d24;
  --green: #14632f;
  --green-mid: #3e802e;
  --green-soft: #e8f2e4;
  --red: #dd4e4e;
  --red-hot: #ed1c24;
  --blue: #0088cb;
  --yellow: #ffcb05;
  --ink: #1a2a1f;
  --muted: #4a5c50;
  --paper: #f4f7f2;
  --white: #ffffff;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Bebas Neue", "Impact", sans-serif;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(62, 128, 46, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 136, 203, 0.12), transparent 50%),
    linear-gradient(180deg, #eef5ea 0%, var(--paper) 35%, #e6efe2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

.site-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 61, 36, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 8px 28px rgba(15, 61, 36, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
  animation: brandIn 0.7s ease both;
}

.brand:hover {
  color: var(--yellow);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}

.nav-list .has-sub > button,
.nav-list .has-sub > a.nav-parent {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
}

.nav-list .has-sub > button:hover,
.nav-list .has-sub > a.nav-parent:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: min(90vw, 720px);
  max-height: 70vh;
  overflow: auto;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 61, 36, 0.28);
  padding: 0.75rem;
  columns: 3;
  column-gap: 0.5rem;
  z-index: 120;
}

.submenu a {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.92rem;
  break-inside: avoid;
  padding: 0.35rem 0.5rem;
}

.submenu a:hover {
  background: var(--green-soft);
  color: var(--green);
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.open > .submenu {
  display: block;
  animation: dropIn 0.25s ease both;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 61, 36, 0.35) 0%, rgba(15, 61, 36, 0.55) 45%, rgba(10, 35, 20, 0.92) 100%);
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3.25rem;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hot);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--green-deep);
}

.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* Sections */
main {
  flex: 1;
}

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(20, 99, 47, 0.08);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  color: var(--green-deep);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 42rem;
}

.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  color: var(--green-deep);
  margin: 0 0 0.35rem;
  line-height: 1.05;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 46rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--green);
  margin: 1.75rem 0 0.65rem;
  line-height: 1.1;
}

.prose h2 { font-size: 1.85rem; }
.prose h3 { font-size: 1.45rem; }

.objectives {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
  max-width: 46rem;
}

.objectives li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 10px 10px 0;
}

.objectives .num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
  min-width: 1.5rem;
}

.iban-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(90deg, var(--red) 0%, #c43a3a 100%);
  color: var(--white);
  border-radius: 12px;
  margin: 1.5rem 0;
  animation: pulseSoft 3.5s ease-in-out infinite;
}

.iban-banner strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}

.iban-code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.home-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}

.home-split .prose {
  flex: 1 1 280px;
}

.home-poster {
  flex: 0 1 280px;
  margin: 0;
}

.home-poster img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 61, 36, 0.25);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.fact {
  flex: 1 1 160px;
  padding: 1rem 1.1rem;
  background: var(--white);
  border-radius: 12px;
  border-top: 3px solid var(--blue);
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--green-deep);
}

.fact span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Towns */
.town-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.town-grid a {
  display: block;
  padding: 0.7rem 1rem;
  background: var(--white);
  color: var(--green-deep);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid rgba(20, 99, 47, 0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.town-grid a:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.sales-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 52rem;
}

.sales-item {
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  border-left: 3px solid var(--blue);
}

.sales-item strong {
  color: var(--green-deep);
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-block {
  flex: 1 1 240px;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 12px;
  border-top: 4px solid var(--green-mid);
}

.contact-block a {
  font-weight: 700;
}

.news-list a {
  font-weight: 700;
  font-size: 1.05rem;
}

/* Blog */
.blog-container {
  padding: 0 0 2rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border-left: 4px solid var(--green-mid);
}

.blog-title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.blog-title a {
  color: var(--green-deep);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--red);
}

.blog-preview {
  color: var(--muted);
}

.blog-preview p {
  margin: 0;
}

.romlicontainer {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.25rem 0 1.5rem;
  border-top: 3px solid var(--yellow);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.95rem;
}

.social {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, background 0.2s;
}

.social a:hover {
  transform: scale(1.08);
  background: var(--yellow);
}

.social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.romlifooter {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
}

.romlifooter img {
  max-width: 160px;
  object-fit: contain;
}

/* Motion */
@keyframes brandIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(221, 78, 78, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(221, 78, 78, 0); }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--green-deep);
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 3px solid var(--yellow);
  }

  .site-nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .submenu {
    position: static;
    width: 100%;
    max-height: 240px;
    columns: 2;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .has-sub > .submenu { display: none; }
  .has-sub.open > .submenu { display: block; }
}

@media (max-width: 560px) {
  .submenu { columns: 1; }
  .hero { min-height: 72vh; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
