/*
Theme Name: Núcleo Entrefincas
Theme URI: https://nucleoentrefincas.es/
Author: Núcleo Entrefincas
Author URI: https://nucleoentrefincas.es/
Description: Tema WordPress de una sola página para Núcleo Entrefincas, administración de fincas en Dos Hermanas y Sevilla. Diseño moderno con paleta rosa/violeta, secciones de servicios, proceso, FAQ y formulario de presupuesto.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nucleo-entrefincas
Tags: one-page, business, landing-page, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(280, 60%, 15%);
  background: hsl(320, 20%, 98%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#contenido { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: hsl(280, 60%, 15%);
}
p { margin: 0; }

/* ============================================================
   2. DESIGN TOKENS
   ============================================================ */
:root {
  --background: hsl(320, 20%, 98%);
  --foreground: hsl(280, 60%, 15%);
  --card: #ffffff;
  --muted: hsl(320, 20%, 96%);
  --muted-foreground: hsl(280, 15%, 45%);
  --primary: hsl(280, 60%, 20%);
  --primary-foreground: #ffffff;
  --accent: hsl(340, 80%, 55%);
  --accent-foreground: #ffffff;
  --border: hsl(280, 15%, 90%);
  --rose-bg: hsl(340, 40%, 97%);
  --gradient-hero: linear-gradient(135deg, hsl(340, 80%, 55%) 0%, hsl(280, 60%, 40%) 50%, hsl(260, 70%, 35%) 100%);
  --gradient-cta: linear-gradient(135deg, hsl(340, 80%, 55%) 0%, hsl(280, 60%, 35%) 100%);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
.section-lg { padding: 3rem 0; }
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
  .section-lg { padding: 5rem 0; }
}
.text-center { text-align: center; }
.gradient-hero { background: var(--gradient-hero); }
.gradient-cta { background: var(--gradient-cta); }
.bg-rose { background: var(--rose-bg); }
.bg-card { background: var(--card); }
.bg-bg { background: var(--background); }

/* ============================================================
   4. NAVBAR
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0 1.5rem;
  transition: all .3s ease;
  transform: translateY(-100%);
  animation: slideDown .5s ease forwards;
}
@keyframes slideDown { to { transform: translateY(0); } }
.site-nav.scrolled {
  background: hsla(340, 80%, 55%, .95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  padding: 0 1.5rem;
}
/* Outside the front page there is no dark hero behind the nav — give it
   the same solid background it gets on scroll so the white labels read. */
body:not(.home) .site-nav {
  background: hsla(340, 80%, 55%, .95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; color: #fff; font-weight: 700; font-size: 1.125rem; letter-spacing: -.025em; font-family: 'DM Sans', sans-serif; }
@media (min-width: 768px) { .brand { font-size: 1.25rem; } }
.brand img { height: 56px; width: auto; display: block; }
@media (min-width: 768px) { .brand img { height: 64px; } }
.nav-links { display: none; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 500;
  transition: color .2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-cta {
  display: none; align-items: center; gap: .4rem;
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 9999px; padding: .5rem 1.25rem; font-size: .875rem; font-weight: 500;
  transition: all .3s;
}
.nav-cta svg { flex-shrink: 0; }
.nav-cta:hover { background: rgba(255,255,255,.2); transform: scale(1.05); }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }
.nav-toggle { color: #fff; padding: .5rem; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.mobile-menu {
  display: none; margin-top: 1rem; background: var(--card);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-xl);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .75rem 0; color: var(--foreground); font-weight: 500; min-height: 44px; }
.mobile-menu .nav-cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; margin-top: 1rem; background: var(--gradient-cta);
  color: #fff; border-radius: 9999px; min-height: 44px; text-align: center;
  padding: .75rem; border: none;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; padding: 1rem 2rem; font-size: 1rem; font-weight: 600;
  transition: all .3s; cursor: pointer; line-height: 1;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-lg); }
