/* Veterinarios del Sur - hoja de estilos v2
   Colores del logo: verde #1D4638 y crema #F2F2D1.
   Tipografías propias (carpeta /fonts): Cormorant Garamond (títulos) e Instrument Sans (texto). */

@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400 700; font-style: normal; font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --verde: #1D4638;
  --verde-profundo: #102B21;
  --verde-medio: #2D5E4C;
  --crema: #F2F2D1;
  --crema-suave: #F7F7E3;
  --hueso: #FBFBF4;
  --papel: #FFFFFF;
  --tinta: #16221C;
  --texto: #3A4A42;
  --linea: rgba(29, 70, 56, .2);
  --linea-clara: rgba(242, 242, 209, .24);
  --whatsapp: #1FA855;
  --whatsapp-oscuro: #13803F;
  --error: #9B2C1F;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ancho: 1180px;
  --alto-cabecera: 80px;
  --espacio-seccion: clamp(64px, 8.5vw, 116px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cabecera) - 8px); }

body {
  margin: 0;
  background: var(--hueso);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Números alineados a la altura de las mayúsculas (teléfonos y pasos) */
h1, h2, h3, .item__titulo, .urgencia__numero, .proceso__num, .portada__datos strong, .zonas dd { font-variant-numeric: lining-nums; }

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

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--tinta);
  font-weight: 500;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 6.6vw, 5.8rem); line-height: .98; letter-spacing: 0; }
h2 { font-size: clamp(2.35rem, 4.8vw, 3.9rem); line-height: 1.03; letter-spacing: .003em; }
h3 { font-size: 1.7rem; line-height: 1.12; }

p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--verde-medio); outline-offset: 3px; border-radius: 4px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding-inline: 24px; }

.saltar {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--verde); color: var(--crema); padding: 10px 16px; border-radius: 8px;
}
.saltar:focus { top: 12px; }

/* ---------- Botones y enlaces ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 2px solid var(--verde); border-radius: 999px;
  background: var(--verde); color: var(--crema);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.boton:hover { background: var(--verde-profundo); border-color: var(--verde-profundo); }
.boton--pequeno { min-height: 42px; padding: 0 22px; font-size: .95rem; }
.boton--crema { background: var(--crema); border-color: var(--crema); color: var(--verde); }
.boton--crema:hover { background: #fff; border-color: #fff; color: var(--verde-profundo); }
.boton--borde-claro { background: transparent; border-color: rgba(242, 242, 209, .55); color: var(--crema); }
.boton--borde-claro:hover { background: rgba(242, 242, 209, .1); border-color: var(--crema); }
.boton--whatsapp { background: var(--whatsapp-oscuro); border-color: var(--whatsapp-oscuro); color: #fff; gap: 10px; }
.boton--whatsapp:hover { background: #0E6631; border-color: #0E6631; }
.boton--whatsapp svg { flex: none; }

.enlace { font-weight: 600; color: var(--verde); }
.enlace:hover { color: var(--verde-profundo); text-decoration-thickness: 2px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.cabecera--solida {
  background: rgba(251, 251, 244, .96);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--linea);
}
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; height: var(--alto-cabecera); }

.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca__isotipo { position: relative; width: 44px; height: 44px; flex: none; }
.marca__img { position: absolute; inset: 0; width: 44px; height: 44px; transition: opacity .25s; }
.marca__img--verde { opacity: 0; }
.marca__nombre { font-family: var(--serif); font-weight: 600; color: var(--crema); font-size: 1.25rem; line-height: 1; transition: color .25s; }
.cabecera--solida .marca__img--verde { opacity: 1; }
.cabecera--solida .marca__img--crema { opacity: 0; }
.cabecera--solida .marca__nombre { color: var(--verde); }

.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.boton) {
  color: var(--crema); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.menu a:not(.boton):hover, .menu a:not(.boton)[aria-current="true"] { border-bottom-color: currentColor; }
.cabecera--solida .menu a:not(.boton) { color: var(--tinta); }
.cabecera--solida .menu a:not(.boton):hover,
.cabecera--solida .menu a:not(.boton)[aria-current="true"] { color: var(--verde); border-bottom-color: var(--verde); }
.cabecera:not(.cabecera--solida) .boton--pequeno { background: var(--crema); border-color: var(--crema); color: var(--verde); }

.menu-boton {
  display: none; width: 46px; height: 46px; padding: 12px 10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-boton span { display: block; height: 2px; background: var(--crema); border-radius: 2px; transition: transform .25s, opacity .25s, background-color .25s; }
.cabecera--solida .menu-boton span { background: var(--verde); }
.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Portada ---------- */
.portada {
  position: relative; overflow: hidden;
  background: var(--verde); color: var(--crema);
  min-height: min(100svh, 940px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: var(--alto-cabecera);
}
.portada__arte {
  position: absolute; right: -22%; top: 50%;
  width: min(74vw, 900px); aspect-ratio: 1;
  transform: translateY(-46%);
  opacity: .17; pointer-events: none;
}
.portada__arte img { width: 100%; height: 100%; }

.portada__contenido { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 64px; }
.portada__titulo { color: var(--crema); max-width: 8.8em; }
.portada__texto { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34rem; color: rgba(242, 242, 209, .92); margin-bottom: 2.4rem; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 14px; }

.portada__datos {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linea-clara);
}
.portada__datos li { padding: 26px 28px 30px 0; display: flex; flex-direction: column; gap: 4px; }
.portada__datos li + li { padding-left: 28px; border-left: 1px solid var(--linea-clara); }
.portada__datos strong { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: var(--crema); }
.portada__datos span { font-size: .96rem; color: rgba(242, 242, 209, .8); max-width: 22rem; }

