/* =========================================================================
   Diana Niño Eventos — hoja de estilo única
   Referente visual: altiplano boyacense. Verde de páramo, lana de ruana, latón.
   ========================================================================= */

:root {
  /* Paleta */
  --verde-paramo: #1D3A31;
  --verde-salvia: #7C9A88;
  --lino:         #F1EDE4;
  --hueso:        #FCFBF8;
  --laton:        #B0862F;
  --tinta:        #14211D;

  /* Derivados (contraste AA verificado) */
  --tinta-suave:  #4A5A54;
  --laton-claro:  #C39A3E;
  --filete:       rgba(124, 154, 136, 0.45);
  --filete-tenue: rgba(124, 154, 136, 0.28);
  --sobre-verde:  rgba(252, 251, 248, 0.88);

  /* Tipografía: escala de razón 1.25 sobre cuerpo de 18px */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --texto:   "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-nota:  0.9375rem;  /* 15px */
  --fs-menor: 1rem;       /* 16px */
  --fs-body:  1.125rem;   /* 18px */
  --fs-lead:  clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  --fs-h3:    clamp(1.3rem, 1.2rem + 0.4vw, 1.45rem);
  --fs-h2:    clamp(1.85rem, 1.55rem + 1.4vw, 2.6rem);
  --fs-h1:    clamp(2.1rem, 1.35rem + 3.4vw, 3.9rem);

  /* Ritmo vertical */
  --seccion:  clamp(4rem, 8vw, 7rem);
  --canal:    clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Reinicio breve ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  margin: 0;
  letter-spacing: 0.002em;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ---------- Foco de teclado ---------- */

:focus-visible {
  outline: 2px solid var(--laton);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--verde-paramo);
  color: var(--hueso);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-menor);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Contenedores ---------- */

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--canal);
}
.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--seccion); }
.section--lino { background: var(--lino); }

.section__title {
  font-size: var(--fs-h2);
  max-width: 22ch;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section__close {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--filete);
  font-size: var(--fs-lead);
  max-width: 62ch;
}

.prosa {
  font-size: var(--fs-lead);
  line-height: 1.7;
  max-width: 62ch;
}

.nota {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--filete);
  font-size: var(--fs-menor);
  color: var(--tinta-suave);
  max-width: 62ch;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--texto);
  font-size: var(--fs-nota);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--sm { padding: 0.65rem 1.15rem; }

.btn--brass {
  background: var(--laton);
  border-color: var(--laton);
  color: var(--tinta);
}
.btn--brass:hover {
  background: var(--laton-claro);
  border-color: var(--laton-claro);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(252, 251, 248, 0.5);
  color: var(--hueso);
}
.btn--ghost:hover {
  border-color: var(--hueso);
  background: rgba(252, 251, 248, 0.1);
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 248, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--filete-tenue);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.nav__list a {
  font-size: var(--fs-nota);
  text-decoration: none;
  color: var(--tinta-suave);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__list a:hover {
  color: var(--tinta);
  border-bottom-color: var(--verde-salvia);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--filete);
  border-radius: 2px;
  color: var(--tinta);
  font-family: var(--texto);
  font-size: var(--fs-nota);
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.nav-toggle__bars {
  width: 18px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) top    / 18px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 18px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 18px 1.5px no-repeat;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 840px);
  background: var(--verde-paramo);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--verde-paramo);
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  padding-block: clamp(6rem, 16vh, 10rem) clamp(3.5rem, 9vh, 6rem);
}

.hero__title {
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.06;
  color: var(--hueso);
  max-width: 20ch;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--sobre-verde);
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Una sola aparición orquestada, al cargar. */
.reveal {
  animation: subir 0.8s cubic-bezier(0.22, 0.7, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes subir {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Franja de confianza ---------- */

.trust { background: var(--lino); }

.trust__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 1.75rem;
}

.trust__item {
  font-size: var(--fs-nota);
  line-height: 1.5;
  color: var(--tinta-suave);
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--filete);
}
.trust__item:first-child {
  border-left: 0;
  padding-inline-start: 0;
}

/* ---------- Servicios ---------- */

.servicios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 3.5vw, 2.75rem) clamp(2rem, 4vw, 3.25rem);
}

.servicio {
  border-top: 1px solid var(--filete);
  padding-top: 1.15rem;
}

.servicio h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.55rem;
}

.servicio p {
  font-size: var(--fs-menor);
  line-height: 1.7;
  color: var(--tinta-suave);
}

/* ---------- Cómo trabajamos ---------- */

.pasos { counter-reset: paso; }

.paso {
  counter-increment: paso;
  position: relative;
  border-top: 1px solid var(--filete);
  padding: 1.75rem 0 1.75rem 4.25rem;
}
.paso:last-child { border-bottom: 1px solid var(--filete); }

.paso::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--verde-paramo);
}

.paso__titulo {
  font-size: var(--fs-h3);
  margin-bottom: 0.45rem;
}

.paso p {
  font-size: var(--fs-menor);
  line-height: 1.7;
  color: var(--tinta-suave);
  max-width: 62ch;
}

/* ---------- Puntos (por qué) ---------- */

.puntos { margin-top: clamp(2.25rem, 4vw, 3rem); }

.punto {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) 1fr;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--filete);
}
.punto:last-child { border-bottom: 1px solid var(--filete); }

.punto dt {
  font-weight: 600;
  font-size: var(--fs-menor);
}

.punto dd {
  font-size: var(--fs-menor);
  line-height: 1.7;
  color: var(--tinta-suave);
}