.btn-light:hover { background: rgba(255,255,255,.9); }
.btn-outline-light {
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,.2); }
.btn-cta { background: var(--gradient-cta); color: #fff; box-shadow: var(--shadow-md); }
.btn-cta:hover { opacity: .9; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero { padding: 7rem 0 2rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 10rem 0 4rem; } }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.hero-badge {
  display: inline-block; background: hsla(340, 80%, 55%, .9); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .375rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 1.875rem; color: #fff; line-height: 1.1; max-width: 56rem; margin: 0 auto;
}
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }
.hero p.lead {
  margin-top: 1.5rem; color: rgba(255,255,255,.7); max-width: 42rem; margin-left: auto; margin-right: auto;
  font-size: .95rem; line-height: 1.6;
}
@media (min-width: 768px) { .hero p.lead { font-size: 1.125rem; } }
.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-note { margin-top: .75rem; color: rgba(255,255,255,.5); font-size: .875rem; }
.hero-preview-wrap { max-width: 1100px; margin: 2.5rem auto 0; padding: 0 1.5rem; }

/* Hero-integrated trusted-by carousel */
.hero-trusted { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); overflow: hidden; }
@media (min-width: 768px) { .hero-trusted { margin-top: 4rem; } }
.hero-trusted-label { color: rgba(255,255,255,.65); font-size: .8rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; text-align: center; margin-bottom: 1.25rem; }
.hero-trusted-mask {
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.hero-trusted .trusted-track { display: flex; gap: 3rem; width: max-content; animation: scrollX 30s linear infinite; }
.hero-trusted .trusted-item { color: rgba(255,255,255,.85); opacity: 1; }
.hero-trusted .trusted-item svg { color: #fff; }

/* ============================================================
   7. DASHBOARD PREVIEW
   ============================================================ */
.dash {
  background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl);
  padding: 1rem; display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 768px) { .dash { padding: 1.5rem; grid-template-columns: repeat(12, 1fr); } }
.dash-card { background: rgba(320, 20%, 96%, .5); background: hsla(320, 20%, 96%, .8); border-radius: var(--radius); padding: 1rem; }
.dash-card h4 { font-family: 'DM Sans', sans-serif; font-size: .875rem; font-weight: 600; color: var(--foreground); }
.dash-card .meta { font-size: .75rem; color: var(--muted-foreground); margin-bottom: .5rem; }
.col-4 { grid-column: span 1; }
@media (min-width: 768px) { .col-4 { grid-column: span 4; } }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 7rem; padding-top: .5rem; --bar-area: 6rem; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.bar-chart .bar {
  width: 100%;
  /* --h is a unitless 0–100 value set inline; bar height = (--h / 100) × --bar-area */
  height: calc(var(--h, 0) / 100 * var(--bar-area));
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  transition: height 1.2s ease;
}
.bar-chart .bar-label { font-size: 10px; color: var(--muted-foreground); }
.donut { position: relative; width: 5rem; height: 5rem; margin: .5rem 0; }
@media (min-width: 768px) { .donut { width: 6rem; height: 6rem; } }
.donut svg { width: 100%; height: 100%; }
.donut-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 700; color: var(--foreground); }
.kpi-list { display: flex; flex-direction: column; gap: .75rem; }
.kpi {
  background: hsla(320, 20%, 96%, .8); border-radius: var(--radius); padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.kpi-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: hsl(320, 40%, 95%); color: var(--accent); flex-shrink: 0; }
.kpi-icon.amber { color: #f59e0b; }
.kpi-icon.purple { color: hsl(280, 50%, 35%); }
.kpi p { font-size: .75rem; color: var(--muted-foreground); margin: 0; }
.kpi strong { font-size: 1.125rem; color: var(--foreground); font-weight: 700; line-height: 1; }
.dash-table { width: 100%; margin-top: .5rem; font-size: .75rem; border-collapse: collapse; }
.dash-table th { text-align: left; color: var(--muted-foreground); font-weight: 500; padding-bottom: 4px; }
.dash-table td { padding: 6px 0; color: var(--foreground); border-top: 1px solid hsla(280, 15%, 90%, .5); }
.dash-table .ok { color: #16a34a; font-weight: 500; }
.dash-table .pending { color: #d97706; font-weight: 500; }
.dash-table .scheduled { color: var(--muted-foreground); font-weight: 500; }
.line-chart { width: 100%; height: 7rem; margin-top: .5rem; }
.hidden-mobile { display: none; }
@media (min-width: 640px) { .hidden-mobile { display: block; } }

/* ============================================================
   8. TRUSTED BY (zonas)
   ============================================================ */
.trusted { padding: 3rem 0; overflow: hidden; }
@media (min-width: 768px) { .trusted { padding: 4rem 0; } }
.trusted .tagline { color: var(--muted-foreground); font-size: .875rem; font-weight: 500; margin-bottom: 2rem; }
.trusted-track { display: flex; gap: 3rem; width: max-content; animation: scrollX 30s linear infinite; }
.trusted-item {
  display: flex; align-items: center; gap: .375rem; opacity: .6; flex-shrink: 0;
  color: var(--foreground); font-weight: 600; font-size: .875rem; letter-spacing: -.025em; white-space: nowrap;
}
.trusted-item svg { color: var(--accent); }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   9. SECTION HEADINGS
   ============================================================ */
.section-head { text-align: center; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 3.5rem; } }
.section-head h2 { font-size: 1.5rem; line-height: 1.15; }
@media (min-width: 768px) { .section-head h2 { font-size: 3rem; } }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); max-width: 42rem; margin-left: auto; margin-right: auto; font-size: .9rem; }
@media (min-width: 768px) { .section-head p { font-size: 1rem; } }
.section-eyebrow {
  display: inline-block; border: 1px solid var(--border); color: var(--muted-foreground);
  font-size: .75rem; font-weight: 600; padding: .375rem 1rem; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.5rem;
}

