/* Bihotzez Zaintza — estilos basados en la tarjeta de presentación */
:root {
  --verde: #8a9a74;         /* salvia: solo decorativo */
  --verde-osc: #4e5c41;     /* textos y titulares (contraste AA) */
  --verde-suave: #eef1e6;
  --verde-borde: #dde3d1;
  --rosa: #e3a99c;          /* rosa empolvado: solo decorativo */
  --rosa-osc: #a8574b;      /* botón llamar (texto blanco AA) */
  --rosa-suave: #f8e6e0;
  --piel: #cfae8f;
  --wa: #0f7a5c;
  --fondo: #fbf7f0;
  --blanco: #ffffff;
  --texto: #3d3a33;
  --texto-suave: #625d53;
  --radio: 18px;
  --sombra: 0 6px 24px rgba(78, 92, 65, .10);
  --script: 'Courgette', 'Brush Script MT', cursive;
  --mano: 'Caveat', 'Segoe Script', cursive;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ancho: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-osc); text-underline-offset: 3px; }
a:hover { color: var(--rosa-osc); }
:focus-visible { outline: 3px solid var(--rosa-osc); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--verde-osc); line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--verde-osc); color: #fff; padding: 8px 14px; z-index: 100; }
.saltar:focus { left: 8px; }
.ico { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

.franja-borrador { background: #fff4c2; color: #5a4a00; text-align: center; font-size: .9rem; padding: 6px 12px; font-weight: 700; }

/* ---------- Cabecera ---------- */
.cabecera { background: rgba(251, 247, 240, .95); border-bottom: 1px solid var(--verde-borde); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.cabecera-in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; line-height: 1; margin-right: auto; }
.logo-emblema { width: 54px; height: auto; flex: none; }
.logo-txt { display: flex; flex-direction: column; }
.logo-nombre { font-family: var(--script); font-weight: 400; font-size: 1.75rem; color: var(--verde-osc); }
.logo-lema { font-size: .8rem; color: var(--texto-suave); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.menu summary { list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--verde-osc); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--fondo); border-bottom: 1px solid var(--verde-borde); box-shadow: var(--sombra); }
.menu ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.menu li a { display: block; padding: 12px 0; font-weight: 700; text-decoration: none; font-size: 1.15rem; border-bottom: 1px solid var(--verde-borde); }
.menu a[aria-current="page"] { color: var(--rosa-osc); }
.cabecera .btn-cabecera, .nav-escritorio { display: none; }
.logo-nombre { white-space: nowrap; }
@media (min-width: 800px) { .cabecera .btn-cabecera { display: inline-flex; } }
.nav-escritorio ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav-escritorio a { font-weight: 700; text-decoration: none; }
.nav-escritorio a[aria-current="page"] { color: var(--rosa-osc); }
@media (min-width: 1060px) {
  .menu { display: none; }
  .nav-escritorio { display: block; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 1.05rem; text-decoration: none; color: #fff; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.14); filter: brightness(1.05); }
.btn-llamar { background: var(--rosa-osc); }
.btn-wa { background: var(--wa); }
.btn-sec { background: var(--blanco); color: var(--verde-osc); border: 2px solid var(--verde-osc); }
.btn-sec:hover { color: var(--verde-osc); }
.cta-botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Migas ---------- */
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 0; margin: 0; font-size: .92rem; color: var(--texto-suave); }
.migas.contenedor ol { padding-left: 0; }
.migas li + li::before { content: '›'; margin-right: 6px; color: var(--verde); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 48px; }
.hero::before { content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(circle at 40% 40%, rgba(138,154,116,.22), rgba(138,154,116,0) 65%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(227,169,156,.24), rgba(227,169,156,0) 65%); border-radius: 50%; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.hero-marca { font-family: var(--mano); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 2.5rem); color: var(--rosa-osc); margin: 0 0 .1em; line-height: 1.1; }
.hero p.entradilla { font-size: 1.2rem; color: var(--texto-suave); max-width: 36em; }
/* Ilustración en acuarela de la tarjeta, fundida con el fondo */
.hero-ilustracion { justify-self: center; max-width: 420px; width: 100%; }
.hero-ilustracion img {
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.hero-puntos { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.hero-puntos li { display: flex; gap: 10px; align-items: flex-start; }
.hero-puntos .ico { color: var(--rosa-osc); margin-top: .25em; }
@media (min-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; }
  .hero-ilustracion { max-width: 440px; }
}

/* Cabecera de páginas interiores */
.cab-pagina { padding: 28px 0 36px; background: linear-gradient(180deg, var(--verde-suave), var(--fondo)); }
.cab-pagina p.entradilla { font-size: 1.18rem; color: var(--texto-suave); max-width: 40em; }

/* ---------- Secciones ---------- */
.seccion { padding: 48px 0; }
.seccion-suave { background: var(--verde-suave); }
.estrecho { max-width: 780px; }
.rejilla-2, .rejilla-3, .rejilla-4 { display: grid; gap: 20px; }
@media (min-width: 720px) { .rejilla-2 { grid-template-columns: 1fr 1fr; } .rejilla-3 { grid-template-columns: repeat(3, 1fr); } .rejilla-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rejilla-4 { grid-template-columns: repeat(4, 1fr); } }

.tarjeta { background: var(--blanco); border: 1px solid var(--verde-borde); border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.tarjeta p { color: var(--texto-suave); }
.tarjeta .mas { margin-top: auto; font-weight: 800; }
a.tarjeta { text-decoration: none; color: inherit; transition: transform .15s; }
a.tarjeta:hover { transform: translateY(-3px); }
a.tarjeta h3 { color: var(--verde-osc); }

.lista-check { list-style: none; padding: 0; display: grid; gap: 10px; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; }
.lista-check .ico { color: var(--verde-osc); margin-top: .25em; }

.pasos { counter-reset: paso; list-style: none; padding: 0; display: grid; gap: 18px; }
.pasos li { counter-increment: paso; position: relative; padding-left: 58px; }
.pasos li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--verde-osc); color: #fff; font-weight: 800; display: grid; place-items: center; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--blanco); border: 1px solid var(--verde-borde); border-radius: 999px; padding: 6px 14px; font-size: 1rem; }

/* Persona */
.persona { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .persona { grid-template-columns: 340px 1fr; } }
.foto-persona { border-radius: 200px 200px var(--radio) var(--radio); aspect-ratio: 4/5; object-fit: cover; width: 100%; max-width: 340px; }
.foto-hueco { background: repeating-linear-gradient(45deg, var(--verde-suave), var(--verde-suave) 12px, #e3e9d8 12px, #e3e9d8 24px); border: 2px dashed var(--verde); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--verde-osc); font-weight: 700; }
.firma { font-family: var(--mano); font-size: 2.4rem; color: var(--verde-osc); margin: 0; }

/* Opiniones */
.opiniones { padding: 48px 0; background: var(--rosa-suave); }
.opinion { margin: 0; background: var(--blanco); border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); }
.opinion blockquote { margin: 0 0 12px; font-size: 1.08rem; }
.opinion figcaption { font-weight: 800; color: var(--verde-osc); }
.hueco-opiniones { border: 2px dashed var(--rosa); border-radius: var(--radio); padding: 32px 24px; text-align: center; color: var(--texto-suave); background: rgba(255,255,255,.6); }
.aviso-ejemplo { font-size: .95rem; color: #7a5a00; background: #fff4c2; display: inline-block; padding: 4px 12px; border-radius: 8px; }

/* Banda CTA */
.banda-cta { background: var(--verde-osc); color: #fff; padding: 48px 0; text-align: center; }
.banda-cta h2 { color: #fff; }
.banda-cta p { max-width: 38em; margin: 0 auto 22px; color: #eef1e6; }
.banda-cta .cta-botones { justify-content: center; }

/* FAQ */
.faq { margin: 8px 0; }
.faq details { background: var(--blanco); border: 1px solid var(--verde-borde); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 800; color: var(--verde-osc); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--rosa-osc); }
.faq details[open] summary::after { content: '–'; }
.faq-r { padding: 0 18px 16px; }

/* Tabla tarifas */
.tabla-tarifas { width: 100%; border-collapse: collapse; background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.tabla-tarifas th, .tabla-tarifas td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--verde-borde); vertical-align: top; }
.tabla-tarifas th { background: var(--verde-osc); color: #fff; }
.tabla-tarifas td.precio { font-weight: 800; color: var(--rosa-osc); white-space: nowrap; }
@media (max-width: 600px) {
  .tabla-tarifas thead { display: none; }
  .tabla-tarifas tr { display: block; border-bottom: 1px solid var(--verde-borde); padding: 10px 0; }
  .tabla-tarifas td { display: block; border: 0; padding: 4px 16px; }
}

/* Avisos */
.nota { background: var(--verde-suave); border-left: 4px solid var(--verde); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 1rem; }
.pendiente { background: #fff4c2; padding: 0 4px; border-radius: 4px; }

/* Formularios */
.form { display: grid; gap: 16px; background: var(--blanco); padding: 24px; border-radius: var(--radio); box-shadow: var(--sombra); border: 1px solid var(--verde-borde); }
.form label { font-weight: 700; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 2px solid var(--verde-borde); border-radius: 12px; background: var(--fondo); color: var(--texto); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--verde-osc); outline: none; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .98rem; }
.form .check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.form .btn { width: 100%; }
.form-ayuda { font-size: .92rem; color: var(--texto-suave); margin: 0; }

/* Pie */
.pie { background: #343c2d; color: #e4e8dc; padding: 48px 0 110px; margin-top: 0; }
.pie a { color: #fff; }
.pie a:hover { color: #f3c9bf; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pie-rejilla { display: grid; gap: 28px; }
@media (min-width: 800px) { .pie-rejilla { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .pie { padding-bottom: 32px; } }
.pie-logo { color: #f1ece2; font-size: 2.2rem; margin: 0 0 8px; }
.pie-titulo { font-weight: 800; color: #fff; margin-bottom: 10px; }
.pie-legal { border-top: 1px solid #4d5642; margin-top: 32px; padding-top: 18px; font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.pie-legal p { margin: 0; }

/* Barra móvil fija */
.barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,247,240,.97); border-top: 1px solid var(--verde-borde); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.barra-movil .btn { min-height: 50px; padding: 10px; }
@media (min-width: 800px) { .barra-movil { display: none; } }

/* Utilidades */
.centro { text-align: center; }
.centro .cta-botones { justify-content: center; margin-top: 16px; }
.mt { margin-top: 24px; }
.texto-suave { color: var(--texto-suave); }

/* ---------- Línea gráfica: emblema, hojas, pilares, legado ---------- */
.hero-emblema { position: relative; justify-self: center; width: 100%; max-width: 420px; text-align: center; padding: 10px 40px 0; }
.emblema-grande { position: relative; z-index: 1; width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; }
.hoja { position: absolute; width: 74px; height: auto; opacity: .9; }
.hoja-izq { left: 0; top: 10px; transform: rotate(-24deg); }
.hoja-der { right: 4px; bottom: 50px; transform: scaleX(-1) rotate(-14deg); width: 62px; }
.cita-mano { position: relative; z-index: 1; font-family: var(--mano); font-size: 1.7rem; line-height: 1.2; color: var(--verde-osc); margin: 14px auto 0; max-width: 16em; }
.cita-mano::after { content: ''; display: block; width: 90px; height: 3px; border-radius: 3px; background: var(--rosa); margin: 10px auto 0; transform: rotate(-2deg); }

.pilares { border-top: 1px solid var(--verde-borde); border-bottom: 1px solid var(--verde-borde); background: rgba(255,255,255,.55); }
.pilares-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.pilar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 8px; text-align: center; font-weight: 700; color: var(--verde-osc); font-size: .98rem; line-height: 1.25; }
.pilar + .pilar { border-left: 1px solid var(--verde-borde); }
.ico-linea { width: 34px; height: 34px; fill: none; stroke: var(--verde-osc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 720px) { .pilar { flex-direction: row; gap: 14px; font-size: 1.1rem; padding: 22px 12px; } .ico-linea { width: 40px; height: 40px; } }

.legado { font-family: var(--mano); font-size: 1.45rem; line-height: 1.3; color: var(--verde-osc); background: var(--rosa-suave); border-radius: 26px; padding: 16px 22px; margin: 18px 0; }

/* Foto de las manos en la portada, fundida con el fondo crema */
.hero-foto { position: relative; z-index: 0; margin: 28px -20px -48px; height: 280px; }
.hero-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.7) 25%, #000 45%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.7) 25%, #000 45%);
}
.cita-hero { text-align: left; margin: 22px 0 0; font-size: 1.6rem; max-width: 20em; }
.cita-hero::after { margin: 8px 0 0; }
@media (min-width: 860px) {
  .hero { min-height: 610px; padding: 64px 0 80px; }
  .hero-in { position: static; display: block; }
  .hero-in > div:first-child { position: relative; z-index: 2; max-width: 540px; }
  .hero-foto { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: auto; margin: 0; }
  .hero-foto img {
    object-position: 62% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 20%, #000 42%), linear-gradient(to bottom, #000 85%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 20%, #000 42%), linear-gradient(to bottom, #000 85%, transparent 100%);
    mask-composite: intersect;
  }
}

/* Acceso fijo a WhatsApp (escritorio; en móvil ya está la barra inferior) */
.wa-flotante { display: none; }
@media (min-width: 800px) {
  .wa-flotante { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 800; padding: 14px 22px 14px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s; }
  .wa-flotante:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.26); }
  .wa-flotante .ico { width: 1.5em; height: 1.5em; }
}
