:root {
  --azul: #022970;
  --azul-oscuro: #011a48;
  --dorado: #b89252;
  --dorado-claro: #e9dcc4;
  --tinta: #1c2433;
  --gris: #5a6475;
  --fondo: #ffffff;
  --fondo-suave: #f6f4ef;
  --linea: #e4e0d6;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ancho: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--azul); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }

.contenedor { width: min(var(--ancho), 100% - 3rem); margin-inline: auto; }

/* Encabezado */
.encabezado {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--linea);
  backdrop-filter: saturate(1.4) blur(6px);
}
.encabezado .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.encabezado .logo img { height: 52px; width: auto; }
.menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  text-decoration: none; color: var(--tinta); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em; padding: .5rem 0; border-bottom: 2px solid transparent;
}
.menu a:hover { color: var(--azul); border-bottom-color: var(--dorado); }

/* Portada */
.portada {
  background: var(--azul);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.portada::after {
  content: ""; position: absolute; inset: auto -10% -60% auto;
  width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(184,146,82,.35);
  box-shadow: 0 0 0 60px rgba(184,146,82,.06), 0 0 0 140px rgba(184,146,82,.04);
  pointer-events: none;
}
.portada .contenedor { padding-block: clamp(4rem, 10vw, 7.5rem); position: relative; z-index: 1; }
.etiqueta {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dorado);
}
.etiqueta::before { content: ""; width: 36px; height: 2px; background: var(--dorado); }
.portada h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.08;
  margin: 1rem 0 1.25rem; max-width: 18ch;
}
.portada p { font-size: 1.15rem; max-width: 56ch; color: #d9e0ee; margin: 0 0 2.25rem; }
.botones { display: flex; flex-wrap: wrap; gap: 1rem; }
.boton {
  display: inline-block; padding: .9rem 1.6rem; border-radius: 2px;
  font-weight: 600; text-decoration: none; letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s;
}
.boton-dorado { background: var(--dorado); color: var(--azul-oscuro); }
.boton-dorado:hover { background: #cba468; }
.boton-borde { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.boton-borde:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Secciones */
.seccion { padding-block: clamp(4rem, 8vw, 6rem); }
.seccion-suave { background: var(--fondo-suave); }
.titulo-seccion { max-width: 640px; margin-bottom: 3rem; }
.titulo-seccion h2 {
  font-family: var(--serif); font-weight: 600; color: var(--azul);
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: .75rem 0 1rem;
}
.titulo-seccion p { color: var(--gris); margin: 0; }

.servicios {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; background: var(--linea); border: 1px solid var(--linea);
}
.servicio { background: #fff; padding: 2rem 2rem 2.25rem; }
.servicio .numero {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--dorado);
}
.servicio h3 {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--azul);
  margin: .35rem 0 .6rem; line-height: 1.2;
}
.servicio p { margin: 0; color: var(--gris); font-size: 1rem; }

/* Nosotros */
.nosotros { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.nosotros .titulo-seccion { margin-bottom: 1.5rem; }
.nosotros p { color: var(--gris); }
.datos { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.datos li { border-top: 2px solid var(--dorado); padding-top: .9rem; }
.datos strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--azul); line-height: 1.1; }
.datos span { font-size: .92rem; color: var(--gris); }
.marco-logo {
  background: #fff; border: 1px solid var(--linea); padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 18px 18px 0 var(--dorado-claro);
}

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: stretch; }
.lista-contacto { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.lista-contacto .rotulo {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dorado); margin-bottom: .3rem;
}
.lista-contacto a, .lista-contacto address { color: var(--tinta); font-style: normal; font-size: 1.08rem; text-decoration: none; }
.lista-contacto a:hover { color: var(--azul); text-decoration: underline; }
.mapa { min-height: 340px; border: 1px solid var(--linea); }
.mapa iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Pie */
.pie { background: var(--azul-oscuro); color: #c3cbdb; font-size: .95rem; }
.pie .contenedor { padding-block: 3rem 2rem; }
.pie-superior { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.pie img { height: 64px; width: auto; }
.pie p { margin: .25rem 0; }
.pie a { color: #fff; }
.pie-inferior {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem;
}

/* Aviso de privacidad */
.documento { padding-block: clamp(3rem, 6vw, 5rem); }
.documento .contenedor { max-width: 820px; }
.documento h1 {
  font-family: var(--serif); color: var(--azul); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; margin: .75rem 0 .5rem;
}
.documento .fecha { color: var(--gris); margin: 0 0 2.5rem; }
.documento h2 {
  font-family: var(--serif); color: var(--azul); font-weight: 600; font-size: 1.6rem;
  margin: 2.5rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--linea);
}
.documento ul { padding-left: 1.25rem; }
.documento li { margin-bottom: .35rem; }
.documento .recuadro { background: var(--fondo-suave); border-left: 3px solid var(--dorado); padding: 1.25rem 1.5rem; }

@media (max-width: 860px) {
  .nosotros, .contacto { grid-template-columns: 1fr; }
  .marco-logo { max-width: 420px; }
}
@media (max-width: 640px) {
  .menu { gap: 1.1rem; }
  .menu a { font-size: .88rem; }
  .encabezado .logo img { height: 42px; }
  .menu li.opcional { display: none; }
  .datos { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
