/*
Theme Name: Base Theme
Author: Tu Empresa
Description: Theme base minimalista, SEO-optimizado y de alta velocidad de carga, listo para personalizar.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: base-theme
*/

/* =========================================
   Tokens — reemplaza estos valores por los
   colores y tipografía de tu marca.
   ========================================= */
:root {
  /* ---- Signaria — Marfil editorial ---- */
  --sig-marfil:      #EFE9DD;
  --sig-blanco:      #FFFFFF;
  --sig-tinta:       #221F1C;
  --sig-tinta-line:  #3A352F;   /* hairlines sobre tinta */
  --sig-cobre:       #8C4A22;
  --sig-cobre-hover: #733A17;
  --sig-cobre-claro: #B08A6A;   /* texto secundario sobre tinta */
  --sig-oliva:       #4A4F43;
  --sig-arena:       #DCD2BF;
  --sig-texto:       #453F37;   /* cuerpo sobre marfil */
  --sig-texto-2:     #6B655C;
  --sig-texto-3:     #8B8478;
  --sig-tinta-sub:   #A79E92;   /* cuerpo sobre tinta */
  --sig-borde:       #D8CFBC;
  --sig-borde-suave: #EAE2D2;
  --sig-borde-btn:   #C9BFA9;

  --sig-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sig-sans:  'Archivo', system-ui, -apple-system, sans-serif;

  --sig-container: 1180px;
  --sig-px: clamp(18px, 5vw, 32px);

  /* ---- Alias de compatibilidad con plantillas tpl- heredadas ---- */
  --color-primary:      var(--sig-cobre);
  --color-primary-dark: var(--sig-cobre-hover);
  --color-primary-foot: var(--sig-cobre);
  --color-text:      var(--sig-tinta);
  --color-muted:     var(--sig-texto-2);
  --color-light:     var(--sig-texto-3);
  --color-gray-bg:   var(--sig-arena);
  --color-dark-band: var(--sig-oliva);
  --color-white:     var(--sig-blanco);
  --color-border:    var(--sig-borde);
  --color-whatsapp:  #25D366;
  --color-navy:      var(--sig-tinta);

  --font-base: var(--sig-sans);

  --container-max: 1100px;
  --container-px: 32px;
}

/* =========================================
   Reset / Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--sig-tinta);
  background: var(--sig-marfil);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

::selection { background: var(--sig-arena); color: var(--sig-tinta); }

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

a { color: var(--sig-cobre); transition: opacity .2s, color .2s; }
a:hover { color: var(--sig-cobre-hover); }

/* =========================================
   Header
   ========================================= */
.tpl-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

/* Scrim: degradado oscuro detrás del header transparente (con hero) para
   que el logo y el menú blancos siempre tengan contraste, sin importar
   la foto que se use de fondo */
.tpl-header:not(.tpl-header--solid):not(.is-scrolled)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,0));
  pointer-events: none;
  z-index: -1;
}

/* Cuando el hero no está presente (páginas interiores),
   el header se vuelve sticky con fondo blanco */
