/* Estudio Quiroga & Asociados · clásico azul marino, blanco y dorado */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/pf700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/pf500i.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }

:root {
  --azul: #0f2447;
  --azul-oscuro: #091a35;
  --azul-claro: #1b3b6b;
  --azul-tinte: #eef2f8;
  --dorado: #c5a04a;
  --dorado-claro: #e6c978;
  --dorado-texto: #7a5c15;
  --marfil: #f8f5ee;
  --linea: #e3dcc9;
  --linea-suave: #eeeae0;
  --tinta: #182033;
  --gris: #4a5468;
  --verde-wa: #17753f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ancho: 1160px;
  --margen: max(20px, calc((100% - var(--ancho)) / 2));
  --cartel-alto: 30px;
  --barra-alto: 68px;
  --radio: 4px;
  --sombra-1: 0 1px 2px rgb(15 36 71 / 0.05), 0 6px 18px rgb(15 36 71 / 0.06);
  --sombra-2: 0 2px 4px rgb(15 36 71 / 0.06), 0 18px 40px rgb(15 36 71 / 0.14);
  --suave: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 0.25s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cartel-alto) + var(--barra-alto) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.7 var(--sans); color: var(--tinta); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-claro); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--dorado-texto); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--azul); margin: 0 0 0.5em; text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.3rem, 6.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
em { font-family: var(--serif); font-weight: 500; }
::selection { background: var(--dorado-claro); color: var(--azul-oscuro); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--azul); color: #fff; padding: 10px 14px; border-radius: var(--radio); }
.saltar:focus { top: 40px; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 2px; }

