:root {
  --bg: #f4f8f5;
  --bg-alt: #ffffff;
  --primary: #5ca38a;
  --primary-soft: rgba(92,163,138,0.08);
  --text-main: #242b27;
  --text-muted: #6f7a73;
  --border-soft: #d4e0d8;
  --max-width: 1100px;
  --radius: 18px;
  --shadow-soft: 0 14px 40px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
}

a { color: inherit; text-decoration: none; }

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(244,248,245,0.94);
  border-bottom: 1px solid rgba(212,224,216,0.7);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.18s ease;
}

.nav-links a:hover::after { width: 100%; }

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(92,163,138,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(92,163,138,0.4);
}

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

.btn-outline:hover {
  background-color: rgba(92,163,138,0.08);
}

/* SECCIONES GENERALES */
main {
  padding: 3.4rem 1.25rem;
  display: flex;
  justify-content: center;
}

.page-inner {
  max-width: var(--max-width);
  width: 100%;
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin: 0 0 0.4rem;
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.centered-title {
  text-align: center;
}

.card {
  background-color: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
}

/* HERO INDEX */
.hero-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 3.1vw + 1.2rem, 3.4rem);
  margin: 1.1rem 0 0.4rem;
}

.hero-title span { color: var(--primary); }

.hero-meta {
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top left, rgba(92,163,138,0.2), transparent 55%);
}

.hero-card-content { position: relative; }

/* LISTAS / GRIDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 2rem;
}

.item-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

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

/* FORMULARIOS */
form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background-color: #f7faf8;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(92,163,138,0.2);
  background-color: #fff;
}

/* FAQ */
details {
  margin-bottom: 0.8rem;
  padding: 0.9rem 1rem;
  background-color: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
}

details[open] summary::after { content: "−"; }

/* GALERÍA SIMPLIFICADA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 1rem;
}

.gallery-placeholder {
  height: 160px;
  border-radius: 16px;
  border: 1px dashed var(--border-soft);
  background: #f7faf8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.6rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-layout,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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