.tpl-header--solid {
  position: sticky;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.tpl-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px var(--container-px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

/* Logo */
.tpl-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  color: #fff;
}

.tpl-header--solid .tpl-logo { color: var(--color-primary); }

/* Logo subido por el usuario (Personalizar > Identidad del sitio): se
   pinta como máscara para que herede currentColor y cambie de blanco a
   naranja igual que el resto del header, sin importar el color original
   del archivo subido (necesita fondo transparente en el logo). */
.tpl-logo__mark {
  display: block;
  width: 168px;
  height: 52px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.tpl-logo__brand {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1;
}

.tpl-logo__sub {
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: .3px;
  opacity: .92;
  font-weight: 300;
}

/* Nav */
.tpl-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Botón cerrar (X) del drawer mobile — no existe en desktop */
.tpl-nav__close {
  display: none;
}

/* Ítem de nivel 1 (wrapper del walker) */
.tpl-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Enlace de nivel 1 */
.tpl-nav-link {
  font-size: 13.5px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: opacity .2s, color .2s;
  position: relative;
  white-space: nowrap;
}

.tpl-nav-link:hover { opacity: .8; color: #fff; }
.tpl-nav-link.is-active { font-weight: 600; }

.tpl-header--solid .tpl-nav-link { color: var(--color-text); }
.tpl-header--solid .tpl-nav-link:hover { color: var(--color-primary); opacity: 1; }
.tpl-header.is-scrolled .tpl-nav-link { color: #fff; }

/* Línea hover desde el centro */
.tpl-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,.8);
  transform: translateX(-50%);
  transition: width .22s ease;
}

.tpl-nav-link:hover::after,
.tpl-nav-link.is-active::after { width: calc(100% - 28px); }

.tpl-header--solid .tpl-nav-link::after,
.tpl-header--solid .tpl-nav-link.is-active::after { background: var(--color-primary); }

/* Submenú flotante */
.tpl-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(0,0,0,.14);
  padding: 8px 0;
  z-index: 100;
  animation: tplFadeInUp .22s ease forwards;
}

.tpl-nav-item.has-submenu:hover .tpl-submenu { display: block; }

.tpl-nav-sublink {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  padding: 10px 20px;
  transition: background .15s, color .15s;
}

.tpl-nav-sublink:hover {
  background: #FDF2E8;
  color: var(--color-primary);
}

/* Fallback — si se usa wp_nav_menu sin walker (links directos en .tpl-nav) */
.tpl-nav > a {
  font-size: 13.5px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  transition: opacity .2s;
  position: relative;
}

.tpl-nav > a:hover { opacity: .8; }

.tpl-nav > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,.8);
  transform: translateX(-50%);
  transition: width .22s ease;
}

.tpl-nav > a:hover::after { width: calc(100% - 28px); }

.tpl-header--solid .tpl-nav > a { color: var(--color-text); }
.tpl-header--solid .tpl-nav > a:hover { color: var(--color-primary); opacity: 1; }
.tpl-header--solid .tpl-nav > a::after { background: var(--color-primary); }

/* Header CTA */
.tpl-header-btn {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}

.tpl-header-btn:hover { background: var(--color-primary-dark); color: #fff; }

/* Burger */
.tpl-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.tpl-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.tpl-header--solid .tpl-header__burger span { background: var(--color-text); }

/* ===========================================
   Utilidades para bloques del editor (Gutenberg)
   =========================================== */
/* Clase adicional "tpl-overlap" para galería de 2 imágenes superpuestas
   Agregar desde el editor: Bloque galería → Avanzado → Clase CSS adicional
   ----------------------------------------------------------------------- */
.wp-block-gallery.tpl-overlap {
  display: block !important;
  position: relative;
  min-height: 380px;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.wp-block-gallery.tpl-overlap .wp-block-image:first-child {
  display: block;
  width: 78%;
  height: 300px;
  margin: 0;
}

.wp-block-gallery.tpl-overlap .wp-block-image:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wp-block-gallery.tpl-overlap .wp-block-image:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 240px;
  margin: 0;
  border: 6px solid #fff;
  box-sizing: content-box;
}

.wp-block-gallery.tpl-overlap .wp-block-image:last-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .wp-block-gallery.tpl-overlap               { min-height: 280px; }
  .wp-block-gallery.tpl-overlap .wp-block-image:first-child { width: 85%; height: 220px; }
  .wp-block-gallery.tpl-overlap .wp-block-image:last-child  { height: 180px; }
}

/* =========================================
   Botón común
   ========================================= */