/* Un solo momento de movimiento: el isotipo se dibuja de abajo hacia arriba y el texto entra detrás */
@media (prefers-reduced-motion: no-preference) {
  .portada__arte {
    -webkit-mask-image: linear-gradient(to top, #000 0 38%, transparent 62%);
            mask-image: linear-gradient(to top, #000 0 38%, transparent 62%);
    -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
    -webkit-mask-position: 0 100%; mask-position: 0 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: dibujar 2s cubic-bezier(.45, .05, .2, 1) .1s both;
  }
  .portada__titulo, .portada__texto, .portada__acciones, .portada__datos {
    animation: entrar .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .portada__titulo { animation-delay: .1s; }
  .portada__texto { animation-delay: .2s; }
  .portada__acciones { animation-delay: .3s; }
  .portada__datos { animation-delay: .5s; }
}
@keyframes dibujar {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to   { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
}
@keyframes entrar {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Secciones ---------- */
.seccion { padding: var(--espacio-seccion) 0; }
.seccion--hueso { background: var(--crema-suave); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.seccion__intro { font-size: 1.15rem; max-width: 34rem; }

.dos-columnas { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.dos-columnas__intro { position: sticky; top: calc(var(--alto-cabecera) + 32px); }

.nota-urgencia { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--linea); font-size: 1rem; }
.nota-urgencia a { font-weight: 600; }

/* ---------- Acordeón (servicios y preguntas) ---------- */
.acordeon { border-top: 1px solid var(--linea); }
.item { border-bottom: 1px solid var(--linea); }
.item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 24px 0; min-height: 64px;
}
.item summary::-webkit-details-marker { display: none; }
.item__titulo { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.1; color: var(--tinta); flex: 1; transition: color .2s; }
.item summary:hover .item__titulo { color: var(--verde); }
.item__icono { position: relative; flex: none; width: 22px; height: 22px; }
.item__icono::before, .item__icono::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px;
  background: var(--verde); transition: transform .25s;
}
.item__icono::after { transform: rotate(90deg); }
.item[open] .item__icono::after { transform: rotate(0deg); }
.item__cuerpo { padding: 0 44px 28px 0; }
.item__cuerpo p { margin-bottom: .9em; max-width: 36rem; }
.item__cuerpo p:last-child { margin-bottom: 0; }
.item[open] .item__cuerpo { animation: abrir .3s ease-out; }
@keyframes abrir { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Odontoplastia ---------- */
.destacado { background: var(--verde-profundo); color: var(--crema); padding: var(--espacio-seccion) 0; }
.destacado h2 { color: var(--crema); }
.destacado__grilla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.destacado__texto p { color: rgba(242, 242, 209, .9); font-size: 1.12rem; max-width: 33rem; }

.revision { margin: 0; padding: 0; border: 0; min-width: 0; }
.revision legend { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; color: var(--crema); padding: 0; margin-bottom: 18px; }
.senal {
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  padding: 17px 0; border-top: 1px solid var(--linea-clara);
  font-size: 1.08rem; color: var(--crema);
}
.senal:last-of-type { border-bottom: 1px solid var(--linea-clara); }
.senal input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.senal__marca {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(242, 242, 209, .6);
  display: grid; place-items: center;
  transition: background-color .2s, border-color .2s;
}
.senal__marca::after {
  content: ""; width: 12px; height: 7px; margin-top: -3px;
  border-left: 2px solid var(--verde); border-bottom: 2px solid var(--verde);
  transform: rotate(-45deg) scale(0); transition: transform .18s;
}
.senal:hover .senal__marca { border-color: var(--crema); }
.senal input:checked + .senal__marca { background: var(--crema); border-color: var(--crema); }
.senal input:checked + .senal__marca::after { transform: rotate(-45deg) scale(1); }
.senal input:focus-visible + .senal__marca { outline: 3px solid var(--crema); outline-offset: 3px; }

.revision__pie { padding-top: 26px; }
.revision__estado { color: var(--crema); font-size: 1.05rem; min-height: 3.3em; margin-bottom: 14px; }
.revision__aviso { font-size: .9rem; color: rgba(242, 242, 209, .7); margin: 18px 0 0; }

/* ---------- Calculadora de peso ---------- */
.medidas { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--linea); max-width: 34rem; }
.medidas li { padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 1rem; }
.medidas strong { color: var(--tinta); }

.calculadora { background: var(--papel); border: 1px solid var(--linea); border-radius: 6px; padding: clamp(26px, 4vw, 44px); }
.calculadora h3 { font-size: 2rem; margin-bottom: .6em; }
.calculadora__campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calculadora input {
  width: 100%; font: 400 1.15rem/1.4 var(--sans); color: var(--tinta);
  background: var(--hueso); border: 1px solid rgba(29, 70, 56, .32); border-radius: 8px;
  padding: 12px 14px; min-height: 52px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.calculadora input:focus { outline: none; border-color: var(--verde); background: #fff; box-shadow: 0 0 0 3px rgba(29, 70, 56, .16); }
.calculadora [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(155, 44, 31, .12); }
.calculadora .campo__error { margin: -4px 0 14px; }

.resultado { margin-top: 26px; padding: 22px 24px; border-radius: 6px; background: var(--verde); color: var(--crema); }
.resultado p { margin: 0 0 .5em; color: rgba(242, 242, 209, .9); }
.resultado strong { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; color: var(--crema); font-variant-numeric: lining-nums; }
.resultado .boton { margin-top: 12px; }
.resultado:not([hidden]) { animation: abrir .3s ease-out; }
.calculadora__aviso { margin-top: 22px; font-size: .9rem; }
.calculadora__aviso p { margin: 0 0 .8em; }
.calculadora__aviso p:last-child { margin-bottom: 0; }

/* ---------- Así trabajamos (aquí sí hay una secuencia) ---------- */
.proceso__titulo { margin-bottom: clamp(36px, 5vw, 60px); max-width: 16ch; }
.proceso { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: paso; }
.proceso li { position: relative; padding: 0 28px 0 0; }
.proceso li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--linea);
}
.proceso li:last-child::before { right: 28px; }
.proceso__num {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--verde); color: var(--crema);
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1;
  margin-bottom: 22px;
}
.proceso h3 { font-size: 1.55rem; margin-bottom: .35em; }
.proceso p { margin: 0; font-size: 1rem; max-width: 17rem; }

/* ---------- Nosotros ---------- */
.nosotros { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.nosotros__logo {
  background: var(--crema); border-radius: 6px;
  padding: clamp(36px, 6vw, 72px); display: grid; place-items: center;
}
.nosotros__logo img { width: 100%; max-width: 300px; }
.nosotros__texto p { max-width: 38rem; }
.valores { list-style: none; margin: 1.8rem 0 0; padding: 0; max-width: 38rem; border-top: 1px solid var(--linea); }
.valores li { padding: 14px 0; border-bottom: 1px solid var(--linea); }
.valores strong { color: var(--tinta); }

/* ---------- Equipo ---------- */
.equipo { margin-top: clamp(64px, 9vw, 110px); }
.equipo__titulo { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 1.2em; }
.equipo__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.persona__foto { margin: 0; aspect-ratio: 4 / 5; background: var(--crema); border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.persona__foto img { width: 100%; height: 100%; object-fit: cover; }
.persona__foto--vacia img { width: 34%; height: auto; opacity: .4; }
.persona__datos { padding-top: 18px; text-align: center; }
.persona__datos h4 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 2.6vw, 2.25rem); line-height: 1.1; color: var(--tinta); margin: 0 0 6px; }
.persona__datos p { margin: 0; font-size: 1.05rem; }
.persona__datos .boton { margin-top: 18px; min-height: 48px; padding: 0 22px; font-size: .95rem; }

/* ---------- Cobertura ---------- */
.cobertura { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.zonas { margin: 2.2rem 0 0; border-top: 1px solid var(--linea); }
.zonas__grupo { padding: 18px 0; border-bottom: 1px solid var(--linea); }
.zonas dt { font-size: .92rem; font-weight: 600; color: var(--verde-medio); margin-bottom: 4px; }
.zonas dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2; color: var(--tinta); }
.zonas__grupo--secundaria dd { font-size: 1.35rem; font-weight: 500; }

.cobertura__esquema { margin: 0; max-width: 520px; justify-self: center; width: 100%; }
.cobertura__esquema svg { width: 100%; height: auto; display: block; }
.cobertura__esquema figcaption { margin-top: 10px; font-size: .88rem; color: var(--texto); text-align: center; }
.esq__lineas line { stroke: var(--linea); stroke-width: 1; }
.esq__externo { fill: none; stroke: var(--verde-medio); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.esq__interno { fill: var(--verde); stroke: none; }
.esq__puntos circle { fill: var(--verde-medio); }
.esq__puntos .esq__punto--principal { fill: var(--crema); }
.esq__etiquetas text { font: 500 19px var(--sans); fill: var(--tinta); }
.esq__etiquetas .esq__etiqueta--principal { fill: var(--crema); font-family: var(--serif); font-weight: 600; font-size: 24px; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.urgencia {
  margin-top: 2rem; padding: 22px 24px 8px; border-radius: 6px;
  background: var(--verde); color: var(--crema);
}
.urgencia__texto { margin: 0 0 8px; font-size: 1rem; color: rgba(242, 242, 209, .9); }
.urgencia__lista { list-style: none; margin: 0; padding: 0; }
.urgencia__lista li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--linea-clara);
}
.urgencia__lista span { font-size: 1rem; color: rgba(242, 242, 209, .9); }
.urgencia__lista a { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--crema); text-decoration: none; font-variant-numeric: lining-nums; }
.urgencia__lista a:hover { text-decoration: underline; }

.canales { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--linea); }
.canales > li { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.canales__tipo { font-size: .92rem; font-weight: 600; color: var(--verde-medio); }
.canales a, .canales li > span:not(.canales__tipo) { font-size: 1.15rem; color: var(--tinta); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.canales a:hover { color: var(--verde); text-decoration: underline; }
.canales__sub { list-style: none; margin: 4px 0 0; padding: 0; }
.canales__sub li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 6px 0; }
.canales__sub span { font-size: 1.05rem; color: var(--texto); }
.canales__sub a { font-variant-numeric: lining-nums; }

.formulario {
  background: var(--papel); border: 1px solid var(--linea); border-radius: 6px;
  padding: clamp(26px, 4vw, 44px);
  display: flex; flex-direction: column;
}
.formulario h3 { font-size: 2rem; margin-bottom: .25em; }
.formulario__nota { font-size: .95rem; margin-bottom: 1.6rem; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-weight: 600; color: var(--tinta); font-size: .95rem; margin-bottom: 6px; }
.formulario input, .formulario select, .formulario textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans); color: var(--tinta);
  background: var(--hueso); border: 1px solid rgba(29, 70, 56, .32); border-radius: 8px;
  padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.formulario textarea { resize: vertical; }
.formulario input:focus, .formulario select:focus, .formulario textarea:focus {
  outline: none; border-color: var(--verde); background: #fff; box-shadow: 0 0 0 3px rgba(29, 70, 56, .16);
}
.formulario [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(155, 44, 31, .12); }
.campo__error { color: var(--error); font-weight: 600; font-size: .92rem; margin: 6px 0 0; }
.formulario .boton { margin-top: 8px; align-self: flex-start; }

/* ---------- Pie ---------- */
.pie { background: var(--verde-profundo); color: rgba(242, 242, 209, .86); padding: 72px 0 0; font-size: .98rem; }
.pie a { color: var(--crema); text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie__grilla { display: grid; grid-template-columns: auto 1fr 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pie__grilla img { width: 130px; }
.pie__datos p { margin: 0 0 8px; }
.pie__datos strong { color: var(--crema); font-weight: 600; }
.pie__final { margin-top: 56px; padding-bottom: 28px; font-size: .9rem; color: rgba(242, 242, 209, .7); }
.pie__final p { margin: 0; padding-top: 22px; border-top: 1px solid rgba(242, 242, 209, .15); }

/* ---------- Accesos rápidos ---------- */
.whatsapp-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .2s, opacity .2s;
}
.whatsapp-flotante:hover { transform: scale(1.06); }
.en-contacto .whatsapp-flotante { opacity: 0; pointer-events: none; }

.barra-movil { display: none; }

/* ---------- Selector de línea (diálogo) ---------- */
.lineas {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto;
  margin: auto; padding: clamp(24px, 4vw, 36px);
  border: 0; border-radius: 8px; background: var(--hueso); color: var(--texto);
  box-shadow: 0 30px 80px rgba(16, 43, 33, .35);
}
.lineas::backdrop { background: rgba(16, 43, 33, .6); }
.lineas h2 { font-size: clamp(1.8rem, 5vw, 2.2rem); margin: 0 36px .2em 0; }
.lineas__texto { margin: 0 0 1.2rem; font-size: 1rem; }
.lineas__cerrar { position: absolute; top: 10px; right: 12px; margin: 0; }
.lineas__cerrar button {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
  font-size: 2rem; line-height: 1; color: var(--tinta); cursor: pointer;
}
.lineas__cerrar button:hover { background: var(--crema); }
.lineas__lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.lineas__lista li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px 12px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--linea);
}
.lineas__lista strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: var(--tinta); }
.lineas__lista span { font-size: .95rem; }
.lineas__lista .boton { min-height: 46px; padding: 0 20px; font-size: .95rem; }
.lineas__llamar {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px;
  border: 2px solid var(--verde); border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--verde);
}
.lineas__llamar:hover { background: var(--crema); }
.lineas--llamar .lineas__lista .boton { display: none; }
.lineas--llamar .lineas__lista li { grid-template-columns: 1fr auto; }
.lineas:not(.lineas--llamar) .lineas__llamar { background: transparent; }
@media (max-width: 480px) {
  .lineas__lista li { grid-template-columns: 1fr 1fr; }
  .lineas__lista li > div { grid-column: 1 / -1; }
  .lineas--llamar .lineas__lista li { grid-template-columns: 1fr; }
}

