/* ════════════════════════════════════════════════════════
   EstrenaWeb v3 — Páginas interiores
   Importar junto a v3-styles.css en páginas que no sean index.
   ════════════════════════════════════════════════════════ */

/* ── PAGE HERO (cabeceras de páginas interiores) ─── */
.page-hero {
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
}
.page-hero-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1rem;
}
.page-hero-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--coral-texto);
}
.page-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

/* Área visual mini (formas en cabeceras de página) */
.page-visual {
  position: relative;
  height: 300px;
  flex-shrink: 0;
}
.page-shape-a {
  position: absolute;
  width: 200px; height: 200px;
  background: var(--yellow);
  border-radius: 50%;
  right: 10px; top: 10px;
  z-index: 0;
}
.page-shape-b {
  position: absolute;
  width: 130px; height: 170px;
  background: var(--lila);
  border-radius: 65px;
  right: 55px; top: 50px;
  z-index: 1;
}
.page-shape-c {
  position: absolute;
  width: 60px; height: 60px;
  background: var(--turquoise);
  border-radius: 50%;
  left: 0; bottom: 50px;
  z-index: 1;
}
.page-shape-d {
  position: absolute;
  width: 90px; height: 90px;
  background: #FFD5C8;
  border-radius: 50%;
  left: 30px; top: 20px;
  z-index: 0;
}

/* Persona de cabecera interior — dimensionada por ALTO, igual que Precios */
.page-person {
  position: absolute;
  right: max(calc((100% - var(--max-w)) / 2 - 2rem), 0px);
  bottom: -30px;
  z-index: 20;
  pointer-events: none;
  /* Sin width fijo: el div se adapta al img */
}
/* La altura iguala la de Precios (pareja-senala 1600×1239 a clamp(400,46vw,600)) */
.page-person img {
  height: clamp(310px, 35.6vw, 464px);
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .page-hero-layout { grid-template-columns: 1fr; }
  .page-visual { display: none; }
  /* Persona cabecera tablet: altura generosa, anclada abajo a la derecha */
  .page-person {
    right: 0;
    bottom: -20px;
  }
  .page-person img {
    height: min(58vw, 270px); /* presencia real, no cromo */
  }
  /* padding = altura visible (altura−20px) + buffer 25px */
  .page-hero {
    padding-bottom: min(60vw, 280px);
  }
  .contacto-hero {
    padding-bottom: min(60vw, 280px);
  }
}
@media (max-width: 600px) {
  /* Móvil pequeño: más grande proporcionalmente para protagonismo */
  .page-person img {
    height: min(65vw, 270px);
  }
  .page-hero {
    padding-bottom: min(68vw, 282px);
  }
  .contacto-hero {
    padding-bottom: min(68vw, 282px);
  }
}

/* Animaciones para page-shapes (reusan keyframes de v3-styles.css) */
@media (prefers-reduced-motion: no-preference) {
  .page-shape-a { animation: floatA 8s ease-in-out infinite; }
  .page-shape-b { animation: floatB 7s ease-in-out infinite; }
  .page-shape-c { animation: floatC 9s 0.5s ease-in-out infinite; }
  .page-shape-d { animation: floatD 10s ease-in-out infinite; }
}


/* ── PASOS EN DETALLE (cómo funciona) ──────────── */
.section-proceso-full {
  padding-block: var(--section-py);
  background: var(--bg-white);
}
.proceso-steps-full { margin-top: 3rem; }
.step-full {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 2rem;
  padding: 2.5rem;
  border-radius: var(--r-card);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  align-items: start;
}
.step-full + .step-full { margin-top: 1.25rem; }
.step-full-num {
  font-family: var(--f-display);
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--coral-texto);
  line-height: 1;
}
.step-full-title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.step-full-desc {
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 0.95rem;
}
.step-full-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3em 0.9em;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 0.875rem;
}
@media (max-width: 600px) {
  .step-full { grid-template-columns: 1fr; }
  .step-full-num { font-size: 2.5rem; margin-bottom: 0.5rem; }
}


