/* === SERFICO Brand v8 — Híbrido: spec greyscale en body + hero dark editorial ===
   Body (about/services/footer) sigue cofimsa_greyscale_ui_spec.json 1.1.0
   Hero/trust-strip/section-cta-sat se preservan dark con accent rojo SERFICO
   Excepción brand: rojo aparece SOLO en logo, focus rings y h1<em> (1% de pixel area) */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,ital@9..144,300..700,0;9..144,300..700,1&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* Spec greyscale tokens — body context */
  --canvas:          #FFFFFF;
  --surface:         #F7F7F7;
  --border:          #E2E2E2;
  --text-primary:    #1A1A1A;
  --text-secondary:  #737373;
  --cta-action:      #0A0A0A;  /* spec dice #000000, lo bajamos 4% para evitar vibración óptica */

  /* Theme variables overrides */
  --navy:    #1A1A1A;
  --blue:    #737373;
  --gold:    #B21F24;
  --gold-lt: #F3524E;
  --gold-dk: #7E1B1B;
  --light:   #F7F7F7;
  --gray:    #737373;
  --gray-lt: #E2E2E2;
  --text:    #1A1A1A;
  --shadow:  none;

  /* SERFICO brand — excepciones quirúrgicas */
  --serfico-red:   #B21F24;
  --serfico-dark:  #2A2A2A;
  --serfico-dark2: #1F1F1F;
}

/* ============================================================
   Excepciones brand: rojo SERFICO sobrevive aquí
   ============================================================ */
:focus-visible { outline: 2px solid var(--serfico-red) !important; outline-offset: 3px !important; }
.hero h1 em { color: var(--serfico-red) !important; font-style: italic; font-weight: 400; }
/* Logo del header conserva color natural (no greyscale) */
.site-logo img { filter: none !important; }

/* ============================================================
   Tipografía base — spec
   ============================================================ */
body {
  font-family: "Inter", "Open Sans", system-ui, -apple-system, sans-serif !important;
  color: var(--text-primary) !important;
  background: var(--canvas) !important;
}

/* Headings en body light usan Inter Bold per spec (hero h1 mantiene Fraunces) */
h2, h3, h4 {
  font-family: "Inter", "Open Sans", system-ui, sans-serif !important;
  color: var(--text-primary) !important;
  letter-spacing: -.01em;
}
h2 { font-weight: 700 !important; font-size: clamp(1.5rem, 3vw, 1.875rem) !important; line-height: 1.3 !important; }
h3 { font-weight: 600 !important; font-size: clamp(1.125rem, 1.5vw, 1.25rem) !important; line-height: 1.4 !important; }

/* ============================================================
   Paleta y links
   ============================================================ */
.cta-badge {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.25) !important;
  color: rgba(255,255,255,.85) !important;
}
a { color: var(--text-primary); }
a:hover { color: var(--cta-action); }

/* ============================================================
   Section: about (LIGHT canvas blanco)
   ============================================================ */
.section-about {
  background: var(--canvas) !important;
  padding: 7rem 0 !important;
}
.section-about p, .about-text p {
  color: var(--text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
.section-label {
  font-family: "Inter", sans-serif !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: var(--text-secondary) !important;
}

/* About stats minimalistas */
.stat-num {
  font-family: "Inter", sans-serif !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  letter-spacing: -.03em !important;
}
.stat-label {
  font-family: "Inter", sans-serif !important;
  font-size: .75rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--text-secondary) !important;
}

/* ============================================================
   Botones primarios en body LIGHT — spec dice negro
   ============================================================ */
.section-about .btn-primary,
.section-services .btn-primary,
.page-main .btn-primary {
  background: var(--cta-action) !important;
  border: 1px solid var(--cta-action) !important;
  color: var(--canvas) !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: .94rem !important;
  letter-spacing: .02em !important;
  padding: .9rem 2rem !important;
  box-shadow: none !important;
  transition: all 200ms cubic-bezier(.4,0,.2,1) !important;
}
.section-about .btn-primary:hover,
.section-services .btn-primary:hover,
.page-main .btn-primary:hover {
  background: var(--canvas) !important;
  color: var(--cta-action) !important;
  border-color: var(--cta-action) !important;
}

/* ============================================================
   HERO (DARK — se preserva, mantiene Fraunces + accent rojo)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--serfico-dark2) 0%, #2A2A2A 100%) !important;
  padding: 7rem 0 6rem !important;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23ffffff' stroke-opacity='0.04'><path d='M0 0h40v40H0z'/><path d='M0 20h40M20 0v40'/></g></svg>");
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: -10%; right: -10%; width: 50%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(178,31,36,.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 920px; }

.hero-kicker {
  display: inline-flex !important;
  align-items: center;
  gap: .85rem;
  font-family: "Inter", sans-serif !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.7) !important;
  margin-bottom: 1.75rem !important;
}
.hero-kicker::before {
  content: ""; display: inline-block;
  width: 40px; height: 1.5px;
  background: var(--serfico-red);
}

/* Hero h1 — única excepción de serif Fraunces (autoridad editorial en el hero) */
.hero h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: -.015em !important;
  color: #FFFFFF !important;
  margin-bottom: 1.5rem !important;
  text-wrap: balance;
  max-width: 22ch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero-sub {
  font-family: "Inter", sans-serif !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,.78) !important;
  max-width: 560px !important;
  margin-bottom: 2.5rem !important;
}