/* ---------- Tabletas ---------- */
@media (max-width: 960px) {
  .dos-columnas, .destacado__grilla, .nosotros, .cobertura, .contacto { grid-template-columns: 1fr; }
  .dos-columnas__intro { position: static; }
  .nosotros__logo { max-width: 420px; }
  .proceso { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .proceso li:nth-child(2)::before { right: 28px; }
  .pie__grilla { grid-template-columns: 1fr 1fr; }
  .pie__grilla img { grid-column: 1 / -1; }
  .portada__datos { grid-template-columns: 1fr; }
  .portada__datos li, .portada__datos li + li { padding: 18px 0; border-left: 0; }
  .portada__datos li + li { border-top: 1px solid var(--linea-clara); }
  .portada__datos span { max-width: none; }
}

/* ---------- Celulares ---------- */
@media (max-width: 900px) {
  .menu-boton { display: flex; }
  .menu {
    position: absolute; top: var(--alto-cabecera); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--hueso); border-bottom: 1px solid var(--linea);
    padding: 8px 24px 22px;
    box-shadow: 0 16px 30px rgba(16, 43, 33, .1);
    display: none;
  }
  .menu.abierto { display: flex; }
  .menu a:not(.boton), .cabecera--solida .menu a:not(.boton) {
    color: var(--tinta); padding: 15px 0; border-bottom: 1px solid var(--linea); font-size: 1.08rem;
  }
  .menu a:not(.boton):hover, .menu a:not(.boton)[aria-current="true"] { border-bottom-color: var(--linea); color: var(--verde); }
  .menu .boton, .cabecera:not(.cabecera--solida) .menu .boton { margin-top: 16px; background: var(--verde); border-color: var(--verde); color: var(--crema); }
}