/* ── GARANTÍA: bloque "¿y si no convence?" ─────── */
.section-garantia {
  padding-block: var(--section-py);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.garantia-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.garantia-visual {
  position: relative;
  height: 500px;
}
.garantia-shape-1 {
  position: absolute;
  width: 360px; height: 360px;
  background: var(--lila);
  border-radius: 50%;
  left: 10px; top: 30px;
  opacity: 0.22;
  z-index: 0;
}
.garantia-shape-2 {
  position: absolute;
  width: 130px; height: 130px;
  background: var(--yellow);
  border-radius: 50%;
  right: 40px; bottom: 40px;
  opacity: 0.45;
  z-index: 0;
}
/* Persona anclada en la base de la sección (direct child de .section-garantia) */
.garantia-person {
  position: absolute;
  left: max(calc((100% - var(--max-w)) / 2 - 1.5rem), 0px);
  bottom: -30px;
  width: clamp(360px, 44vw, 560px);
  z-index: 10;
  pointer-events: none;
}
.garantia-person img { width: 100%; display: block; object-fit: contain; object-position: bottom center; }
.garantia-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.garantia-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35em 1em;
  border-radius: var(--r-pill);
  background: #f0fdf4;
  border: 1px solid #86efac;
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 1.25rem;
}
.garantia-card-title {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.garantia-card-title em { font-style: normal; font-weight: 700; color: var(--coral-texto); }
.garantia-card-body { color: var(--ink-2); line-height: 1.7; font-size: 0.95rem; }
.garantia-card-body p + p { margin-top: 0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .garantia-shape-1 { animation: floatD 9s ease-in-out infinite; }
  .garantia-shape-2 { animation: floatA 7s 0.5s ease-in-out infinite; }
}
@media (max-width: 768px) {
  .garantia-layout { grid-template-columns: 1fr; }
  .garantia-visual { display: none; }
  /* Persona: protagonismo sin pisar la tarjeta de texto
     shrug ratio 0.90: 260px → 234px alto → visible 219px */
  .garantia-person {
    left: auto;
    right: 0;
    width: min(66vw, 260px);
    bottom: -20px;
  }
  .section-garantia {
    padding-bottom: min(68vw, 268px); /* > 234-20 + buffer */
  }
}


/* ── QUÉ INCLUYE SIEMPRE ───────────────────────── */
.section-incluye {
  padding-block: var(--section-py);
  background: var(--bg);
}
.incluye-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.incluye-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
}
.incluye-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
}
.incluye-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.incluye-text span { font-size: 0.8rem; color: var(--ink-2); line-height: 1.4; }