.hero-cta { gap: 1.25rem !important; }
.hero .btn-primary {
  background: var(--serfico-red) !important;
  border-color: var(--serfico-red) !important;
  color: #FFFFFF !important;
  padding: 1rem 2rem !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: .94rem !important;
  letter-spacing: .02em !important;
  box-shadow: 0 8px 24px rgba(178,31,36,.30) !important;
}
.hero .btn-primary:hover {
  background: var(--gold-lt) !important;
  border-color: var(--gold-lt) !important;
}
.hero .btn-outline {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255,255,255,.35) !important;
  padding: 1rem 1.75rem !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.6) !important;
}

/* ============================================================
   TRUST STRIP (DARK, glass panel — se preserva)
   ============================================================ */
.trust-strip {
  background: var(--serfico-dark2) !important;
  border-bottom: none !important;
  padding: 0 0 5rem 0 !important;
  margin-top: -3rem !important;
  position: relative;
  z-index: 2;
}
.trust-strip-inner {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 16px !important;
  padding: 2rem .5rem !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateZ(0);
}
.trust-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: .4rem 2rem !important;
  border-right: 1px solid rgba(255,255,255,.18);
  gap: .45rem !important;
  min-height: 100px;
}
.trust-item:last-child { border-right: none; }
.trust-item > div {
  display: flex !important;
  flex-direction: column !important;
  gap: .35rem !important;
}
.trust-item svg {
  width: 24px !important; height: 24px !important;
  color: rgba(255,255,255,.85) !important;
  margin-bottom: .25rem;
}
.trust-item strong {
  display: block !important;
  font-family: "Inter", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.trust-item span {
  display: block !important;
  font-family: "Inter", sans-serif !important;
  font-size: .7rem !important;
  font-weight: 500 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.55) !important;
  line-height: 1.4;
}
.trust-divider { display: none !important; }

@media (max-width: 900px) {
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem 0 !important; }
  .trust-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.10);
    padding-bottom: 1rem !important;
  }
  .trust-item:nth-last-child(-n+2) {
    border-bottom: none !important; padding-bottom: 0 !important;
  }
}

/* ============================================================
   Section CTA "¿Su empresa está al día con el SAT?" (DARK)
   ============================================================ */
.section-cta {
  background: linear-gradient(135deg, #2A2A2A 0%, var(--serfico-dark2) 100%) !important;
}

/* ============================================================
   Footer (DARK per spec) — bg #1A1A1A, text #E2E2E2, headings white
   ============================================================ */
.site-footer {
  background: var(--text-primary) !important;
  color: var(--border) !important;
}
.site-footer h2, .site-footer h3, .site-footer h4 {
  color: var(--canvas) !important;
  font-family: "Inter", sans-serif !important;
}
.site-footer a {
  color: var(--border) !important;
  transition: color 200ms cubic-bezier(.4,0,.2,1);
}
.site-footer a:hover {
  color: var(--canvas) !important;
}

/* ============================================================
   Forms inputs (spec)
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
  border: 1px solid var(--border) !important;
  background: var(--canvas) !important;
  color: var(--text-primary) !important;
  font-family: "Inter", sans-serif !important;
  border-radius: 4px !important;
  padding: .85rem 1rem !important;
  transition: border-color 200ms cubic-bezier(.4,0,.2,1) !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--text-primary) !important;
  outline: none !important;
}
.wpcf7-submit,
input[type="submit"],
button[type="submit"] {
  background: var(--cta-action) !important;
  color: var(--canvas) !important;
  border: 1px solid var(--cta-action) !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  padding: .9rem 2rem !important;
  letter-spacing: .02em !important;
  cursor: pointer;
  transition: all 200ms cubic-bezier(.4,0,.2,1) !important;
}
.wpcf7-submit:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--canvas) !important;
  color: var(--cta-action) !important;
}

/* ============================================================
   Greyscale photo filter para fotos corporativas (NO logos clientes)
   Se activa solo en .corporate-photo class — opt-in
   ============================================================ */
img.corporate-photo,
.team-photo img,
.section-about img:not(.no-filter) {
  filter: grayscale(100%) contrast(110%);
  transition: filter 300ms cubic-bezier(.4,0,.2,1);
}
img.corporate-photo:hover,
.team-photo img:hover {
  filter: grayscale(0%) contrast(100%);
}

/* === v8.1: Logo en header — quitar box blanco artificial === */
.site-logo img {
  height: 44px !important;
  width: auto !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Header height responsive: era 100px con padding por el card. Ya no necesitamos tanto. */
.site-header .container {
  height: 84px !important;
}

/* === v8.2: Logo + header más prominentes === */
.site-logo img {
  height: 52px !important;
}
.site-header .container {
  height: 92px !important;
}

/* === v9: Auditoría UX/UI — fixes integrales ===
   Problemas resueltos:
   1. Headings invisibles en .section-cta (h2 #1A1A1A sobre fondo #1A1A1A)
   2. Footer h3 y text en .site-footer
   3. Sistema de spacing uniforme entre secciones
   4. Smooth scroll global
*/

/* === A) Headings BLANCOS en TODAS las secciones dark === */
.section-cta h1,
.section-cta h2,
.section-cta h3,
.section-cta h4,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: #FFFFFF !important;
}

/* === B) Body copy en secciones dark — gris claro alto-contraste === */
.section-cta p,
.section-cta .cta-sub,
.site-footer p {
  color: rgba(255,255,255,.82) !important;
}

.section-cta .cta-badge,
.section-cta .cta-pre {
  color: rgba(255,255,255,.9) !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.15) !important;
}