@media (max-width: 760px) {
  :root { --alto-cabecera: 72px; }
  .whatsapp-flotante { display: none; }

  .barra-movil {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 251, 244, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--linea);
    transition: transform .25s;
  }
  .barra-movil a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border-radius: 999px; font-weight: 600; text-decoration: none;
  }
  .barra-movil__llamar { border: 2px solid var(--verde); color: var(--verde); }
  .barra-movil__whatsapp { background: var(--whatsapp-oscuro); color: #fff; }
  .en-contacto .barra-movil { transform: translateY(110%); }
  .pie__final { padding-bottom: 96px; }
}

@media (max-width: 600px) {
  .contenedor { padding-inline: 20px; }
  .portada__arte { width: 130vw; right: -52%; top: 44%; opacity: .16; }
  .portada__acciones .boton { width: 100%; }
  .proceso { grid-template-columns: 1fr; row-gap: 0; }
  .proceso li { padding: 0 0 36px 64px; }
  .proceso li::before { left: 21px; right: auto; top: 44px; bottom: 0; width: 1px; height: auto; }
  .proceso li:last-child { padding-bottom: 0; }
  .proceso li:last-child::before { display: none; }
  .proceso li:nth-child(2)::before { right: auto; }
  .proceso__num { position: absolute; left: 0; top: 0; margin: 0; }
  .item__cuerpo { padding-right: 0; }
  .item summary { padding: 20px 0; }
  .equipo__lista { grid-template-columns: 1fr; gap: 40px; }
  .persona { max-width: 280px; margin: 0 auto; width: 100%; }
  .formulario .boton { align-self: stretch; }
  .calculadora__campos { grid-template-columns: 1fr; gap: 0; }
  .pie__grilla { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Página 404 ---------- */
.pagina-error {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  background: var(--verde); color: var(--crema); padding: 48px 0;
}
.pagina-error img { margin: 0 auto 28px; }
.pagina-error h1 { color: var(--crema); max-width: none; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.pagina-error p { max-width: 30rem; margin: 0 auto 2rem; color: rgba(242, 242, 209, .9); font-size: 1.15rem; }