/* Botones */
.boton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0.75em 1.7em;
  font: 600 0.96rem/1.2 var(--sans); letter-spacing: 0.02em;
  color: var(--azul-oscuro); background: var(--dorado);
  border: 1.5px solid var(--dorado); border-radius: var(--radio);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgb(15 36 71 / 0.08);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t) var(--suave), box-shadow var(--t);
}
.boton:hover { background: #d4b05a; border-color: #d4b05a; color: var(--azul-oscuro); transform: translateY(-2px); box-shadow: 0 10px 22px rgb(15 36 71 / 0.16); }
.boton:active { transform: translateY(0); box-shadow: 0 1px 2px rgb(15 36 71 / 0.08); }
.boton-contorno { background: transparent; color: var(--azul); border-color: var(--azul); box-shadow: none; }
.boton-contorno:hover { background: var(--azul); color: #fff; border-color: var(--azul); }
.boton-azul { background: var(--azul); border-color: var(--azul); color: #fff; }
.boton-azul:hover { background: var(--azul-claro); border-color: var(--azul-claro); color: #fff; }
.boton-wa { background: var(--verde-wa); border-color: var(--verde-wa); color: #fff; }
.boton-wa:hover { background: #12622f; border-color: #12622f; color: #fff; }
.boton svg { width: 20px; height: 20px; flex: none; }
.boton-chico { min-height: 42px; padding: 0.5em 1.15em; font-size: 0.9rem; }

/* Cartel de demo, fijo arriba de todo */
.cartel-demo {
  position: sticky; top: 0; z-index: 40;
  height: var(--cartel-alto); line-height: var(--cartel-alto);
  padding: 0 12px; text-align: center;
  background: var(--azul-oscuro); color: #c9d3e6;
  font-size: 0.76rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cartel-demo a { color: var(--dorado-claro); font-weight: 600; }
.cartel-demo a:hover { color: #fff; }

/* Barra superior */
.barra {
  position: sticky; top: var(--cartel-alto); z-index: 30;
  height: var(--barra-alto);
  display: flex; align-items: center; gap: 16px;
  padding: 0 max(16px, calc((100% - var(--ancho)) / 2));
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
  transition: box-shadow var(--t);
}
.barra.compacta { box-shadow: 0 8px 24px rgb(15 36 71 / 0.08); }
.marca { display: flex; align-items: center; gap: 12px; color: var(--azul); text-decoration: none; white-space: nowrap; margin-right: auto; }
.marca:hover { color: var(--azul); }
.marca-icono { width: 40px; height: 40px; flex: none; border-radius: 3px; box-shadow: 0 2px 6px rgb(15 36 71 / 0.25); }
.marca-texto { display: flex; flex-direction: column; font: 700 1.1rem/1.1 var(--serif); letter-spacing: -0.01em; }
.marca-texto small { font: 500 0.62rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dorado-texto); margin-top: 4px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a { position: relative; display: block; padding: 10px 13px; color: var(--azul); text-decoration: none; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; border-radius: 3px; }
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; background: var(--dorado); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--suave); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--azul-claro); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.menu-boton { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--linea); background: #fff; border-radius: var(--radio); color: var(--azul); cursor: pointer; transition: border-color var(--t), background var(--t); }
.menu-boton:hover { border-color: var(--dorado); background: var(--marfil); }
.menu-boton svg { width: 22px; height: 22px; }
.barra .boton { display: none; }

@media (max-width: 899px) {
  .barra.abierta .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--barra-alto);
    background: #fff; padding: 8px 20px 18px; border-bottom: 1px solid var(--linea); border-top: 2px solid var(--dorado); box-shadow: 0 18px 30px rgb(9 26 53 / 0.14);
    animation: bajar 0.25s var(--suave);
  }
  .barra.abierta .nav-links a { padding: 14px 4px; font-size: 1.04rem; border-bottom: 1px solid var(--linea-suave); border-radius: 0; }
  .barra.abierta .nav-links a::after { display: none; }
  .barra.abierta .nav-links li:last-child a { border-bottom: 0; }
}
@media (min-width: 900px) {
  :root { --barra-alto: 76px; }
  .nav-links { display: flex; }
  .menu-boton { display: none; }
  .barra .boton { display: inline-flex; margin-left: 10px; }
}
@media (min-width: 900px) and (max-width: 1099px) { .nav-links a { padding: 10px 9px; font-size: 0.87rem; } .nav-links a::after { left: 9px; right: 9px; } }
@media (max-width: 380px) { .marca-texto { font-size: 0.98rem; } .marca-icono { width: 34px; height: 34px; } }

/* Secciones */
.seccion { padding: 72px var(--margen); }
.seccion-marfil { background: var(--marfil); border-top: 1px solid var(--linea-suave); border-bottom: 1px solid var(--linea-suave); }
.encabezado { max-width: 700px; margin-bottom: 44px; }
.encabezado h2 { margin-bottom: 0.45em; }
.encabezado p:last-child { color: var(--gris); margin-bottom: 0; font-size: 1.06rem; }
.sobretitulo { font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dorado-texto); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.sobretitulo::before { content: ""; width: 32px; height: 1.5px; background: var(--dorado); flex: none; }
@media (min-width: 900px) { .seccion { padding-top: 104px; padding-bottom: 104px; } .encabezado { margin-bottom: 56px; } }

/* Portada */
.portada {
  position: relative; display: grid; gap: 40px; padding: 44px var(--margen) 64px; align-items: center; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--marfil) 100%);
}
.portada::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 15%, rgb(197 160 74 / 0.12), transparent 42%), radial-gradient(circle at 10% 90%, rgb(27 59 107 / 0.06), transparent 40%); }
.portada > * { position: relative; }
.portada-texto .bajada { font-size: 1.12rem; line-height: 1.7; color: var(--gris); max-width: 32em; }
.portada h1 em { color: var(--dorado-texto); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.portada-datos { list-style: none; padding: 24px 0 0; margin: 34px 0 0; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.9rem; font-weight: 500; color: var(--gris); }
.portada-datos li { display: flex; align-items: center; gap: 9px; }
.portada-datos svg { width: 18px; height: 18px; color: var(--dorado-texto); flex: none; }
.portada-foto { position: relative; margin: 0 16px 16px 0; }
.portada-foto::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid var(--dorado); z-index: 0; }
.portada-foto img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: var(--sombra-2); }
.portada-sello {
  position: absolute; z-index: 2; left: 18px; bottom: -4px;
  display: grid; justify-items: center; gap: 2px;
  padding: 14px 18px 12px; background: #fff; border: 1px solid var(--linea); border-top: 3px solid var(--dorado);
  box-shadow: var(--sombra-2); border-radius: 3px; text-align: center;
}
.portada-sello strong { font: 700 1.9rem/1 var(--serif); color: var(--azul); }
.portada-sello span { font: 600 0.64rem/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dorado-texto); }
@media (min-width: 900px) {
  .portada { grid-template-columns: 1.1fr 1fr; gap: 72px; padding-top: 88px; padding-bottom: 104px; }
  .portada-foto img { aspect-ratio: 4 / 4.5; }
  .portada-sello { left: -28px; bottom: 36px; }
}