.tpl-btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 30px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.tpl-btn:hover { background: var(--color-primary-dark); color: #fff; }

.tpl-btn--sm { font-size: 12.5px; padding: 10px 26px; }

/* =========================================
   Noticias
   ========================================= */
.tpl-noticias {
  background: var(--color-white);
  padding: 78px var(--container-px);
}

.tpl-noticias__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.tpl-noticias h2 {
  text-align: center;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.3px;
  color: #2d2d2d;
  margin-bottom: 50px;
}

.tpl-noticias__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.tpl-noticia {
  display: flex;
  flex-direction: column;
}

.tpl-noticia__thumb {
  height: 190px;
  background: #cfd6dd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3ad;
  margin-bottom: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.tpl-noticia__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl-noticia h3 {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.tpl-noticia p {
  font-size: 13px;
  line-height: 1.6;
  color: #8b9098;
  margin-bottom: 20px;
  flex: 1;
}

/* =========================================
   Footer
   ========================================= */
.tpl-footer {
  background: var(--color-primary-foot);
  color: #fff;
  padding: 56px var(--container-px);
}

.tpl-footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.tpl-footer__logo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tpl-footer__logo-brand {
  font-weight: 700;
  font-size: 56px;
  line-height: .85;
  letter-spacing: 1px;
  color: #fff;
}

.tpl-footer__logo-sub {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
  padding-top: 4px;
  color: rgba(255,255,255,.9);
}

.tpl-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 13.5px;
}

.tpl-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.tpl-footer__contact-item svg { flex-shrink: 0; margin-top: 2px; }

.tpl-footer__social {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
}

.tpl-footer__social-title {
  font-weight: 500;
  color: #fff;
}

.tpl-footer__social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity .2s;
  flex-shrink: 0;
}

.tpl-footer__social-icon:hover { opacity: .85; }

.tpl-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.tpl-footer__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: opacity .2s;
}

.tpl-footer__links a:hover { opacity: .8; }

/* =========================================
   WhatsApp flotante
   ========================================= */
@keyframes pulsering {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.tpl-wa {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px -6px rgba(37,211,102,.6);
  text-decoration: none;
  animation: pulsering 2.4s infinite;
  transition: background .2s;
}

.tpl-wa:hover { background: #1FB857; }

/* =========================================
   Barra CTA fija mobile
   ========================================= */
.tpl-mobile-cta { display: none; }

/* =========================================
   Páginas estáticas (page.php)
   ========================================= */
.tpl-page-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.tpl-page-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px var(--container-px) 96px;
}

.tpl-page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-primary);
}

.tpl-page-header h1 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.5px;
  color: #2d2d2d;
}

.tpl-page-thumb {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.tpl-page-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.tpl-page-article .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.tpl-page-article .entry-content h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  color: #2d2d2d;
  margin-top: 2.2rem;
  margin-bottom: .8rem;
}

.tpl-page-article .entry-content h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: #2d2d2d;
  margin-top: 1.8rem;
  margin-bottom: .6rem;
}

.tpl-page-article .entry-content p { margin-bottom: 1.2rem; }

.tpl-page-article .entry-content ul,
.tpl-page-article .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.tpl-page-article .entry-content li { margin-bottom: .4rem; }

.tpl-page-article .entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.tpl-page-article .entry-content img {
  border-radius: 6px;
  max-width: 100%;
}

.tpl-page-article .entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 14px 20px;
  margin: 1.6rem 0;
  background: #FDF2E8;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--color-muted);
}

.tpl-edit-link {
  margin-top: 2rem;
  font-size: 13px;
}

.tpl-edit-link a {
  color: var(--color-muted);
  text-decoration: none;
}

/* =========================================
   Utilidades compartidas (archive.php, search.php, 404.php)
   ========================================= */
.entry-content { line-height: 1.75; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.tpl-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.tpl-card:hover {
  box-shadow: 0 8px 24px rgba(237,122,35,.15);
  transform: translateY(-2px);
}

.error-404 { text-align: center; padding: 6rem 1rem; }
.error-404 .error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

/* =========================================
   Animaciones
   ========================================= */

/* Keyframes */
@keyframes tplFadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Estado inicial de elementos con reveal */
.tpl-reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}

.tpl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes direccionales (se asignan por clase adicional si hace falta) */
.tpl-reveal--left  { transform: translateX(-42px); }
.tpl-reveal--right { transform: translateX(42px); }
.tpl-reveal--left.is-visible,
.tpl-reveal--right.is-visible { transform: translateX(0); }

/* Header scroll: color primario al bajar */
.tpl-header.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  box-shadow: 0 4px 24px rgba(237,122,35,.3);
}