/* === D) Section CTA — fix h2 invisible + mejor spacing === */
.section-cta {
  background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%) !important;
  padding: 6rem 0 !important;
  position: relative;
}
.section-cta h2 {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em;
  margin-bottom: 1rem !important;
}
.section-cta .btn-primary {
  background: #B21F24 !important;
  border-color: #B21F24 !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(178,31,36,.30) !important;
}

/* === E) Footer — text + links contrast + uniforme === */
.site-footer {
  background: #0F0F0F !important;
  color: rgba(255,255,255,.7) !important;
  padding: 5rem 0 0 !important;
}
.site-footer p { color: rgba(255,255,255,.7) !important; line-height: 1.7; }
.site-footer a {
  color: rgba(255,255,255,.7) !important;
  transition: color 200ms cubic-bezier(.4,0,.2,1) !important;
}
.site-footer a:hover { color: #FFFFFF !important; }
.site-footer h3,
.site-footer .footer-heading {
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  margin-bottom: 1.25rem !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08) !important;
  padding: 1.5rem 0 !important;
  margin-top: 3rem !important;
  font-size: .85rem !important;
  color: rgba(255,255,255,.5) !important;
}

/* === F) Sistema uniforme de spacing vertical === */
.section-about {
  padding: 6rem 0 !important;
}

/* === G) Smooth scroll === */
html { scroll-behavior: smooth; }

/* === v9.1: Refinamientos estéticos del CTA-bloque y Footer === */

/* --- Section CTA: padding más balanceado, sin espacio vacío excesivo --- */
.section-cta {
  padding: 5rem 0 4rem !important;
}
.section-cta .cta-inner,
.section-cta > .container {
  max-width: 720px !important;
  margin: 0 auto !important;
  text-align: center;
}
.section-cta h2 { margin-bottom: 1rem !important; }
.section-cta p,
.section-cta .cta-sub {
  margin-bottom: 2rem !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  max-width: 560px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Footer brand col: logo y texto bien proporcionados --- */
.footer-brand img {
  height: 56px !important;
  width: auto !important;
  margin-bottom: 1.5rem !important;
  display: block;
}
.footer-brand p {
  color: rgba(255,255,255,.7) !important;
  font-size: .9rem !important;
  line-height: 1.65 !important;
  max-width: 320px !important;
}

/* --- Footer headings con buena jerarquía --- */
.site-footer h3 {
  color: #FFFFFF !important;
  font-family: "Inter", sans-serif !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  margin-bottom: 1.25rem !important;
}

/* --- Footer content + links bien legibles --- */
.site-footer address,
.site-footer address p {
  font-style: normal;
  font-size: .92rem !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,.7) !important;
  margin-bottom: .65rem !important;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .65rem; }
.footer-nav a {
  font-size: .92rem !important;
  display: inline-block;
}

/* --- Footer grid spacing más equilibrado --- */
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1.2fr .8fr !important;
  gap: 3rem !important;
  padding: 3rem 0 !important;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* --- Footer bottom (copyright) más prominente y bien espaciado --- */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10) !important;
  padding: 1.75rem 0 !important;
  margin-top: 0 !important;
  text-align: center;
}
.footer-bottom p {
  font-size: .82rem !important;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55) !important;
  margin: 0 !important;
}

/* === v9.2: Fix textarea del form de contacto (era demasiado alto) === */
.wpcf7-textarea,
.contact-form-wrap textarea,
.contact-form textarea {
  min-height: 120px !important;
  max-height: 220px !important;
  resize: vertical !important;
  font-family: "Inter", sans-serif !important;
  font-size: .95rem !important;
  line-height: 1.5 !important;
  padding: .85rem 1rem !important;
}

/* También uniformar el alto de inputs single-line con resto de UI */
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"] {
  height: 48px !important;
  font-family: "Inter", sans-serif !important;
  font-size: .95rem !important;
}