/* ============================================================
   10. PAIN POINTS
   ============================================================ */
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .pain-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.pain-col h3 { font-size: 1.125rem; margin-bottom: 1.5rem; font-style: italic; }
@media (min-width: 768px) { .pain-col h3 { font-size: 1.25rem; } }
.pain-col.gain {
  background: var(--card); border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
@media (min-width: 768px) { .pain-col.gain { padding: 2rem; } }
/* Align left column title with the right card title on desktop */
@media (min-width: 768px) { .pain-col:not(.gain) { padding-top: 2rem; } }
.pain-list { display: flex; flex-direction: column; gap: 1rem; }
.pain-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.pain-list svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   11. FEATURES BLOCK
   ============================================================ */
.feature-row { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin-bottom: 4rem; }
@media (min-width: 768px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 6rem; } }
.feature-row:last-child { margin-bottom: 0; }
.feature-img-wrap { position: relative; }
.feature-img-wrap img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; height: 14rem; object-fit: cover; transition: transform .3s; }
@media (min-width: 768px) { .feature-img-wrap img { height: 20rem; } }
.feature-img-wrap img:hover { transform: scale(1.02); }
.feature-badge {
  position: absolute; background: var(--card); border-radius: var(--radius); padding: .75rem;
  box-shadow: var(--shadow-md);
}
.feature-badge.tl { top: 1rem; left: 1rem; }
.feature-badge.bl { bottom: 1rem; left: 1rem; }
.feature-badge.br { bottom: 1rem; right: 1rem; }
.feature-badge .label { font-size: .75rem; color: var(--muted-foreground); }
.feature-badge .value { font-size: 1.25rem; font-weight: 700; color: var(--foreground); }
@media (min-width: 768px) { .feature-badge .value { font-size: 1.5rem; } }
.feature-content h3 { font-size: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .feature-content h3 { font-size: 1.875rem; } }
.feature-content p { color: var(--muted-foreground); margin-bottom: 1.5rem; font-size: .9rem; }
@media (min-width: 768px) { .feature-content p { font-size: 1rem; } }
.feature-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-list li { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--foreground); font-weight: 500; }
.feature-list svg { color: var(--accent); flex-shrink: 0; }
.feature-list li.feature-highlight span { color: var(--accent); font-weight: 700; text-shadow: 0 0 6px hsla(340, 80%, 55%, .55), 0 0 14px hsla(340, 80%, 55%, .35); }
.feature-list li.feature-highlight svg { filter: drop-shadow(0 0 4px hsla(340, 80%, 55%, .65)); }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; font-size: .875rem; }
@media (min-width: 640px) { .process-grid { grid-template-columns: 1fr 1fr; } }
.process-grid > div { display: flex; align-items: flex-start; gap: .5rem; color: var(--muted-foreground); }
.process-grid svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.feature-row.reverse .feature-img-wrap { order: -1; }
@media (min-width: 768px) { .feature-row.reverse .feature-img-wrap { order: 2; } .feature-row.reverse .feature-content { order: 1; } }

/* On desktop, stretch image to match text column height */
@media (min-width: 768px) {
  .feature-row { align-items: stretch; }
  .feature-img-wrap { height: 100%; }
  .feature-img-wrap img { height: 100%; min-height: 20rem; }
}

/* Delayed reveal animation for badge values (e.g. "Mensuales", "24/7") */
.feature-value-anim {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s ease .9s, transform .55s ease .9s;
}
.reveal.is-visible .feature-value-anim { opacity: 1; transform: translateY(0); }