.tpl-header.is-scrolled .tpl-nav a { color: #fff; }
.tpl-header.is-scrolled .tpl-nav a:hover { opacity: .8; color: #fff; }
.tpl-header.is-scrolled .tpl-logo { color: #fff; }
.tpl-header.is-scrolled .tpl-logo svg,
.tpl-header.is-scrolled .tpl-logo img,
.tpl-header.is-scrolled .tpl-logo__mark {
  transform: scale(.8);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}

.tpl-logo svg,
.tpl-logo img,
.tpl-logo__mark {
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.tpl-header.is-scrolled .tpl-header__burger span { background: #fff; }
.tpl-header.is-scrolled .tpl-header-btn {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.5);
}
.tpl-header.is-scrolled .tpl-header-btn:hover { background: rgba(255,255,255,.3); }

/* El header solid en páginas interiores también adopta el color primario al scroll */
.tpl-header--solid.is-scrolled {
  background: var(--color-primary);
  border-bottom-color: transparent;
}

.tpl-header--solid.is-scrolled .tpl-nav a { color: #fff; }
.tpl-header--solid.is-scrolled .tpl-logo { color: #fff; }
.tpl-header--solid.is-scrolled .tpl-header__burger span { background: #fff; }

/* Nav hover: línea que crece desde el centro */
.tpl-nav a {
  position: relative;
}

.tpl-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,.8);
  transform: translateX(-50%);
  transition: width .22s ease;
}

.tpl-nav a:hover::after { width: 80%; opacity: 1; }

.tpl-header--solid .tpl-nav a::after,
.tpl-header.is-scrolled .tpl-nav a::after { background: rgba(255,255,255,.8); }

/* Zoom en thumbs de noticias */
.tpl-noticia__thumb { overflow: hidden; }
.tpl-noticia__thumb img {
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.tpl-noticia:hover .tpl-noticia__thumb img { transform: scale(1.05); }

/* Botón scroll-to-top */
.tpl-scroll-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(237,122,35,.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}

.tpl-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tpl-scroll-top:hover { background: var(--color-primary-dark); }

/* En mobile sube sobre la barra CTA */
@media (max-width: 768px) {
  .tpl-scroll-top { bottom: 76px; left: 16px; }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .tpl-noticias__grid          { grid-template-columns: repeat(2, 1fr); }
  .tpl-footer__grid            { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --container-px: 16px; }

  /* Mobile CTA bar */
  .tpl-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: var(--color-primary);
    padding: 14px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  }

  .tpl-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: var(--font-base);
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    gap: 10px;
  }

  body { padding-bottom: 62px; }

  /* Header */
  .tpl-header__inner  { padding: 16px var(--container-px); gap: 12px; }
  .tpl-header-btn     { display: none; }
  .tpl-header__burger { display: flex; margin-left: auto; }

  /* Drawer mobile: panel deslizante desde la derecha, 70% del ancho,
     alto completo de la pantalla, fondo naranja */
  .tpl-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 70%;
    max-width: 360px;
    background: var(--color-primary);
    padding: 20px var(--container-px) 24px;
    box-shadow: -4px 0 28px rgba(0,0,0,.25);
    z-index: 70;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.22,1,.36,1), visibility 0s linear .32s;
  }

  .tpl-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }

  /* Botón cerrar (X) — solo existe en el drawer mobile */
  .tpl-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 40px;
    height: 40px;
    margin: 0 -8px 12px 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  /* Links del drawer — blancos sobre fondo naranja, alineados a la izquierda,
     con más padding para que sean fáciles de tocar */
  .tpl-nav .tpl-nav-link,
  .tpl-nav > a,
  .tpl-header.is-scrolled .tpl-nav .tpl-nav-link,
  .tpl-header.is-scrolled .tpl-nav > a,
  .tpl-header--solid.is-scrolled .tpl-nav .tpl-nav-link {
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    padding: 20px 4px;
    border-bottom: 1px solid rgba(255,255,255,.25);
  }

  .tpl-nav .tpl-nav-link::after,
  .tpl-nav > a::after { display: none; }

  /* Submenú mobile: visible y estático */
  .tpl-nav .tpl-submenu {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0 0 0 16px;
    animation: none;
    border-radius: 0;
  }

  .tpl-nav .tpl-nav-sublink {
    color: #fff;
    font-size: 17px;
    text-align: left;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .tpl-nav .tpl-nav-sublink:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
  }

  /* Noticias */
  .tpl-noticias__grid { grid-template-columns: 1fr; }

  /* Footer */
  .tpl-footer__grid  { grid-template-columns: 1fr; gap: 32px; }
  .tpl-footer__logo-brand { font-size: 40px; }

  /* WhatsApp sube sobre la barra fija */
  .tpl-wa { bottom: 76px; right: 16px; width: 50px; height: 50px; }
}


/* =============================================
   SECTION — contenedor centrado con padding
   Usado en: index.php, single.php
   ============================================= */
.tpl-ns-section {
  padding: 40px var(--container-px);
}

.tpl-ns-section--gray { background: #FDF2E8; }

.tpl-ns-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Tipografía dentro de sections */
.tpl-ns-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.tpl-ns-section p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* =========================================
   SINGLE POST
   ========================================= */

/* Imagen destacada */
.tpl-single__featured-img {
  margin: 24px 0 0;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.tpl-single__featured-img-el {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Layout: columna centrada */
.tpl-single__wrap {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Breadcrumb */
.tpl-single__breadcrumb {
  margin-bottom: 20px;
}
.tpl-single__breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-muted);
}
.tpl-single__breadcrumb-list a {
  color: var(--color-muted);
  text-decoration: none;
}
.tpl-single__breadcrumb-list a:hover { color: var(--color-primary); }
.tpl-single__breadcrumb-sep { color: var(--color-border); }

/* Meta */
.tpl-single__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.tpl-single__cat {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.tpl-single__read-time {
  color: var(--color-muted);
}
.tpl-single__meta-sep { color: var(--color-border); }

/* Título */
.tpl-single__title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 24px;
}

/* Autor */
.tpl-single__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}
.tpl-single__avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.tpl-single__author strong {
  display: block;
  font-size: 14px;
  color: var(--color-text);
}
.tpl-single__author span {
  font-size: 12px;
  color: var(--color-muted);
}

/* Contenido del artículo */
.tpl-single__content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
}
.tpl-single__content h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; color: var(--color-text); }
.tpl-single__content h3 { font-size: 18px; font-weight: 700; margin: 32px 0 10px; color: var(--color-text); }
.tpl-single__content p  { margin: 0 0 20px; }
.tpl-single__content ul,
.tpl-single__content ol { padding-left: 24px; margin-bottom: 20px; }
.tpl-single__content li { margin-bottom: 6px; }
.tpl-single__content a  { color: var(--color-primary); }
.tpl-single__content img { border-radius: 6px; max-width: 100%; height: auto; }
.tpl-single__content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 24px;
  margin: 24px 0;
  background: #FDF2E8;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--color-muted);
}