/* === v9.3: Contact location card (reemplaza iframe Google Maps) === */
.contact-location-card {
  background: linear-gradient(135deg, #1F1F1F 0%, #2A2A2A 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}
.contact-location-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg width=40 height=40 viewBox=0 0 40 40><g fill=none stroke=%23ffffff stroke-opacity=0.05><path d=M0 0h40v40H0z/><path d=M0 20h40M20 0v40/></g></svg>");
  pointer-events: none;
}
.contact-location-card > * { position: relative; z-index: 1; }
.contact-location-card .location-icon {
  display: inline-flex;
  width: 64px; height: 64px;
  background: rgba(178,31,36,.15);
  border: 1px solid rgba(178,31,36,.30);
  border-radius: 50%;
  align-items: center; justify-content: center;
  color: #F3524E;
  margin-bottom: 1.5rem;
}
.contact-location-card .location-icon svg {
  width: 30px; height: 30px;
}
.contact-location-card .location-eyebrow {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
}
.contact-location-card .location-title {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -.015em;
  color: #FFFFFF;
  margin-bottom: .75rem;
  line-height: 1.2;
}
.contact-location-card .location-detail {
  font-family: "Inter", sans-serif;
  font-size: .95rem;
  color: rgba(255,255,255,.78) !important;
  margin: 0 0 .35rem 0 !important;
}
.contact-location-card .location-address {
  font-family: "Inter", sans-serif;
  font-size: .92rem;
  color: rgba(255,255,255,.65) !important;
  line-height: 1.55 !important;
  margin: 0 0 1.75rem 0 !important;
}
.contact-location-card .location-cta {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}
.contact-location-card .btn-primary {
  background: #B21F24 !important;
  border-color: #B21F24 !important;
  color: #FFFFFF !important;
  padding: .85rem 1.5rem !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: .9rem !important;
  letter-spacing: .02em !important;
  box-shadow: 0 6px 18px rgba(178,31,36,.30) !important;
  border-radius: 8px !important;
}
.contact-location-card .btn-primary:hover {
  background: #F3524E !important;
  border-color: #F3524E !important;
}
.contact-location-card .btn-outline-dark {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,.30) !important;
  color: #FFFFFF !important;
  padding: .85rem 1.5rem !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: .9rem !important;
  letter-spacing: .02em !important;
  border-radius: 8px !important;
  text-decoration: none;
  display: inline-block;
  transition: background .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1);
}
.contact-location-card .btn-outline-dark:hover {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.55) !important;
  color: #FFFFFF !important;
}

/* === v9.4: Back-to-top button === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1), background .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: #B21F24;
  border-color: #B21F24;
}
.back-to-top:hover svg {
  transform: translateY(-2px);
}
.back-to-top svg {
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 600px) {
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* ============================================================
   FASE 1 — Sprint 1 Quick Wins (v10)
   ============================================================ */

/* === F1.1: Loading state en submit CF7 === */
.wpcf7-submit {
  position: relative;
  transition: background-color .25s cubic-bezier(.4,0,.2,1), color .25s cubic-bezier(.4,0,.2,1) !important;
}
.wpcf7-form.submitting .wpcf7-submit {
  color: transparent !important;
  pointer-events: none;
  opacity: .8;
}
.wpcf7-form.submitting .wpcf7-submit::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: cf7-spin .65s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes cf7-spin {
  to { transform: rotate(360deg); }
}
/* Hide CF7 default spinner — reemplazado por el nuestro */
.wpcf7-spinner { display: none !important; }