/* ============================================================
   12. BENTO
   ============================================================ */
.bento {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.bento-card {
  background: var(--card); border-radius: var(--radius-xl); padding: 1.5rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  min-width: 0; /* evita el "grid blowout": permite que la columna encoja por debajo del contenido */
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px -10px hsla(340, 80%, 55%, .2); }
.bento-card svg.lead-icon { color: var(--accent); margin-bottom: .75rem; }
.bento-card h3 { font-size: 1.125rem; margin-bottom: .25rem; }
.bento-card p { font-size: .875rem; color: var(--muted-foreground); }
.bento-card.wide { grid-column: span 1; }
@media (min-width: 768px) { .bento-card.wide { grid-column: span 2; } }
.bento-card .head-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.bento-card .head-row svg { color: var(--accent); }
.bento-card .head-row h3 { margin-bottom: 0; }
.bento-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.bento-mini { background: var(--muted); border-radius: var(--radius); padding: .75rem; }
.bento-mini .l { font-size: .75rem; color: var(--muted-foreground); }
.bento-mini .v { font-size: 1.25rem; font-weight: 700; color: var(--foreground); }
.bento-mini .v.accent { color: var(--accent); font-size: 1.5rem; }
.bento-mini .s { font-size: .75rem; color: var(--muted-foreground); }
.bento-grad {
  background: var(--gradient-hero); border-radius: var(--radius-xl); padding: 1.5rem;
  display: flex; align-items: center; justify-content: center; min-height: 120px; color: #fff;
  font-weight: 700; text-align: center; flex-direction: column;
}
.bento-grad span.title { font-size: 1.25rem; }
@media (min-width: 768px) { .bento-grad span.title { font-size: 1.5rem; } }
.bento-grad .small { font-size: .75rem; opacity: .7; margin-top: .25rem; }
.bento-img { border-radius: var(--radius-xl); overflow: hidden; min-height: 160px; }
.bento-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bento-img:hover img { transform: scale(1.02); }

/* === Bento charts (reused from dashboard) === */
.bento-charts {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem;
  background: var(--muted); border-radius: var(--radius); padding: 1rem;
}
@media (min-width: 640px) { .bento-charts { grid-template-columns: 1fr 1fr; } }
.bento-chart { min-width: 0; }
.bento-chart-title { font-size: .8rem; font-weight: 600; color: var(--foreground); margin: 0; }
.bento-chart-meta { font-size: .7rem; color: var(--muted-foreground); margin: 0 0 .5rem; }
.bento-card .bar-chart { height: 5.5rem; padding-top: .25rem; --bar-area: 4.4rem; }
.bento-card .line-chart { height: 5.5rem; }

/* Bento table (Gestión de incidencias) */
.bento-table { width: 100%; margin-top: 1rem; font-size: .75rem; border-collapse: collapse; background: var(--muted); border-radius: var(--radius); overflow: hidden; }
.bento-table td { padding: .45rem .55rem; border-top: 1px solid hsla(280, 15%, 90%, .5); color: var(--foreground); white-space: nowrap; }
.bento-table tr:first-child td { border-top: none; }
.bento-table td.ok { color: #16a34a; font-weight: 600; text-align: right; }
.bento-table td.pending { color: #d97706; font-weight: 600; text-align: right; }
.bento-table td.scheduled { color: var(--muted-foreground); font-weight: 500; text-align: right; }
.bento-table td.negotiating { color: var(--accent); font-weight: 600; text-align: right; }

/* Bento donut row (Control de morosidad) */
.bento-donut-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: .75rem 1rem; background: var(--muted); border-radius: var(--radius); }
.bento-donut { width: 4rem; height: 4rem; flex-shrink: 0; margin: 0; }
.bento-donut-meta p { font-size: .8rem; color: var(--muted-foreground); margin: 0; line-height: 1.4; }
.bento-donut-meta strong { color: var(--foreground); font-weight: 700; }

/* Bento logo card (gradient + white logo, integrated) */
.bento-logo { padding: 1.5rem; }
.bento-logo img { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.18)); }