/* Tags */
.tpl-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.tpl-single__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: #FDF2E8;
  border: 1px solid #FBE4D0;
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
}
.tpl-single__tag:hover { background: var(--color-primary); color: #fff; }

/* Nav anterior/siguiente */
.tpl-single__postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.tpl-single__postnav-next { text-align: right; }
.tpl-single__postnav-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.tpl-single__postnav-title a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.tpl-single__postnav-title a:hover { color: var(--color-primary); }

/* Excerpt destacado */
.tpl-single__excerpt {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-primary);
}
.tpl-single__excerpt p { margin: 0; }

/* Compartir */
.tpl-single__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 24px 0;
}
.tpl-single__share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}
.tpl-single__share-btns {
  display: flex;
  gap: 10px;
}
.tpl-single__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.tpl-single__share-btn:hover { opacity: .85; transform: translateY(-2px); }
.tpl-single__share-btn--li { background: #C9681E; }
.tpl-single__share-btn--fb { background: #C96920; }
.tpl-single__share-btn--wa { background: #25D366; }
.tpl-single__share-btn--copy { background: var(--color-muted); cursor: pointer; border: none; }
.tpl-single__share-btn--copy.is-copied { background: #16a34a; }

/* Relacionados al final */
.tpl-single__related-section .tpl-ns-section__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tpl-single__related-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

/* =========================================
   BLOG INDEX
   ========================================= */
.tpl-blog-header {
  margin-bottom: 40px;
}
.tpl-blog-header__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 10px;
}
.tpl-blog-header__desc {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* Post destacado (el primero del listado) */
.tpl-blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  transition: box-shadow .25s, transform .25s;
}
.tpl-blog-featured:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  transform: translateY(-3px);
}

.tpl-blog-featured__img-wrap {
  display: block;
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--color-gray-bg);
}
.tpl-blog-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.tpl-blog-featured:hover .tpl-blog-featured__img {
  transform: scale(1.04);
}

.tpl-blog-featured__body {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.tpl-blog-featured__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}
.tpl-blog-featured__title a {
  color: inherit;
  text-decoration: none;
}
.tpl-blog-featured__title a:hover { color: var(--color-primary); }

.tpl-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tpl-blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.tpl-blog-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  transform: translateY(-3px);
}