/* Entrada de la portada (sólo transformaciones en lo que puede ser el LCP) */
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes subir-solo { from { transform: translateY(14px); } to { transform: none; } }
@keyframes bajar { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes latir { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.7); opacity: 0; } }
.js .portada h1 { animation: subir-solo 0.7s var(--suave) both; }
.js .portada .sobretitulo { animation: subir 0.6s var(--suave) 0.05s both; }
.js .portada .bajada { animation: subir 0.6s var(--suave) 0.18s both; }
.js .portada .acciones { animation: subir 0.6s var(--suave) 0.3s both; }
.js .portada-datos { animation: subir 0.6s var(--suave) 0.42s both; }
.js .portada-foto { animation: subir-solo 0.9s var(--suave) both; }
.js .portada-sello { animation: subir 0.6s var(--suave) 0.55s both; }

/* Aparición al hacer scroll */
.js .revelar { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--suave), transform 0.7s var(--suave); }
.js .revelar.visible { opacity: 1; transform: none; }

/* Servicios */
.tarjetas { display: grid; gap: 20px; }
.tarjeta {
  position: relative; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 32px 28px 26px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--sombra-1);
  transition: transform 0.35s var(--suave), box-shadow 0.35s var(--suave), border-color 0.35s;
}
.tarjeta::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 56px; background: var(--dorado); transition: width 0.5s var(--suave); }
.tarjeta:hover { transform: translateY(-5px); box-shadow: var(--sombra-2); border-color: #d6cdb3; }
.tarjeta:hover::before { width: 100%; }
.tarjeta-icono { width: 56px; height: 56px; padding: 14px; color: var(--azul); background: var(--azul-tinte); border-radius: 50%; margin-bottom: 20px; transition: background 0.35s, color 0.35s; }
.tarjeta:hover .tarjeta-icono { background: var(--azul); color: var(--dorado-claro); }
.tarjeta h3 { margin-bottom: 0.4em; }
.tarjeta p { color: var(--gris); font-size: 0.97rem; }
.tarjeta ul { list-style: none; margin: 0 0 22px; padding: 0; color: var(--gris); font-size: 0.93rem; }
.tarjeta li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.tarjeta li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 13px; height: 13px; background: var(--dorado-texto); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.tarjeta-pie { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--linea-suave); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.precio { margin: 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); line-height: 1.3; }
.precio strong { display: block; font: 700 1.12rem/1.25 var(--serif); letter-spacing: 0; text-transform: none; color: var(--azul); margin-top: 2px; }
.enlace-wa { position: relative; font-weight: 600; font-size: 0.92rem; color: var(--verde-wa); text-decoration: none; padding: 6px 0; }
.enlace-wa::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform-origin: left; transition: transform 0.3s var(--suave); }
.enlace-wa:hover { color: #0f5a2d; }
.enlace-wa:hover::after { transform: scaleX(0.55); }
.aclaracion { margin: 28px 0 0; font-size: 0.86rem; color: var(--gris); max-width: 70ch; }
@media (min-width: 700px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* Por qué elegirnos */
.nosotros { position: relative; background: var(--azul); color: #d6deed; overflow: hidden; }
.nosotros::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0%, rgb(197 160 74 / 0.16), transparent 36%), radial-gradient(circle at 0% 100%, rgb(255 255 255 / 0.05), transparent 40%); }
.nosotros > * { position: relative; }
.nosotros h2, .nosotros h3 { color: #fff; }
.nosotros .sobretitulo { color: var(--dorado-claro); }
.nosotros .sobretitulo::before { background: var(--dorado-claro); }
.nosotros .encabezado p:last-child { color: #b9c6de; }
.cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 0 56px; border-top: 1px solid rgb(255 255 255 / 0.14); border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.cifra { padding: 28px 16px; text-align: center; border-right: 1px solid rgb(255 255 255 / 0.14); }
.cifra:nth-child(2n) { border-right: 0; }
.cifra:nth-child(-n + 2) { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.cifra strong { display: block; font: 700 clamp(2.2rem, 6.4vw, 3.2rem)/1 var(--serif); color: var(--dorado-claro); margin-bottom: 10px; letter-spacing: -0.02em; }
.cifra span { font-size: 0.86rem; letter-spacing: 0.04em; color: #b9c6de; }
.motivos { display: grid; gap: 32px; }
.motivo { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.motivo-num { font: 700 1.1rem/1 var(--serif); color: var(--dorado-claro); padding-top: 6px; border-top: 1.5px solid var(--dorado); margin-top: 4px; }
.motivo h3 { margin-bottom: 8px; font-size: 1.25rem; }
.motivo p { margin: 0; color: #b9c6de; font-size: 0.97rem; }
@media (min-width: 800px) {
  .cifras { grid-template-columns: repeat(4, 1fr); }
  .cifra { padding: 36px 20px; }
  .cifra:nth-child(2n) { border-right: 1px solid rgb(255 255 255 / 0.14); }
  .cifra:nth-child(-n + 2) { border-bottom: 0; }
  .cifra:last-child { border-right: 0; }
  .motivos { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* Equipo */
.equipo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.persona-foto { position: relative; overflow: hidden; border-radius: var(--radio); box-shadow: var(--sombra-1); background: var(--marfil); }
.persona-foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--dorado); transform: scaleX(0.35); transform-origin: left; transition: transform 0.45s var(--suave); }
.persona:hover .persona-foto::after { transform: scaleX(1); }
.persona img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.7s var(--suave); }
.persona:hover img { transform: scale(1.04); }
.persona h3 { font-size: 1.1rem; margin: 16px 0 3px; }
.persona .rol { font-size: 0.92rem; color: var(--gris); margin: 0 0 6px; line-height: 1.45; }
.persona .matricula { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dorado-texto); font-weight: 600; margin: 0; line-height: 1.4; }
@media (min-width: 800px) { .equipo { grid-template-columns: repeat(4, 1fr); gap: 32px; } .persona h3 { font-size: 1.2rem; } }

/* FAQ */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--linea); transition: background var(--t); }
.faq details:first-child { border-top: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 4px; font: 700 1.12rem/1.35 var(--serif); color: var(--azul); transition: color var(--t); }
.faq summary:hover { color: var(--azul-claro); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--dorado); color: var(--dorado-texto); font: 300 1.5rem/1 var(--sans); border-radius: 50%; transition: transform 0.35s var(--suave), background var(--t), color var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--dorado); color: var(--azul-oscuro); }
.faq details p { margin: 0 0 24px; padding: 0 4px; color: var(--gris); max-width: 64ch; }
.js .faq details[open] p { animation: subir 0.4s var(--suave); }
.faq-cierre { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.faq-cierre p { margin: 0; color: var(--gris); font-size: 1.05rem; }

/* Blog */
.notas { display: grid; gap: 24px; }
.nota { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--sombra-1); transition: transform 0.35s var(--suave), box-shadow 0.35s var(--suave); }
.nota:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.nota > a { display: block; overflow: hidden; }
.nota img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.8s var(--suave); }
.nota:hover img { transform: scale(1.05); }
.nota-cuerpo { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.nota-etiqueta { font: 600 0.68rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dorado-texto); margin: 0 0 10px; }
.nota h3, .nota-titulo { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.25; }
.nota h3 a, .nota-titulo a { color: var(--azul); text-decoration: none; }
.nota h3 a:hover, .nota-titulo a:hover { color: var(--azul-claro); text-decoration: underline; text-decoration-color: var(--dorado); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nota p { color: var(--gris); font-size: 0.95rem; }
.leer, .enlace-mas { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--azul); text-decoration: none; }
.leer::after, .enlace-mas::after { content: "→"; transition: transform 0.3s var(--suave); }
.leer:hover, .enlace-mas:hover { color: var(--dorado-texto); }
.leer:hover::after, .enlace-mas:hover::after { transform: translateX(4px); }
.nota .leer { margin-top: auto; padding-top: 6px; }
.ver-mas { margin: 32px 0 0; }
@media (min-width: 800px) { .notas { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* Contacto */
.contacto { display: grid; gap: 40px; }
.contacto .encabezado { margin-bottom: 28px; }
.formulario { background: #fff; border: 1px solid var(--linea); border-top: 3px solid var(--dorado); border-radius: var(--radio); padding: 28px 22px; box-shadow: var(--sombra-1); }
.campo { margin-bottom: 20px; }
.campo label { display: block; font-weight: 600; font-size: 0.86rem; letter-spacing: 0.01em; margin-bottom: 7px; color: var(--azul); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--tinta);
  background: #fff; border: 1.5px solid #c4bca6; border-radius: var(--radio);
  transition: border-color var(--t), box-shadow var(--t);
}
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--azul-claro); }
.campo input::placeholder, .campo textarea::placeholder { color: #8a92a3; }
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgb(197 160 74 / 0.45); }
.fila { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .fila { grid-template-columns: 1fr 1fr; } }
.error { color: #a4231a; font-weight: 600; font-size: 0.92rem; margin: 0 0 14px; }
.formulario .nota-chica { margin: 16px 0 0; font-size: 0.84rem; color: var(--gris); }
.datos-contacto h3 { margin-top: 0; }
.datos { list-style: none; padding: 0; margin: 0 0 28px; }
.datos li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); color: var(--gris); }
.datos svg { width: 20px; height: 20px; color: var(--dorado-texto); margin-top: 3px; }
.datos strong { color: var(--azul); font-weight: 600; }
.datos a { color: var(--azul-claro); }
@media (min-width: 900px) { .contacto { grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; } .formulario { padding: 38px 36px; } .datos-contacto { padding-top: 130px; } }