/* Bento finance card (Total saldo / Morosidad / Ingresos y gastos) */
.bento-finance .finance-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.finance-stat { background: var(--muted); border-radius: var(--radius); padding: .55rem .75rem; }
.finance-stat .finance-l { display: block; font-size: .7rem; color: var(--muted-foreground); }
.finance-stat .finance-v { display: block; font-weight: 700; font-size: 1rem; margin-top: .15rem; line-height: 1.1; }
.finance-positive .finance-v { color: hsl(140, 60%, 32%); }
.finance-negative .finance-v { color: hsl(0, 70%, 48%); }
.bar-chart-2bar { height: 4.5rem; padding-top: .25rem; gap: 1.5rem; justify-content: center; --bar-area: 3.4rem; }
.bar-chart-2bar .bar-col { max-width: 60px; }
.bar-chart .bar.bar-positive { background: hsl(140, 60%, 45%); }
.bar-chart .bar.bar-negative { background: hsl(0, 70%, 55%); }

/* En móvil, el contenido del bento se adapta al ancho de la pantalla
   (sin desbordar por la derecha). En escritorio se mantiene tal cual. */
@media (max-width: 767px) {
  .bento-table { table-layout: fixed; }
  .bento-table td { white-space: normal; word-break: break-word; }
  .bento-mini-grid { gap: .5rem; }
  .bento-mini { padding: .6rem .5rem; }
  .bento-mini .v { font-size: 1.05rem; }
  .bento-mini .v.accent { font-size: 1.2rem; }
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */
.cta-band { padding: 3rem 0; }
@media (min-width: 768px) { .cta-band { padding: 5rem 0; } }
.cta-inner { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.cta-inner h2 { font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
@media (min-width: 768px) { .cta-inner h2 { font-size: 3rem; } }
.cta-inner p { color: rgba(255,255,255,.6); max-width: 36rem; margin: 0 auto 2rem; font-size: .9rem; }
@media (min-width: 768px) { .cta-inner p { font-size: 1rem; margin-bottom: 2.5rem; } }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }
.cta-foot { margin-top: .75rem; color: rgba(255,255,255,.4); font-size: .875rem; }
.cta-eyebrow {
  display: inline-block; background: hsla(340, 80%, 55%, .8); color: #fff;
  font-size: .75rem; font-weight: 600; padding: .375rem 1rem; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.5rem;
}

/* ============================================================
   14. WHY CHOOSE
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; max-width: 56rem; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .why-grid-2 { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  background: var(--card); border-radius: var(--radius-xl); padding: 1.25rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .3s, box-shadow .3s;
}
@media (min-width: 768px) { .why-card { padding: 1.5rem; } }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px -8px hsla(340, 80%, 55%, .15); }
.why-card svg { color: var(--accent); margin: 0 auto 1rem; display: block; }
.why-card p { font-size: .75rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .why-card p { font-size: .875rem; } }

/* ============================================================
   15. COLEGIADOS (sustituye a la antigua sección de testimonios)
   ============================================================ */
.colegio-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .colegio-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; } }
.colegio-content h2 { font-size: 1.5rem; line-height: 1.15; margin: .75rem 0 1rem; }
@media (min-width: 768px) { .colegio-content h2 { font-size: 2.5rem; } }
.colegio-lead { color: var(--muted-foreground); font-size: .95rem; line-height: 1.6; margin-bottom: 2rem; }
@media (min-width: 768px) { .colegio-lead { font-size: 1rem; } }

.colegio-benefits { display: flex; flex-direction: column; gap: 1.25rem; }
.colegio-benefits li { display: flex; align-items: flex-start; gap: 1rem; }
.colegio-benefits svg { color: var(--accent); flex-shrink: 0; margin-top: .25rem; }
.colegio-benefits strong { display: block; color: var(--foreground); font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.colegio-benefits span { display: block; color: var(--muted-foreground); font-size: .875rem; line-height: 1.55; }

.colegio-seal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem 1.75rem;
  text-align: center; box-shadow: var(--shadow-md);
  position: relative;
}
.colegio-seal::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, hsl(340 80% 55% / .25), hsl(280 60% 35% / .25));
  z-index: -1;
}
.colegio-seal-frame {
  display: flex; align-items: center; justify-content: center;
  width: 180px; height: 180px; margin: 0 auto 1.5rem;
  background: #ffffff;
  border-radius: 50%;
  padding: 1.5rem;
}
.colegio-seal-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.colegio-caption { font-size: .9rem; color: var(--foreground); font-weight: 600; line-height: 1.4; max-width: 260px; margin: 0 auto .35rem; }
.colegio-num { font-size: .8rem; color: var(--muted-foreground); margin: 0; }