/* ---------- Cobertura ---------- */

.cobertura {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.cobertura__grupo { border-top: 1px solid var(--filete); padding-top: 1.15rem; }

.cobertura__grupo h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.6rem;
}

.cobertura__lista {
  font-size: var(--fs-menor);
  line-height: 1.95;
  color: var(--tinta-suave);
}

/* ---------- Galería ---------- */

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.galeria__item { margin: 0; }

.galeria__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(124, 154, 136, 0.16);
}

.galeria__enlace {
  margin-top: 1.75rem;
  font-size: var(--fs-menor);
}
.galeria__enlace a {
  color: var(--verde-paramo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--verde-salvia);
  transition: text-decoration-color 0.2s ease;
}
.galeria__enlace a:hover { text-decoration-color: var(--laton); }

/* ---------- Preguntas frecuentes ---------- */

.faq__item { border-top: 1px solid var(--filete); }
.faq__item:last-child { border-bottom: 1px solid var(--filete); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.35rem 2.75rem 1.35rem 0;
  font-weight: 600;
  font-size: var(--fs-menor);
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--tinta-suave); }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--verde-paramo), var(--verde-paramo)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--verde-paramo), var(--verde-paramo)) center / 1.5px 14px no-repeat;
}
.faq__item[open] summary::after {
  background: linear-gradient(var(--verde-paramo), var(--verde-paramo)) center / 14px 1.5px no-repeat;
}

.faq__cuerpo {
  padding-bottom: 1.5rem;
  font-size: var(--fs-menor);
  line-height: 1.7;
  color: var(--tinta-suave);
  max-width: 62ch;
}

/* ---------- Llamado final ---------- */

.cta {
  background: var(--verde-paramo);
  color: var(--hueso);
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.cta__inner { text-align: center; }

.cta__title {
  font-size: var(--fs-h2);
  color: var(--hueso);
}

.cta__texto {
  margin: 1.25rem auto 2.25rem;
  max-width: 58ch;
  font-size: var(--fs-lead);
  line-height: 1.66;
  color: var(--sobre-verde);
}

.cta__datos {
  margin-top: 1.75rem;
  font-size: var(--fs-menor);
  color: var(--sobre-verde);
}
.cta__datos a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(252, 251, 248, 0.45);
  transition: text-decoration-color 0.2s ease;
}
.cta__datos a:hover { text-decoration-color: var(--hueso); }

/* ---------- Pie ---------- */

.site-footer {
  background: var(--verde-paramo);
  color: var(--sobre-verde);
  border-top: 1px solid var(--filete);
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1fr;
  gap: clamp(2.25rem, 4vw, 3.5rem);
}

.site-footer__titulo {
  font-size: 1.35rem;
  color: var(--hueso);
  margin-bottom: 0.9rem;
}

.site-footer__datos {
  font-style: normal;
  font-size: var(--fs-menor);
  line-height: 1.95;
}

.site-footer__redes {
  font-size: var(--fs-nota);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.site-footer__legal {
  font-size: var(--fs-nota);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(252, 251, 248, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.site-footer a:hover {
  color: var(--hueso);
  text-decoration-color: var(--hueso);
}

.site-footer__bloque:last-child { font-size: var(--fs-nota); }

/* ---------- Página legal ---------- */

.legal { margin-top: clamp(2.25rem, 4vw, 3rem); }

.legal h2 {
  font-size: var(--fs-h3);
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--filete);
  margin-bottom: 0.7rem;
}

.legal p {
  font-size: var(--fs-menor);
  line-height: 1.75;
  color: var(--tinta-suave);
  max-width: 62ch;
  margin-bottom: 0.9rem;
}

.legal__lista {
  margin: 0 0 1.1rem;
  max-width: 62ch;
}
.legal__lista li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--fs-menor);
  line-height: 1.75;
  color: var(--tinta-suave);
  margin-bottom: 0.4rem;
}
.legal__lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 1px;
  background: var(--verde-salvia);
}

.legal a {
  color: var(--verde-paramo);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--verde-salvia);
  transition: text-decoration-color 0.2s ease;
}
.legal a:hover { text-decoration-color: var(--laton); }

.legal__fecha {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--filete);
  font-size: var(--fs-nota);
}

/* =========================================================================
   Adaptación
   ========================================================================= */

@media (max-width: 1000px) {
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__bloque:last-child { grid-column: 1 / -1; }
}

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem var(--canal) 1.5rem;
    background: var(--hueso);
    border-bottom: 1px solid var(--filete);
  }
  .nav.is-open { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--filete-tenue);
    font-size: var(--fs-menor);
  }
  .nav .btn { margin-top: 1.25rem; }

  .galeria { grid-template-columns: repeat(3, 1fr); }
  .cobertura { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .trust__inner { grid-template-columns: 1fr; }
  .trust__item {
    border-left: 0;
    border-top: 1px solid var(--filete);
    padding: 0.85rem 0 0;
    margin-top: 0.85rem;
  }
  .trust__item:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .punto { grid-template-columns: 1fr; gap: 0.3rem; }
}

@media (max-width: 600px) {
  .servicios { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__bloque:last-child { grid-column: auto; }

  .hero__actions .btn { flex: 1 1 auto; }
  .paso { padding-left: 3.5rem; }
  .paso::before { font-size: 1.75rem; top: 1.85rem; }
}

@media (max-width: 380px) {
  .brand { font-size: 1.3rem; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0.6rem; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