.tpl-blog-card__img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-gray-bg);
}
.tpl-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.tpl-blog-card:hover .tpl-blog-card__img {
  transform: scale(1.04);
}
.tpl-blog-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-blog-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.tpl-blog-card__meta {
  font-size: 12px;
  color: var(--color-muted);
}
.tpl-blog-card__cat {
  color: var(--color-primary);
  font-weight: 600;
}
.tpl-blog-card .tpl-blog-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
}
.tpl-blog-card__title a {
  color: var(--color-primary);
  text-decoration: none;
}
.tpl-blog-card__title a:hover { color: var(--color-text); }
.tpl-blog-card__excerpt {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpl-blog-card__excerpt p { margin: 0; }
.tpl-blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
}
.tpl-blog-card__cta:hover { text-decoration: underline; }

.tpl-blog-nav { margin-top: 48px; }
.tpl-blog-empty { color: var(--color-muted); text-align: center; padding: 40px 0; }

.tpl-blog-loadmore {
  text-align: center;
  margin-top: 48px;
}
.tpl-blog-loadmore__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.tpl-blog-loadmore__btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.tpl-blog-loadmore__btn:disabled {
  opacity: .6;
  cursor: default;
}


/* ==========================================================================
   SIGNARIA — Marfil editorial
   Header, footer y portada (front-page.php). Prefijo: .sig-
   Bordes rectos, sin sombras, sin gradientes. Un solo acento (cobre).
   ========================================================================== */

.sig-page { min-height: 100vh; }

/* --- Contenedor ---------------------------------------------------------- */
.sig-container {
  max-width: var(--sig-container);
  margin-inline: auto;
  padding-inline: var(--sig-px);
}

/* --- Tipografía de marca ---------------------------------------------------- */
.sig-h1,
.sig-h2,
.sig-h3 {
  font-family: var(--sig-serif);
  font-weight: 300;
  letter-spacing: -0.4px;
  color: var(--sig-tinta);
  text-wrap: pretty;
  margin: 0;
}
.sig-h1 { font-size: clamp(34px, 6.6vw, 59px); line-height: 1.08; }
.sig-h2 { font-size: clamp(24px, 4.2vw, 38px); line-height: 1.15; }
.sig-h3 { font-size: 23px; line-height: 1.25; }

.sig-eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sig-cobre);
}
.sig-eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.16em;
}
.sig-eyebrow--rule::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--sig-cobre-claro);
  flex-shrink: 0;
}

.sig-muted { color: var(--sig-texto-2); }

/* --- Botones ----------------------------------------------------------- */
.sig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sig-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.sig-btn--lg { padding: 16px 30px; font-size: 16px; }