/* ── PORTFOLIO COMPLETO (trabajos) ─────────────── */
.section-portfolio {
  padding-block: var(--section-py);
  background: var(--bg-white);
}
.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.proyecto-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-soft);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.proyecto-card:hover { box-shadow: 0 8px 32px rgba(26,20,16,0.09); transform: translateY(-3px); }
.proyecto-card--featured { grid-column: span 2; }
.proyecto-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top center;
}
.proyecto-card--featured .proyecto-img { aspect-ratio: 16/7.5; }
.proyecto-info { padding: 1.5rem; }
.proyecto-client {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--coral-texto);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
}
.proyecto-name {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.proyecto-desc {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.proyecto-resultado {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.3em 0.85em;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--ink-2);
  font-weight: 500;
}
.proyecto-url {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 0.5rem;
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
}
@media (max-width: 700px) {
  .portfolio-full-grid { grid-template-columns: 1fr; }
  .proyecto-card--featured { grid-column: span 1; }
}


/* ── BLOQUE DE TESTIMONIOS (oculto hasta confirmación) ── */
/* Descomentar la sección en HTML cuando Jordi confirme los textos */
.section-testimonios { display: none; padding-block: var(--section-py); background: var(--bg-soft); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testi-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  padding: 2rem;
}
.testi-quote {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testi-quote::before { content: '\201C'; }
.testi-quote::after { content: '\201D'; }
.testi-author { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.testi-biz { font-size: 0.8rem; color: var(--ink-3); }
@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr; } }


/* ── PRECIOS DETALLADOS ─────────────────────────── */
.section-precios-full {
  padding-block: var(--section-py);
  background: var(--bg-white);
}
.pricing-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.pricing-card-full {
  background: var(--bg-soft);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.pricing-card-full--featured {
  background: var(--bg-white);
  border-color: var(--coral);
  box-shadow: 0 0 0 2px var(--coral);
}
.pricing-badge-full {
  display: inline-block;
  padding: 0.3em 0.85em;
  border-radius: var(--r-pill);
  background: var(--coral-texto);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.pricing-detail-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.pricing-detail-price {
  font-family: var(--f-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.pricing-detail-note {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}
.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--ink-2);
  padding: 0.4rem 0;
  line-height: 1.45;
}
.pricing-list .check { color: var(--coral-texto); font-weight: 700; flex-shrink: 0; font-size: 0.95rem; }
.pricing-card-full .btn-pill { margin-top: 0; align-self: stretch; text-align: center; }
@media (max-width: 900px) { .pricing-detail-grid { grid-template-columns: 1fr; } }

/* Banner proyecto a medida */
.medida-banner {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.medida-banner-text { font-size: 0.95rem; color: var(--ink-2); }
.medida-banner-text strong { color: var(--ink); }


/* ── PLANES DE MANTENIMIENTO ─────────────────────── */
.section-mantenimiento {
  padding-block: var(--section-py);
  background: var(--bg-soft);
}
.mant-intro {
  max-width: 60ch;
  color: var(--ink-2);
  line-height: 1.65;
  margin-top: 0.75rem;
}
.mantenimiento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.mant-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.mant-card--featured {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px var(--coral);
}
.mant-badge {
  display: inline-block;
  padding: 0.25em 0.8em;
  border-radius: var(--r-pill);
  background: var(--coral-texto);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.mant-name {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.mant-price {
  font-family: var(--f-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.mant-price span { font-size: 0.95rem; font-weight: 400; color: var(--ink-2); }
.mant-primer-mes {
  font-size: 0.78rem;
  color: #16a34a;
  font-weight: 600;
  margin-bottom: 1.25rem;
  margin-top: 0.25rem;
}
.mant-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.mant-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--ink-2);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.mant-list li:last-child { border-bottom: none; }
.mant-list .check { color: var(--coral-texto); flex-shrink: 0; }
@media (max-width: 768px) { .mantenimiento-grid { grid-template-columns: 1fr; } }


/* ── EXTRAS OPCIONALES ──────────────────────────── */
.section-extras {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  background: var(--bg);
}
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.extra-item {
  padding: 1.25rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
}
.extra-name { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.extra-desc { font-size: 0.8rem; color: var(--ink-2); line-height: 1.45; }
.extra-price {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--coral-texto);
  margin-top: 0.5rem;
}


/* ── FAQ ACORDEÓN ───────────────────────────────── */
.section-faq-precios {
  padding-block: var(--section-py);
  background: var(--bg-soft);
}
.faq-list {
  max-width: 740px;
  margin: 2.5rem auto 0;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-sans);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.faq-arrow {
  width: 28px; height: 28px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--coral);
  border-color: var(--coral);
}
.faq-item.open .faq-arrow svg path { stroke: #fff; }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding-bottom: 0;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 0.93rem;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.25rem;
}
.faq-answer a { color: var(--coral-texto); }


/* ── QUIÉN SOMOS: historia ──────────────────────── */
.section-jordi {
  padding-block: var(--section-py) 0;
  background: var(--bg-white);
  overflow: hidden;
}
.jordi-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: stretch;
}
.jordi-foto-wrap {
  position: relative;
}
.jordi-blob {
  position: absolute;
  width: 290px; height: 290px;
  background: var(--lila);
  border-radius: 50%;
  top: -24px; left: -18px;
  opacity: 0.28;
  z-index: 0;
}
.jordi-blob-2 {
  position: absolute;
  width: 90px; height: 90px;
  background: var(--yellow);
  border-radius: 50%;
  bottom: -10px; right: -12px;
  opacity: 0.55;
  z-index: 0;
}
.jordi-blob-coral {
  position: absolute;
  width: 70px; height: 70px;
  background: var(--coral);
  border-radius: 50%;
  bottom: 80px; right: -15px;
  opacity: 0.50;
  z-index: 0;
}
.jordi-blob-turquoise {
  position: absolute;
  width: 52px; height: 52px;
  background: var(--turquoise);
  border-radius: 50%;
  top: 80px; right: -10px;
  opacity: 0.60;
  z-index: 0;
}
.jordi-foto {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.jordi-colegiado {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4em 1em;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  color: var(--ink-2);
  font-weight: 500;
  margin-top: 1.25rem;
  background: var(--bg-soft);
}
.jordi-text { }
.jordi-bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.jordi-bio p {
  color: var(--ink-2);
  line-height: 1.75;
  font-size: 0.97rem;
}
.jordi-bio p + p { margin-top: 0.875rem; }
.jordi-bio-title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.jordi-firma {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.jordi-firma-texto {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.jordi-firma-cargo {
  font-size: 0.82rem;
  color: var(--ink-2);
}
.jordi-historia {
  color: var(--ink-2);
  line-height: 1.75;
  font-size: 0.97rem;
}
.jordi-historia p + p { margin-top: 0.875rem; }
.jordi-historia strong { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .jordi-blob            { animation: floatD 10s ease-in-out infinite; }
  .jordi-blob-2          { animation: floatA 7s 0.5s ease-in-out infinite; }
  .jordi-blob-coral      { animation: floatB 8s 1s ease-in-out infinite; }
  .jordi-blob-turquoise  { animation: floatC 9s 2s ease-in-out infinite; }
}
@media (max-width: 860px) {
  .jordi-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .jordi-foto-wrap { max-width: 320px; margin: 0 auto; height: 360px; border-radius: var(--r-card); }
  .section-jordi { padding-bottom: var(--section-py); }
}


/* ── CLIENTES HISTÓRICOS ───────────────────────── */
.section-clientes {
  padding-block: var(--section-py);
  background: var(--bg-soft);
}
.clientes-nota {
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.cliente-badge {
  padding: 0.45em 1.2em;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  color: var(--ink-2);
  background: var(--bg-white);
  font-weight: 500;
  white-space: nowrap;
}
.agencias-nota {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}


/* ── FILOSOFÍA ─────────────────────────────────── */
.section-filosofia {
  padding-block: var(--section-py);
  background: var(--bg-white);
}
.filosofia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.filosofia-card {
  padding: 2rem;
  background: var(--bg-soft);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
}
.filosofia-num {
  font-family: var(--f-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--coral-texto);
  margin-bottom: 0.875rem;
  line-height: 1;
}
.filosofia-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.filosofia-desc {
  font-size: 0.87rem;
  color: var(--ink-2);
  line-height: 1.65;
}
@media (max-width: 768px) { .filosofia-grid { grid-template-columns: 1fr; } }


/* ── CONTACTO: layout 2 columnas ──────────────── */
.page-hero--contacto {
  padding-bottom: 0;
  background: var(--bg);
}
.section-contacto,
.section-contacto-main {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-white);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}
.contacto-form-wrap {
  background: var(--bg-white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.contacto-form-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.contacto-form-sub {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}

/* Form fields v3 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field-full { grid-column: span 2; }
.form-field label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.form-field input,
.form-field select {
  font-family: var(--f-sans);
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--coral);
  background: var(--bg-white);
}
.form-field input.invalid,
.form-field select.invalid { border-color: #C4361B; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7A6A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.form-checkbox input[type="checkbox"] { display: none; }
.checkbox-box {
  width: 18px; height: 18px; min-width: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--bg-white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 2px;
}
.checkbox-box svg { opacity: 0; transition: opacity 0.1s; }
.form-checkbox input:checked + .checkbox-box {
  background: var(--coral);
  border-color: var(--coral);
}
.form-checkbox input:checked + .checkbox-box svg { opacity: 1; }
.form-checkbox input:checked + .checkbox-box svg path { stroke: #fff; }
.form-checkbox a { color: var(--coral-texto); }
.form-send-error {
  display: none;
  color: #C4361B;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.form-submit-btn-v3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85em 2em;
  background: var(--coral-texto);
  color: #fff;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 1.25rem;
}
.form-submit-btn-v3:hover { opacity: 0.87; }
.form-submit-btn-v3[disabled] { opacity: 0.55; cursor: not-allowed; }
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 0.875rem;
  line-height: 1.55;
}
.form-support {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 1.25rem;
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.form-success-v3 {
  display: none;
  padding: 2.5rem;
  text-align: center;
}
.form-success-v3.visible { display: block; }
.form-success-icon-v3 {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid #86efac;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success-v3 h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-success-v3 p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.65; }
.form-success-v3 p + p { margin-top: 0.5rem; }

/* Sidebar de confianza */
.trust-sidebar { padding-top: 0.5rem; }
.trust-sidebar-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.trust-steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}
.trust-steps-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}
.trust-steps-list li:last-child { border-bottom: none; }
.trust-step-n {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--coral-texto);
  flex-shrink: 0;
  line-height: 1.15;
}
.trust-step-t strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.trust-step-t span { font-size: 0.8rem; color: var(--ink-2); line-height: 1.4; }
.trust-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.trust-stat { text-align: center; }
.trust-stat-num {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.trust-stat--accent .trust-stat-num { color: var(--coral-texto); }
.trust-stat-lbl { font-size: 0.75rem; color: var(--ink-2); line-height: 1.3; }

@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; }
  .trust-sidebar { display: none; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: span 1; }
}


/* ── ESTILOS COMPARTIDOS PÁGINAS INTERIORES ────── */
.page-section-white { background: var(--bg-white); }
.page-section-soft  { background: var(--bg-soft); }
.page-intro {
  max-width: 62ch;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* Script FAQ inline (ver páginas que lo usan) */


/* ── CONTACTO: cabecera hero ─────────────────────── */
.contacto-hero {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contacto-hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.contacto-hero-title em {
  color: var(--coral-texto);
  font-style: normal;
}
.contacto-hero-sub {
  max-width: 54ch;
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 1.05rem;
}
/* Responsive: estas reglas deben ir DESPUÉS del bloque base para ganar en cascada */
@media (max-width: 900px) {
  .contacto-hero { padding-bottom: min(60vw, 280px); }
}
@media (max-width: 600px) {
  .contacto-hero { padding-bottom: min(68vw, 282px); }
}


/* ── ACTUALIDAD: grid de entradas ────────────────── */
.section-actualidad {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--bg-white);
}
.actualidad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(26, 20, 16, 0.1);
  transform: translateY(-3px);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--coral-texto);
  background: rgba(196,54,27, 0.1);
  padding: 0.2em 0.65em;
  border-radius: 4px;
}
.blog-card-date {
  font-size: 0.8rem;
  color: var(--ink-3);
}
.blog-card-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
}
.blog-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--coral-texto);
  text-decoration: none;
}
.blog-card-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .actualidad-grid { grid-template-columns: 1fr; }
}