/* Ubicación */
.ubicacion { display: grid; gap: 32px; }
.mapa { border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; background: var(--marfil); min-height: 320px; box-shadow: var(--sombra-1); }
.mapa iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (min-width: 900px) { .ubicacion { grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: stretch; } .mapa iframe { min-height: 440px; } }

/* Pie */
.pie { background: var(--azul-oscuro); color: #aab7cf; padding: 56px var(--margen) 100px; font-size: 0.92rem; border-top: 3px solid var(--dorado); }
.pie-grilla { display: grid; gap: 30px; margin-bottom: 36px; }
.pie-marca { font: 700 1.35rem/1.2 var(--serif); color: #fff; margin: 0 0 10px; letter-spacing: -0.01em; }
.pie h2 { font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dorado-claro); margin: 0 0 14px; }
.pie p { margin: 0 0 6px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: 8px; }
.pie a { color: #dbe3f1; text-decoration: none; }
.pie a:hover { color: var(--dorado-claro); text-decoration: underline; }
.pie-demo { border-top: 1px solid rgb(255 255 255 / 0.14); padding-top: 22px; font-size: 0.84rem; color: #8f9db8; }
.pie-demo a { color: var(--dorado-claro); font-weight: 600; }
@media (min-width: 800px) { .pie-grilla { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } }

/* WhatsApp flotante */
.wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 35;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde-wa); color: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
  transition: transform 0.3s var(--suave), box-shadow 0.3s;
}
.wa-flotante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--verde-wa); animation: latir 2.2s ease-out infinite; }
.wa-flotante:hover { transform: translateY(-3px) scale(1.04); color: #fff; box-shadow: 0 14px 30px rgb(0 0 0 / 0.3); }
.wa-flotante svg { width: 30px; height: 30px; position: relative; }

/* Notas del blog */
.articulo { max-width: 740px; margin: 0 auto; padding: 40px 20px 72px; }
.migas { font-size: 0.84rem; letter-spacing: 0.01em; color: var(--gris); margin-bottom: 26px; }
.migas a { color: var(--gris); text-decoration: none; }
.migas a:hover { color: var(--dorado-texto); text-decoration: underline; }
.articulo h1 { font-size: clamp(2rem, 5.6vw, 3rem); margin-bottom: 16px; }
.articulo-meta { color: var(--gris); font-size: 0.88rem; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--linea); }
.articulo-portada { margin: 0 0 36px; }
.articulo-portada img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radio); box-shadow: var(--sombra-2); }
.articulo-cuerpo { font-size: 1.08rem; line-height: 1.75; }
.articulo-cuerpo h2 { font-size: 1.6rem; margin: 1.7em 0 0.55em; padding-top: 0.6em; border-top: 1px solid var(--linea-suave); }
.articulo-cuerpo .entrada { font: 500 1.28rem/1.5 var(--serif); font-style: italic; color: var(--azul-claro); margin-bottom: 1.4em; }
.articulo-cuerpo ol, .articulo-cuerpo ul { padding-left: 1.3em; }
.articulo-cuerpo li { margin-bottom: 0.55em; }
.articulo-cuerpo li::marker { color: var(--dorado-texto); font-weight: 600; }
.recuadro { background: var(--marfil); border-left: 3px solid var(--dorado); border-radius: 0 var(--radio) var(--radio) 0; padding: 20px 24px; margin: 1.8em 0; font-size: 0.98rem; }
.recuadro p:last-child { margin: 0; }
.articulo-cta { position: relative; overflow: hidden; margin: 48px 0 0; padding: 36px 28px; background: var(--azul); color: #d6deed; border-radius: var(--radio); box-shadow: var(--sombra-2); }
.articulo-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0%, rgb(197 160 74 / 0.2), transparent 45%); }
.articulo-cta > * { position: relative; }
.articulo-cta h2 { color: #fff; font-size: 1.5rem; margin-top: 0; }
.articulo-cta p { margin-bottom: 22px; }
.aviso { font-size: 0.85rem; color: var(--gris); margin-top: 28px; }
.mas-notas { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--linea); }
.mas-notas h2 { font-size: 1.3rem; }
.mas-notas ul { list-style: none; padding: 0; margin: 0; }
.mas-notas li { padding: 10px 0; border-bottom: 1px solid var(--linea-suave); }
.mas-notas a { font-weight: 500; text-decoration: none; color: var(--azul); }
.mas-notas a:hover { color: var(--dorado-texto); text-decoration: underline; }
.encabezado-pagina { padding: 52px var(--margen) 12px; }
.encabezado-pagina h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.encabezado-pagina p { color: var(--gris); max-width: 640px; font-size: 1.1rem; }
.listado-notas { padding-top: 32px; }
.pagina-angosta { max-width: 800px; margin: 0 auto; }
.pagina-angosta li { margin-bottom: 0.5em; }

/* Cifras alineadas (Playfair usa números "de texto" por defecto) */
h1, h2, h3, .cifra strong, .precio strong, .motivo-num, .marca-texto, .portada-sello strong { font-variant-numeric: lining-nums; }
@media (min-width: 700px) { .articulo-portada img { aspect-ratio: 2 / 1; } }

/* Menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revelar { opacity: 1; transform: none; }
  .tarjeta:hover, .nota:hover, .boton:hover, .wa-flotante:hover { transform: none; }
  .persona:hover img, .nota:hover img { transform: none; }
}