.sig-btn--primary {
  background: var(--sig-cobre);
  color: #fff;
}
.sig-btn--primary:hover { background: var(--sig-cobre-hover); color: #fff; }

.sig-btn--outline {
  background: transparent;
  color: var(--sig-tinta);
  border-color: var(--sig-borde-btn);
  padding: 15px 28px;
}
.sig-btn--outline:hover { border-color: var(--sig-cobre); color: var(--sig-cobre); }

.sig-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* --- Secciones ------------------------------------------------------------ */
.sig-section { padding-block: clamp(48px, 9vw, 92px); }
.sig-section--dark  { background: var(--sig-tinta); color: var(--sig-marfil); }
.sig-section--sand  { background: var(--sig-arena); }

.sig-section--dark .sig-h1,
.sig-section--dark .sig-h2,
.sig-section--dark .sig-h3 { color: var(--sig-marfil); }

.sig-section__intro {
  margin: 12px 0 48px;
  font-size: 17px;
  line-height: 1.6;
  max-width: 44em;
  color: var(--sig-tinta-sub);
}

/* --- Header ----------------------------------------------------------- */
.sig-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(239, 233, 221, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sig-borde);
}
.sig-header__inner {
  max-width: var(--sig-container);
  margin-inline: auto;
  padding: 14px var(--sig-px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 32px);
}

.sig-logo {
  display: flex;
  align-items: center;
  margin-right: auto;   /* siempre pegado a la izquierda, aunque el nav baje de línea */
  flex-shrink: 0;
}
.sig-logo img,
.sig-logo .custom-logo {
  width: 210px;
  max-width: 210px;
  height: auto;
  display: block;
}

.sig-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
}
.sig-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sig-nav__list a,
.sig-nav__item a {
  font-family: var(--sig-sans);
  font-size: 15px;
  color: var(--sig-tinta);
  text-decoration: none;
}
.sig-nav__list a:hover { color: var(--sig-cobre); }
.sig-nav .current-menu-item > a,
.sig-nav .sig-nav__item.is-current > a { color: var(--sig-cobre); font-weight: 600; }

.sig-nav__cta { flex-shrink: 0; }

.sig-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--sig-borde-btn);
  border-radius: 0;
  padding: 11px 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.sig-nav__toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--sig-tinta);
  display: block;
}

@media (max-width: 860px) {
  .sig-nav__toggle { display: flex; }
  .sig-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    padding: 16px 0 8px;
    margin-top: 12px;
    border-top: 1px solid var(--sig-borde);
  }
  .sig-nav.is-open { display: flex; }
  .sig-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
  }
}

/* --- Hero ----------------------------------------------------------- */
.sig-hero {
  padding-block: clamp(48px, 9vw, 96px) clamp(44px, 8vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.sig-hero__title { margin-bottom: 26px; }
.sig-hero__lead {
  margin: 0 0 34px;
  font-size: 19px;
  line-height: 1.62;
  color: var(--sig-texto);
  max-width: 33em;
  text-wrap: pretty;
}
.sig-hero__note {
  margin: 30px 0 0;
  font-size: 14px;
  color: var(--sig-texto-2);
}

.sig-hero__media { position: relative; }
.sig-hero__frame {
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--sig-borde);
}
.sig-hero__photo {
  position: relative;
  width: 100%;
  height: clamp(300px, 48vw, 460px);
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.92);
}
.sig-hero__card {
  position: relative;
  background: var(--sig-tinta);
  color: var(--sig-marfil);
  padding: 20px 24px;
}
.sig-hero__card-name {
  margin: 0;
  font-family: var(--sig-serif);
  letter-spacing: -0.4px;
  font-size: 19px;
}
.sig-hero__card-role {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--sig-tinta-sub);
}

/* --- Áreas de práctica --------------------------------------------------- */
.sig-practice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 1px;
  background: var(--sig-tinta-line);
}
.sig-practice__item {
  background: var(--sig-tinta);
  padding: 32px 26px 34px;
}
.sig-practice__num {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sig-cobre-claro);
}
.sig-practice__item h3 { margin-bottom: 14px; }
.sig-practice__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sig-tinta-sub);
}

/* --- Cómo trabajamos --------------------------------------------------- */
.sig-approach {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 5vw, 64px);
}
.sig-approach__list { display: grid; gap: 38px; }
.sig-approach__item {
  border-top: 1px solid var(--sig-borde);
  padding-top: 24px;
}
.sig-approach__h {
  margin: 0 0 10px;
  font-family: var(--sig-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--sig-tinta);
}
.sig-approach__item p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sig-texto);
  max-width: 44em;
}