/* ============================================================
   16. FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 1rem 0; font-weight: 500;
  color: var(--foreground); display: flex; justify-content: space-between; align-items: center;
  min-height: 44px; font-size: 1rem;
}
.faq-q .chev { transition: transform .3s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  color: var(--muted-foreground); font-size: .9rem;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1rem; }
.stats-eyebrow { color: var(--accent); font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; }
.stats-eyebrow-block { display: block; text-align: center; margin: 3rem 0 1.5rem; }
@media (min-width: 640px) { .stats-eyebrow-block { margin: 5rem 0 2rem; } }
.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .stats-row { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--foreground); }
@media (min-width: 640px) { .stat-num { font-size: 1.875rem; } }
@media (min-width: 768px) { .stat-num { font-size: 2.25rem; } }
.stat-label { font-size: .75rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .stat-label { font-size: .875rem; } }

/* ============================================================
   17. CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-info h2 { color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .contact-info h2 { font-size: 2.25rem; } }
.contact-info > p { color: rgba(255,255,255,.7); margin-bottom: 2rem; font-size: .9rem; }
@media (min-width: 768px) { .contact-info > p { font-size: 1rem; } }
.price-box {
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: var(--radius-xl); padding: 1.5rem; margin-bottom: 1.5rem;
}
.price-pill {
  display: inline-flex; background: hsla(340, 80%, 55%, .1); color: var(--accent);
  padding: .25rem .75rem; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; border-radius: 9999px; margin-bottom: .75rem;
}
.price-amt { color: var(--foreground); font-size: 1.875rem; font-weight: 700; letter-spacing: -.025em; }
@media (min-width: 768px) { .price-amt { font-size: 2.25rem; } }
.price-amt-sub { font-size: 1rem; font-weight: 500; color: rgba(0,0,0,.85); margin-top: .25rem; }
.price-min { margin-top: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.contact-meta { display: flex; flex-direction: column; gap: .75rem; color: rgba(255,255,255,.9); font-size: .875rem; }
.contact-meta a, .contact-meta p { display: flex; align-items: flex-start; gap: .75rem; transition: color .2s; }
.contact-meta a:hover { color: #fff; }
.contact-meta svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-form {
  background: var(--card); border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}
@media (min-width: 768px) { .contact-form { padding: 2rem; } }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .75rem; font-weight: 500; color: var(--accent);
  margin-bottom: .25rem; display: block;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid hsl(280, 15%, 88%);
  background: var(--background); border-radius: 8px; font-size: .9rem; font-family: inherit;
  color: var(--foreground); transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px hsla(340, 80%, 55%, .2);
}
.contact-form .btn { margin-top: 1.5rem; width: 100%; }
@media (min-width: 640px) { .contact-form .btn { width: auto; } }
.form-note { margin-top: .75rem; font-size: .75rem; color: var(--muted-foreground); }
.form-msg { margin-top: 1rem; padding: .75rem 1rem; border-radius: 8px; font-size: .875rem; }
.form-msg.ok { background: hsl(140, 60%, 95%); color: hsl(140, 60%, 25%); }
.form-msg.err { background: hsl(0, 60%, 95%); color: hsl(0, 60%, 35%); }

/* ============================================================
   18. FOOTER
   ============================================================ */