/* === F1.4: Footer 4 columnas equilibradas === */
.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1.2fr 1fr .8fr !important;
  gap: 3rem !important;
  padding: 3rem 0 !important;
}
@media (max-width: 1024px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
}
@media (max-width: 600px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
  }
}
.footer-services ul,
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-services li,
.footer-nav li { margin-bottom: .65rem; }
.footer-services a,
.footer-nav a {
  color: rgba(255,255,255,.7) !important;
  font-size: .92rem !important;
  transition: color .2s cubic-bezier(.4,0,.2,1) !important;
}
.footer-services a:hover,
.footer-nav a:hover { color: #FFFFFF !important; }

/* === F1.5: Pull-quote editorial estilo McKinsey === */
.pull-quote {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  color: #1A1A1A;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid #B21F24;
  margin: 2.5rem 0;
  max-width: 720px;
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #737373;
}

/* ============================================================
   FASE 2 — Sprint 2 Foundation (v11)
   Mega-menu, Alertas archive/single, Recursos, Newsletter footer
   ============================================================ */

/* === F2.1: Mega-menu / submenu === */
.nav-list { gap: 1.75rem !important; }
.nav-list > li { position: relative; }
.has-submenu > a {
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
}
.nav-caret {
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  margin-top: 1px;
}
.has-submenu:hover > a .nav-caret,
.has-submenu:focus-within > a .nav-caret {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: calc(100% + .5rem);
  left: -1rem;
  min-width: 260px;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .65rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1), visibility .22s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
  z-index: 100;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li { display: block; margin: 0; }
.submenu a {
  display: block !important;
  padding: .65rem 1rem !important;
  color: rgba(255,255,255,.85) !important;
  font-size: .9rem !important;
  border-radius: 6px !important;
  border-bottom: none !important;
  transition: background .2s cubic-bezier(.4,0,.2,1), color .2s cubic-bezier(.4,0,.2,1) !important;
}
.submenu a:hover {
  background: rgba(178,31,36,.12) !important;
  color: #FFFFFF !important;
}

/* Active state */
.nav-list a.is-active {
  color: #B21F24 !important;
  border-bottom-color: #B21F24 !important;
}

/* Mobile menu toggle */
@media (max-width: 768px) {
  .nav-toggle { display: flex !important; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #1A1A1A;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: .5rem !important; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,255,255,.04);
    border: none;
    box-shadow: none;
    margin-top: .5rem;
  }
  .nav-caret { display: none; }
}

/* === F2.2b: Archive Alertas Fiscales === */
.alertas-archive-hero {
  background: linear-gradient(135deg, #1F1F1F 0%, #3A3A3A 100%);
  padding: 5rem 0 4rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.alertas-archive-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23ffffff' stroke-opacity='0.04'><path d='M0 0h40v40H0z'/><path d='M0 20h40M20 0v40'/></g></svg>");
  pointer-events: none;
}
.alertas-archive-hero .container { position: relative; z-index: 1; }
.alertas-archive-hero h1 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  font-weight: 400 !important;
  color: #FFFFFF !important;
  margin: 1rem 0 1rem !important;
  letter-spacing: -.02em;
}
.alertas-archive-hero p {
  color: rgba(255,255,255,.78) !important;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.alertas-archive-hero .section-label {
  color: rgba(255,255,255,.55) !important;
  background: transparent !important;
}

.alertas-archive { padding: 4rem 0 5rem; background: #FFFFFF; }

.alertas-filtros {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E2E2E2;
}
.alerta-filtro {
  display: inline-block;
  padding: .5rem 1rem;
  background: #F7F7F7;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: #1A1A1A !important;
  text-decoration: none;
  transition: background .2s cubic-bezier(.4,0,.2,1), color .2s cubic-bezier(.4,0,.2,1) !important;
}
.alerta-filtro:hover {
  background: #E2E2E2;
  color: #1A1A1A !important;
}
.alerta-filtro.is-active {
  background: #1A1A1A;
  color: #FFFFFF !important;
}

.alertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.alerta-card {
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1);
}
.alerta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  border-color: rgba(178,31,36,.20);
}
.alerta-card-cat {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #B21F24;
  margin-bottom: .85rem;
}
.alerta-card-title {
  font-family: "Inter", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin-bottom: .75rem !important;
  letter-spacing: -.01em;
}
.alerta-card-title a {
  color: #1A1A1A !important;
  text-decoration: none;
}
.alerta-card-title a:hover { color: #B21F24 !important; }
.alerta-card-excerpt {
  font-size: .92rem;
  line-height: 1.55;
  color: #737373 !important;
  margin-bottom: 1.25rem !important;
}
.alerta-card-meta {
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  color: #737373;
}

.alertas-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #737373;
}
.alertas-pagination { margin-top: 3rem; text-align: center; }
.alertas-pagination .nav-links { display: inline-flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.alertas-pagination a, .alertas-pagination .current {
  padding: .5rem .85rem; border: 1px solid #E2E2E2; border-radius: 6px;
  color: #1A1A1A; font-size: .9rem; text-decoration: none;
}
.alertas-pagination .current { background: #1A1A1A; color: #FFFFFF; border-color: #1A1A1A; }

/* === Single Alerta === */
.alerta-hero { background: #FFFFFF; padding: 4rem 0 3rem; }
.alerta-hero h1 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  font-weight: 400 !important;
  color: #1A1A1A !important;
  margin: .75rem 0 1.25rem !important;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.alerta-cat {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #B21F24 !important;
  text-decoration: none;
}
.alerta-cat:hover { color: #7E1B1B !important; }
.alerta-meta {
  font-family: "Inter", sans-serif;
  font-size: .88rem;
  color: #737373;
  display: flex;
  gap: .65rem;
  align-items: center;
}
.alerta-meta-sep { opacity: .5; }
.alerta-body { padding: 0 0 5rem; background: #FFFFFF; }
.container--narrow { max-width: 760px; }
.alerta-content {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1A1A1A;
}
.alerta-content h2 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  margin: 2.5rem 0 1rem !important;
  color: #1A1A1A !important;
}
.alerta-content h3 {
  font-family: "Inter", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin: 2rem 0 .75rem !important;
}
.alerta-content p { margin-bottom: 1.25rem; }
.alerta-content ul, .alerta-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.alerta-content li { margin-bottom: .5rem; line-height: 1.7; }
.alerta-content a { color: #B21F24; }
.alerta-content a:hover { color: #7E1B1B; }

.alerta-cta-back { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #E2E2E2; }
.btn-text {
  font-family: "Inter", sans-serif;
  font-size: .92rem;
  font-weight: 500;
  color: #1A1A1A !important;
  text-decoration: none;
}
.btn-text:hover { color: #B21F24 !important; }

/* === Servicio (página individual) === */
.servicio-hero {
  background: linear-gradient(135deg, #1F1F1F 0%, #2A2A2A 100%);
  padding: 5rem 0 4rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.servicio-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23ffffff' stroke-opacity='0.04'><path d='M0 0h40v40H0z'/><path d='M0 20h40M20 0v40'/></g></svg>");
  pointer-events: none;
}
.servicio-hero .container { position: relative; z-index: 1; }
.servicio-hero h1 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
  font-weight: 400 !important;
  color: #FFFFFF !important;
  margin: 1rem 0 1.25rem !important;
  letter-spacing: -.02em;
}
.servicio-hero .section-label {
  color: rgba(255,255,255,.55) !important;
}
.servicio-lead {
  color: rgba(255,255,255,.78) !important;
  font-size: 1.1rem !important;
  line-height: 1.65 !important;
  max-width: 700px;
  margin-bottom: 2rem !important;
}
.servicio-hero-cta { margin-top: 1.5rem; }
.servicio-hero-cta .btn-primary {
  background: #B21F24 !important;
  color: #FFFFFF !important;
  padding: .95rem 1.85rem !important;
}

.servicio-content { padding: 4rem 0 5rem; background: #FFFFFF; }
.servicio-body {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1A1A1A;
}
.servicio-body h2 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.65rem !important;
  font-weight: 400 !important;
  margin: 2.5rem 0 1rem !important;
  color: #1A1A1A !important;
}
.servicio-body h3 {
  font-family: "Inter", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin: 1.5rem 0 .5rem !important;
  color: #1A1A1A !important;
}
.servicio-body p { margin-bottom: 1.25rem; color: #1A1A1A; }
.servicio-body ul { margin: 1rem 0 1.75rem 1.5rem; }
.servicio-body li { margin-bottom: .65rem; line-height: 1.7; color: #1A1A1A; }

.servicio-cta-bottom {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: #F7F7F7;
  border-radius: 12px;
  text-align: center;
}
.servicio-cta-bottom h3 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  color: #1A1A1A !important;
  margin-bottom: .75rem !important;
}
.servicio-cta-bottom p {
  color: #737373 !important;
  margin-bottom: 1.5rem !important;
}

/* === Recursos page (calendario tabla) === */
.recursos-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #737373;
  margin-bottom: 3rem;
}
.recursos-tabla, .calendario-fiscal {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
  font-family: "Inter", sans-serif;
  font-size: .92rem;
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 8px;
  overflow: hidden;
}
.recursos-tabla thead, .calendario-fiscal thead {
  background: #F7F7F7;
  border-bottom: 2px solid #E2E2E2;
}
.recursos-tabla th, .calendario-fiscal th {
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  color: #1A1A1A;
}
.recursos-tabla td, .calendario-fiscal td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: top;
  line-height: 1.5;
  color: #1A1A1A;
}
.recursos-tabla tr:last-child td, .calendario-fiscal tr:last-child td {
  border-bottom: none;
}
.recursos-tabla tbody tr:hover, .calendario-fiscal tbody tr:hover {
  background: #FAFAFA;
}
.recursos-disclaimer {
  background: #FFEBEE;
  border-left: 4px solid #B21F24;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.recursos-disclaimer p {
  margin: 0 !important;
  font-size: .92rem;
  line-height: 1.6;
  color: #1A1A1A !important;
}

/* ============================================================
   FASE 3 — Sprint 3 Content & Trust Building (v12)
   Equipo, Casos de éxito, Strip clientes, Calendario print, hero CTA secondary
   ============================================================ */

/* === F3.2: Equipo grid === */
.equipo-hero {
  background: linear-gradient(135deg, #1F1F1F 0%, #2A2A2A 100%);
  padding: 5rem 0 4rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.equipo-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23ffffff' stroke-opacity='0.04'><path d='M0 0h40v40H0z'/><path d='M0 20h40M20 0v40'/></g></svg>");
  pointer-events: none;
}
.equipo-hero .container { position: relative; z-index: 1; }
.equipo-hero h1 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important;
  font-weight: 400 !important;
  color: #FFFFFF !important;
  margin: 1rem 0 1rem !important;
  letter-spacing: -.02em;
}
.equipo-hero .section-label { color: rgba(255,255,255,.55) !important; }
.equipo-lead {
  color: rgba(255,255,255,.78) !important;
  font-size: 1.1rem !important;
  line-height: 1.65 !important;
  max-width: 720px;
}

.equipo-content { padding: 5rem 0; background: #FFFFFF; }
.equipo-intro {
  margin: 0 auto 4rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #737373;
  text-align: center;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.equipo-card {
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1);
}
.equipo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  border-color: rgba(178,31,36,.20);
}
.equipo-avatar {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F7F7F7;
}
.equipo-avatar svg { width: 100%; height: 100%; display: block; }
.equipo-avatar-tag {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(178,31,36,.95);
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 4px;
  letter-spacing: .04em;
}
.equipo-card-body { padding: 1.5rem 1.5rem 1.75rem; }
.equipo-card-name {
  font-family: "Inter", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #1A1A1A !important;
  margin: 0 0 .25rem !important;
  letter-spacing: -.01em;
}
.equipo-card-role {
  font-family: "Inter", sans-serif !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #B21F24 !important;
  margin: 0 0 1rem !important;
}
.equipo-card-bio {
  font-size: .92rem !important;
  line-height: 1.6 !important;
  color: #737373 !important;
  margin: 0 0 1.25rem !important;
}
.equipo-card-links {
  display: flex;
  gap: .75rem;
  border-top: 1px solid #F0F0F0;
  padding-top: 1rem;
}
.equipo-card-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  color: #737373 !important;
  background: #F7F7F7;
  transition: background .2s cubic-bezier(.4,0,.2,1), color .2s cubic-bezier(.4,0,.2,1) !important;
}
.equipo-card-links a:hover {
  background: #B21F24;
  color: #FFFFFF !important;
}

.equipo-cta-bottom {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: #F7F7F7;
  border-radius: 12px;
  text-align: center;
}
.equipo-cta-bottom h3 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  color: #1A1A1A !important;
  margin-bottom: .75rem !important;
}
.equipo-cta-bottom p {
  color: #737373 !important;
  margin-bottom: 1.5rem !important;
}

/* === F3.3: Hero secondary CTA "Descarga calendario" === */
.btn-link-arrow {
  background: transparent !important;
  color: rgba(255,255,255,.85) !important;
  border: none !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 1rem 0 !important;
  margin-left: 1rem;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: .92rem !important;
  transition: color .2s cubic-bezier(.4,0,.2,1) !important;
}
.btn-link-arrow:hover { color: #FFFFFF !important; }

/* === Calendario print page === */
.calendario-hero {
  background: linear-gradient(135deg, #1F1F1F 0%, #2A2A2A 100%);
  padding: 4rem 0 3rem;
  color: #FFFFFF;
  position: relative; overflow: hidden;
}
.calendario-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23ffffff' stroke-opacity='0.04'><path d='M0 0h40v40H0z'/><path d='M0 20h40M20 0v40'/></g></svg>");
  pointer-events: none;
}
.calendario-hero .container { position: relative; z-index: 1; }
.calendario-hero h1 {
  font-family: "Fraunces", Georgia, serif !important;
  color: #FFFFFF !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  font-weight: 400 !important;
  margin: 1rem 0 1rem !important;
  letter-spacing: -.015em;
}
.calendario-hero p {
  color: rgba(255,255,255,.78) !important;
  max-width: 620px;
  margin-bottom: 1.75rem !important;
}
.calendario-hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; }
.calendario-hero-cta .btn-primary {
  background: #B21F24 !important;
  color: #FFFFFF !important;
  border-color: #B21F24 !important;
}
.calendario-hero-cta .btn-outline-dark {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255,255,255,.30) !important;
  padding: .85rem 1.5rem !important;
  border-radius: 8px !important;
  text-decoration: none;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: .9rem !important;
}

.calendario-print { background: #FFFFFF; padding: 3rem 0 5rem; }
.print-only { display: none; }
.calendario-print-header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 .5rem;
}
.calendario-print-header p { color: #737373; font-size: .85rem; margin: 0; }
.calendario-print-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #E2E2E2;
  font-size: .8rem;
  color: #737373;
  text-align: center;
}

/* Print styles */
@media print {
  body * { visibility: hidden; }
  .calendario-print, .calendario-print * { visibility: visible; }
  .calendario-print { position: absolute; left: 0; top: 0; width: 100%; padding: 0; }
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .calendario-fiscal { font-size: .85rem; }
  .recursos-disclaimer { background: transparent; border-left: 2px solid #B21F24; }
  @page { margin: 1.5cm; }
}

/* === v12.1 FIX: h1 blanco en TODOS los heroes dark === */
.page-hero h1,
.servicio-hero h1,
.equipo-hero h1,
.alertas-archive-hero h1,
.alerta-hero h1,
.calendario-hero h1 {
  color: #FFFFFF !important;
}
/* Excepción: single alerta tiene fondo blanco, h1 charcoal */
.alerta-hero h1 {
  color: #1A1A1A !important;
}

/* ============================================================
   FASE 4 — Sprint 4 Vertical/Segmentation (v13)
   Sectores, Newsroom mejorado (search + featured), refinamientos
   ============================================================ */

/* === Sectores hero + index === */
.sectores-hero, .sector-hero {
  background: linear-gradient(135deg, #1F1F1F 0%, #2A2A2A 100%);
  padding: 5rem 0 4rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.sectores-hero::before, .sector-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23ffffff' stroke-opacity='0.04'><path d='M0 0h40v40H0z'/><path d='M0 20h40M20 0v40'/></g></svg>");
  pointer-events: none;
}
.sectores-hero .container, .sector-hero .container { position: relative; z-index: 1; }
.sectores-hero h1, .sector-hero h1 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important;
  font-weight: 400 !important;
  color: #FFFFFF !important;
  margin: 1rem 0 1rem !important;
  letter-spacing: -.02em;
}
.sectores-hero .section-label, .sector-hero .section-label { color: rgba(255,255,255,.55) !important; }
.sectores-lead, .sector-lead {
  color: rgba(255,255,255,.78) !important;
  font-size: 1.1rem !important;
  line-height: 1.65 !important;
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.sector-hero-cta { margin-top: 1.5rem; }

.sectores-content { padding: 5rem 0; background: #FFFFFF; }
.sectores-intro {
  margin: 0 auto 4rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #737373;
  text-align: center;
}

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sector-card {
  background: #F7F7F7;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background-color 250ms cubic-bezier(.4,0,.2,1), transform 250ms cubic-bezier(.4,0,.2,1), border-color 250ms cubic-bezier(.4,0,.2,1) !important;
}
.sector-card:hover {
  background: #FFFFFF;
  transform: translateY(-4px);
  border-color: rgba(178,31,36,.20);
  color: inherit !important;
}
.sector-card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #B21F24;
  margin-bottom: 1.25rem;
}
.sector-card-icon svg { width: 32px; height: 32px; }
.sector-card-title {
  font-family: "Inter", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #1A1A1A !important;
  margin: 0 0 .65rem !important;
  letter-spacing: -.01em;
}
.sector-card-desc {
  font-size: .92rem !important;
  line-height: 1.55 !important;
  color: #737373 !important;
  margin: 0 0 1.25rem !important;
  flex-grow: 1;
}
.sector-card-arrow {
  font-family: "Inter", sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: #B21F24;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
}
.sector-card:hover .sector-card-arrow svg { transform: translateX(6px); transition: transform 250ms cubic-bezier(.4,0,.2,1); }

/* === Sector individual page === */
.sector-content { padding: 4rem 0 5rem; background: #FFFFFF; }
.sector-body {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1A1A1A;
}
.sector-body h2 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.65rem !important;
  font-weight: 400 !important;
  margin: 2.5rem 0 1rem !important;
  color: #1A1A1A !important;
}
.sector-body p { margin-bottom: 1.25rem; }
.sector-body ul { margin: 1rem 0 1.75rem 1.5rem; }
.sector-body li { margin-bottom: .65rem; line-height: 1.7; }
.sector-body a { color: #B21F24; text-decoration: underline; text-underline-offset: 3px; }
.sector-body a:hover { color: #7E1B1B; }

.sector-cta-bottom {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: #F7F7F7;
  border-radius: 12px;
  text-align: center;
}
.sector-cta-bottom h3 {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  color: #1A1A1A !important;
  margin-bottom: .75rem !important;
}
.sector-cta-bottom p {
  color: #737373 !important;
  margin-bottom: 1.5rem !important;
}

/* === Newsroom mejorado: toolbar (search + filter) === */
.alertas-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E2E2E2;
}
.alertas-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  max-width: 560px;
}
.alertas-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #737373;
  pointer-events: none;
}
.alertas-search input[type="search"] {
  width: 100%;
  padding: .85rem 1rem .85rem 2.85rem !important;
  border: 1px solid #E2E2E2 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  font-family: "Inter", sans-serif !important;
  font-size: .95rem !important;
  color: #1A1A1A !important;
  transition: border-color 200ms cubic-bezier(.4,0,.2,1) !important;
}
.alertas-search input[type="search"]:focus {
  border-color: #1A1A1A !important;
  outline: none !important;
}
.alertas-search input[type="search"]::placeholder { color: #999; }
.alertas-search-submit {
  background: #1A1A1A;
  color: #FFFFFF;
  border: none;
  padding: .85rem 1.25rem;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
}
.alertas-search-result-info {
  margin: 1.5rem 0;
  padding: .85rem 1.25rem;
  background: #F7F7F7;
  border-radius: 8px;
  color: #737373;
  font-size: .92rem;
}

/* === Featured alert (la más reciente, destacada) === */
.alerta-featured {
  background: linear-gradient(135deg, #1F1F1F 0%, #2A2A2A 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.alerta-featured::before {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(178,31,36,.18) 0%, transparent 60%);
  pointer-events: none;
}
.alerta-featured > * { position: relative; z-index: 1; }
.alerta-featured-meta {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
  align-items: center;
}
.alerta-featured-cat {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #B21F24;
  padding: .3rem .65rem;
  border-radius: 4px;
}
.alerta-featured-tag {
  font-family: "Inter", sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.alerta-featured-title {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  margin: 0 0 1rem !important;
  letter-spacing: -.015em;
}
.alerta-featured-title a {
  color: #FFFFFF !important;
  text-decoration: none;
}
.alerta-featured-title a:hover { color: #F3524E !important; }
.alerta-featured-excerpt {
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,.82) !important;
  margin: 0 0 1.5rem !important;
}
.alerta-featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.10);
  flex-wrap: wrap;
  gap: .5rem;
}
.alerta-featured-footer time {
  font-family: "Inter", sans-serif;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.alerta-featured-link {
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #F3524E !important;
  text-decoration: none;
}
.alerta-featured-link:hover { color: #FFFFFF !important; }

/* === Pagination mejorada === */
.alertas-pagination { margin-top: 3rem; text-align: center; }
.alertas-pagination .page-numbers {
  display: inline-block;
  padding: .55rem .9rem;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  color: #1A1A1A;
  font-size: .9rem;
  text-decoration: none;
  margin: 0 .15rem;
  font-family: "Inter", sans-serif;
  transition: background 200ms cubic-bezier(.4,0,.2,1), color 200ms cubic-bezier(.4,0,.2,1) !important;
}
.alertas-pagination .page-numbers:hover {
  background: #F7F7F7;
}
.alertas-pagination .page-numbers.current {
  background: #1A1A1A;
  color: #FFFFFF;
  border-color: #1A1A1A;
}
.alertas-pagination .page-numbers.dots { border: none; }

/* === Screen-reader only utility === */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === Mobile responsive ajustes === */
@media (max-width: 768px) {
  .alertas-toolbar { gap: 1rem; }
  .alertas-search { max-width: 100%; }
  .alerta-featured { padding: 1.75rem 1.5rem; }
  .alerta-featured-footer { flex-direction: column; align-items: flex-start; }
}