/* --- Oferta registro de marca ------------------------------------------- */
.sig-offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.sig-offer__body .sig-h2 { margin: 0 0 20px; }
.sig-offer__lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--sig-texto);
  max-width: 36em;
}

.sig-price {
  background: var(--sig-blanco);
  border: 1px solid var(--sig-borde);
  padding: 34px var(--sig-px);
}
.sig-price__label {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sig-texto-2);
}
.sig-price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sig-borde-suave);
}
.sig-price__row:last-of-type { border-bottom: 0; }
.sig-price__desc { font-size: 16px; color: var(--sig-texto); }
.sig-price__tag { font-size: 14px; color: var(--sig-cobre); font-weight: 600; }
.sig-price__fine { font-size: 14px; color: var(--sig-texto-2); line-height: 1.5; display: block; }
.sig-price__amounts { display: flex; align-items: baseline; gap: 10px; }
.sig-price__was {
  font-family: var(--sig-serif);
  letter-spacing: -0.4px;
  font-size: 22px;
  text-decoration: line-through;
  color: var(--sig-texto-2);
}
.sig-price__now {
  font-family: var(--sig-serif);
  letter-spacing: -0.4px;
  font-size: clamp(24px, 3.3vw, 30px);
  color: var(--sig-tinta);
  white-space: nowrap;
}
.sig-price__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sig-texto-2);
}

/* --- Cita ----------------------------------------------------------- */
.sig-quote { margin: 0; max-width: 34em; }
.sig-quote__text {
  margin: 0 0 24px;
  font-family: var(--sig-serif);
  letter-spacing: -0.4px;
  font-size: clamp(24px, 3.4vw, 31px);
  line-height: 1.38;
  color: var(--sig-tinta);
  text-wrap: pretty;
}
.sig-quote__cite { font-size: 15px; color: var(--sig-texto-2); }

/* --- Testimonios ----------------------------------------------------- */
.sig-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}
.sig-testimonial {
  margin: 0;
  border: 1px solid var(--sig-tinta-line);
  padding: 30px 26px;
}
.sig-testimonial blockquote {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--sig-marfil);
  font-style: italic;
}
.sig-testimonial figcaption {
  font-size: 14px;
  color: var(--sig-tinta-sub);
}

/* --- Contacto ------------------------------------------------------------ */
.sig-section#contacto { scroll-margin-top: 90px; }
.sig-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 5vw, 64px);
}
.sig-contact__intro .sig-h2 { margin: 0 0 20px; }
.sig-contact__lead {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--sig-texto);
  max-width: 32em;
}
.sig-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.sig-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 34px;
  align-content: start;
  border-top: 1px solid var(--sig-borde);
  padding-top: 30px;
}
.sig-contact__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sig-texto-2);
}
.sig-contact__block p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sig-tinta);
}

/* --- Footer ------------------------------------------------------------ */
.sig-footer {
  border-top: 1px solid var(--sig-borde);
  background: var(--sig-marfil);
}
.sig-footer__inner {
  max-width: var(--sig-container);
  margin-inline: auto;
  padding: 40px var(--sig-px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.sig-footer__copy { margin: 0; font-size: 14px; color: var(--sig-texto-2); }
.sig-footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.sig-footer__nav a,
.sig-footer__list a {
  font-size: 14px;
  color: var(--sig-texto);
  text-decoration: none;
}
.sig-footer__nav a:hover,
.sig-footer__list a:hover { color: var(--sig-cobre); }
.sig-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Barra WhatsApp fija (mobile) ------------------------------------- */
.sig-mobilebar { display: none; }
@media (max-width: 860px) {
  .sig-mobilebar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(239, 233, 221, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--sig-borde);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .sig-mobilebar a {
    display: block;
    text-align: center;
    background: var(--sig-cobre);
    color: #fff;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }
  .sig-page { padding-bottom: 78px; }
}