.site-foot {
  padding: 0;
  background: linear-gradient(90deg, #CD0C79 0%, #94116E 25%, #50145A 50%, #181C4B 75%, #091D42 100%);
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .site-foot { padding: 0; } }
.foot-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
@media (min-width: 768px) { .foot-inner { flex-direction: row; justify-content: space-between; } }
.foot-brand { color: #fff; font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; line-height: 0; }
.foot-brand img { display: block; height: 72px; width: auto; }
.foot-links { display: flex; gap: 1.5rem; font-size: .875rem; color: hsla(0, 0%, 100%, .8); }
.foot-links a { transition: color .2s; min-height: 44px; display: flex; align-items: center; color: hsla(0, 0%, 100%, .8); }
.foot-links a:hover { color: #fff; }
.foot-copy { font-size: .75rem; color: hsla(0, 0%, 100%, .75); }

/* ============================================================
   18b. BLOG (layout estilo Automakely, colores Núcleo Entrefincas)
   ============================================================ */
/* Hero compacto para blog / entrada / archivo */
.hero.compact { padding: 6.5rem 0 2.5rem; }
@media (min-width: 768px) { .hero.compact { padding: 8.5rem 0 3.5rem; } }
.hero.compact h1 { font-size: 1.6rem; max-width: 60rem; }
@media (min-width: 768px) { .hero.compact h1 { font-size: 2.4rem; } }
.hero.compact .hero-badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; }

/* Breadcrumb (ruta de navegación, permite volver atrás) */
.breadcrumb { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.8); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* Meta de la entrada individual (dentro del hero) */
.post-meta { display: flex; align-items: center; justify-content: center; gap: .6rem; color: rgba(255,255,255,.78); font-size: .9rem; margin-top: 1rem; }
.post-meta .sep { opacity: .5; }

/* Rejilla de fichas (más anchas que altas) */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 42px -20px hsla(280, 40%, 25%, .35); }
.blog-card-media { display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: .85rem; background: var(--gradient-hero); position: relative; overflow: hidden; }
.blog-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-cat { position: relative; z-index: 1; background: rgba(255,255,255,.94); color: var(--accent); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 6px; }
.blog-card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted-foreground); margin: 0; }
.blog-meta .sep { opacity: .6; }
.blog-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; line-height: 1.3; margin: 0; font-weight: 700; }
.blog-title a { color: var(--foreground); text-decoration: none; }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt { font-size: .9rem; color: var(--muted-foreground); line-height: 1.55; flex: 1; }
.see-all { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 700; font-size: .9rem; text-decoration: none; transition: gap .2s ease; align-self: flex-start; }
.see-all:hover { gap: .7rem; }
.blog-card .see-all { margin-top: .25rem; font-size: .85rem; }

/* Paginación */
.blog-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.blog-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 .75rem; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); font-weight: 600; font-size: .9rem; text-decoration: none; }
.blog-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.blog-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* Banner embebido dentro de la entrada */
.post-banner { margin: 0 0 1.75rem; }
.post-banner img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }

/* Etiquetas de la entrada */
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.post-tags a { display: inline-block; padding: .25rem .6rem; border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; color: var(--muted-foreground); text-decoration: none; }
.post-tags a:hover { color: var(--accent); border-color: var(--accent); }

/* Tarjeta CTA (cierre de la entrada, antes de "Sigue leyendo") */
.cta-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); padding: 2.5rem 1.5rem; text-align: center; max-width: 46rem; margin: 3rem auto 0; }
@media (min-width: 768px) { .cta-card { padding: 3rem 2.5rem; } }
.cta-card h2 { font-size: 1.6rem; margin-bottom: .75rem; }
@media (min-width: 768px) { .cta-card h2 { font-size: 2rem; } }
.cta-card p { color: var(--muted-foreground); max-width: 34rem; margin: 0 auto 1.75rem; font-size: 1rem; }
.cta-card .cta-actions { display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: center; }
@media (min-width: 560px) { .cta-card .cta-actions { flex-direction: row; } }

/* Botón outline (sobre fondo claro, p. ej. en la tarjeta CTA) */
.btn-outline { border: 1px solid var(--accent); background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* "Sigue leyendo" (entradas relacionadas en fichas) */
.related { margin-top: 3.5rem; }
.related h2 { font-size: 1.5rem; text-align: center; margin-bottom: 1.75rem; }

/* ============================================================
   19. SCROLL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* Blog/entradas/archivos en móvil-tablet: reveals cortos y sin stagger para que
   el contenido nunca se lea como "vacío". (Solo blog; la home conserva su ritmo.) */
@media (max-width: 900px) {
  body.blog .reveal, body.single .reveal, body.archive .reveal { transform: translateY(16px); transition-duration: .45s; }
  body.blog .reveal.delay-1, body.blog .reveal.delay-2, body.blog .reveal.delay-3,
  body.single .reveal.delay-1, body.single .reveal.delay-2, body.single .reveal.delay-3,
  body.archive .reveal.delay-1, body.archive .reveal.delay-2, body.archive .reveal.delay-3 { transition-delay: 0s; }
}

/* Respect users who prefer reduced motion: no hiding, no movement. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   20. ACCESSIBILITY & PRINT
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-nav, .nav-toggle, .cta-band, .contact-form, .site-foot { display: none !important; }
}

/* ============================================================
   21. WORDPRESS DEFAULT CLASSES (alignments, captions)
   ============================================================ */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .875rem; color: var(--muted-foreground); text-align: center; }
.gallery-caption {}
.bypostauthor {}
.sticky {}
