/* =============================================================================
   Estudio Jurídico Di Pietro & Asociados — Design system
   Paleta legal: navy profundo + dorado. Mobile-first. Sin frameworks.
   ============================================================================= */
:root {
  /* Paleta tomada de la marca Di Pietro (logo azul + verde lima) */
  --navy-900: #0a1f3d;   /* azul muy oscuro (secciones dark / footer) */
  --navy-800: #0d2747;
  --navy-700: #143a64;
  --navy-600: #0076b0;   /* azul primario (links) */
  --blue: #0076b0;
  --blue-bright: #0088cb; /* azul de botones */
  --green: #7cb342;       /* verde lima del logo (acento) */
  --green-dark: #5c9233;
  --gold-500: #0088cb;   /* (nombre heredado) acento principal = AZUL */
  --gold-600: #0076b0;
  --gold-100: #e6f2fb;   /* (nombre heredado) fondo de acento = CELESTE */
  --ink: #16202b;
  --body: #3f4b59;
  --muted: #6b7686;
  --line: #e1e7ef;
  --bg: #ffffff;
  --bg-alt: #f3f7fc;
  --bg-cream: #eef5fc;   /* (nombre heredado) celeste claro */
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(13, 39, 71, .07), 0 1px 2px rgba(13, 39, 71, .05);
  --shadow: 0 10px 30px -12px rgba(13, 39, 71, .20);
  --shadow-lg: 0 24px 60px -20px rgba(13, 39, 71, .32);
  --maxw: 1160px;
  --ff-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3 { font-family: var(--ff-serif); color: var(--ink); line-height: 1.18; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--ink); }
.ic { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-800); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ----------------------------- Botones ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--ff-sans); font-weight: 600; font-size: .98rem;
  padding: .74em 1.4em; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-lg { padding: .92em 1.7em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-600); color: #fff; box-shadow: var(--shadow); }
.btn-wa { background: var(--wa); color: #06351c; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-600); background: var(--gold-100); }
.btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--ff-sans); font-weight: 600; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: .8rem;
}
.kicker-light { color: var(--gold-500); }
.kicker .ic { width: 1.05em; height: 1.05em; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-logo { height: 48px; width: auto; display: block; }
.footer-logo { height: 46px; background: #fff; padding: 7px 12px; border-radius: 6px; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 9px 13px; border-radius: 8px; color: var(--body);
  font-weight: 500; font-size: .94rem; transition: background .15s, color .15s;
}
.nav-list a:hover { background: var(--bg-alt); color: var(--navy-800); }
.nav-list a[aria-current="page"] { color: var(--navy-800); font-weight: 600; }
.nav-list a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--gold-500); border-radius: 2px; margin-top: 3px; }
.header-cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* ----------------------------- Hero (claro, con retrato) ----------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #e9f2fb 0%, #ffffff 72%);
  border-bottom: 1px solid var(--line); padding: 50px 0 0;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 50px; align-items: center; }
.hero-copy h1 { color: var(--ink); margin-bottom: .3em; font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.1; }
.hero-firm { display: block; color: var(--blue); font-size: .6em; font-weight: 700; margin-top: .18em; }
.hero-lead { font-size: 1.18rem; color: var(--body); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; color: var(--ink); font-size: .98rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .55em; }
.hero-trust .ic { color: var(--green-dark); width: 1.15em; height: 1.15em; }
.hero-photo { position: relative; margin: 0 0 0 auto; max-width: 420px; align-self: end; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; max-height: 540px;
}
.hero-photo figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: linear-gradient(0deg, rgba(13, 39, 71, .94), rgba(13, 39, 71, .45));
  color: #fff; padding: 13px 16px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
}
.hero-photo figcaption strong { font-family: var(--ff-serif); font-size: 1.05rem; }
.hero-photo figcaption span { font-size: .8rem; color: #cfe0f0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 30px; padding-bottom: 28px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .5em; padding: 9px 15px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, box-shadow .15s;
}
.hero-chip:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow); }
.hero-chip .ic { color: var(--blue); width: 1.05em; height: 1.05em; }

/* ----------------------------- Page hero (internas) ----------------------------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(124, 179, 66, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff; padding: 54px 0 48px;
}
.page-hero h1 { color: #fff; }
.page-hero-lead { font-size: 1.18rem; color: #d7deea; max-width: 58ch; }
.page-hero .hero-actions { margin-bottom: 4px; }
.page-hero-urgent { background: linear-gradient(160deg, #3a1518, var(--navy-900)); }
.urgent-flag { display: inline-flex; align-items: center; gap: .5em; margin-top: 14px; color: #ffd9b0; font-weight: 600; }

/* ----------------------------- Secciones ----------------------------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 64ch; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ----------------------------- Áreas grid ----------------------------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .22s, border-color .18s;
}
.area-card { border-top: 3px solid var(--accent, var(--blue)); }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent, var(--blue)); }
.area-card.is-current { border-color: var(--accent, var(--blue)); background: #f7fafe; }
.area-ic {
  display: inline-flex; width: 52px; height: 52px; border-radius: var(--radius-sm); align-items: center; justify-content: center;
  background: var(--accent, var(--blue)); color: #fff; margin-bottom: 16px;
}
.area-ic .ic { width: 26px; height: 26px; }
.area-card h3 { margin-bottom: .4em; }
.area-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.area-more { display: inline-flex; align-items: center; gap: .4em; margin-top: 14px; color: var(--accent, var(--blue)); font-weight: 600; font-size: .92rem; }
.area-card:hover .area-more .ic { transform: translateX(3px); }
.area-more .ic { width: 1.05em; height: 1.05em; transition: transform .18s; }

/* ----------------------------- Features ----------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: var(--gold-100); color: var(--gold-600); margin-bottom: 14px; }
.feature-ic .ic { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ----------------------------- Steps ----------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; background: var(--bg-cream); border: 1px solid var(--gold-100); border-radius: var(--radius); padding: 30px 26px; }
.step-n { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--navy-800); color: var(--gold-500); font-family: var(--ff-serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ----------------------------- Reviews ----------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin: 0; }
.stars { display: flex; gap: 2px; color: var(--gold-500); margin-bottom: 12px; }
.stars .ic { width: 18px; height: 18px; fill: var(--gold-500); stroke: var(--gold-500); }
.review-card blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--ink); line-height: 1.6; }
.review-card figcaption { display: flex; flex-direction: column; }
.review-card figcaption strong { color: var(--navy-800); }
.review-card figcaption span { color: var(--muted); font-size: .88rem; }

/* ----------------------------- CTA band ----------------------------- */
.cta-band { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: #cdd6e4; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------- Mapa + NAP ----------------------------- */
.map-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: stretch; }
.map-info .kicker { margin-top: 0; }
.nap { font-style: normal; line-height: 1.8; font-size: .98rem; color: var(--body); margin: 6px 0 18px; }
.nap strong { color: var(--ink); }
.hours-list { display: grid; gap: 8px; margin: 6px 0 20px; }
.hour-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hour-label { font-weight: 600; color: var(--ink); }
.hour-val { color: var(--muted); text-align: right; }
.map-frame { border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; }

/* ----------------------------- Contenido interno ----------------------------- */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 11px 0; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--line); }
.breadcrumbs a { color: var(--navy-600); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.content-main h2 { margin-top: 1.6em; }
.content-main h2:first-of-type { margin-top: .6em; }
.services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 8px; }
.service-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); }
.service-check { color: var(--wa-dark); margin-top: 3px; }
.service-item strong { display: block; color: var(--ink); margin-bottom: 2px; }
.service-item span { color: var(--muted); font-size: .92rem; }

/* FAQ accordion */
.faqs { display: grid; gap: 10px; margin-top: 8px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); font-family: var(--ff-serif); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-600); font-weight: 400; transition: transform .2s; line-height: 1; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; color: var(--body); }

/* Aside */
.content-aside { position: sticky; top: 90px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.aside-card h3 { font-size: 1.2rem; }
.aside-card > p { color: var(--muted); font-size: .94rem; }
.aside-card .btn { margin-top: 8px; }
.aside-card hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.aside-nap { font-size: .92rem; color: var(--body); }
.aside-map { display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; font-weight: 600; }

/* related pills */
.rel-pills, .rel-pill { }
.rel-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.rel-pill { display: inline-flex; align-items: center; gap: .5em; padding: 11px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s; }
.rel-pill:hover { border-color: var(--gold-500); color: var(--gold-600); }
.rel-pill .ic { color: var(--gold-600); }

/* ----------------------------- About ----------------------------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.about-photo { position: sticky; top: 90px; }
.about-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.about-monogram {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--gold-500);
  background: radial-gradient(120% 120% at 30% 20%, var(--navy-700), var(--navy-900)); box-shadow: var(--shadow-lg);
}
.about-monogram .ic { width: 64px; height: 64px; }
.about-monogram span { font-family: var(--ff-serif); font-size: 3rem; font-weight: 700; color: #fff; letter-spacing: .08em; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.about-badges span { display: inline-flex; align-items: center; gap: .4em; padding: 8px 13px; background: var(--gold-100); color: var(--gold-600); border-radius: 999px; font-size: .85rem; font-weight: 600; }
.about-badges .ic { width: 1.05em; height: 1.05em; }
.pull-quote { border-left: 4px solid var(--gold-500); background: var(--bg-cream); padding: 18px 22px; margin: 24px 0 0; font-family: var(--ff-serif); font-size: 1.15rem; color: var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.zones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.zone { display: inline-flex; align-items: center; gap: .45em; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); }
.zone .ic { color: var(--gold-600); }

/* ----------------------------- Contacto ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--ff-sans); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(200, 162, 74, .18); }
.field textarea { resize: vertical; }
.form-alt { text-align: center; font-size: .92rem; color: var(--muted); margin: 14px 0 0; }
.contact-info .aside-card { margin-bottom: 18px; }

/* ----------------------------- Páginas angostas (404/gracias) ----------------------------- */
.narrow-page { max-width: 640px; margin: 0 auto; padding-top: 80px; padding-bottom: 80px; }
.narrow-page .container { max-width: 640px; }
.center-actions { justify-content: center; }
.big-check { display: inline-flex; width: 84px; height: 84px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gold-100); color: var(--wa-dark); margin-bottom: 18px; }
.big-check .ic { width: 42px; height: 42px; }
.error-code { font-family: var(--ff-serif); font-size: 5rem; font-weight: 700; color: var(--gold-500); line-height: 1; }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.error-links a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--navy-900); color: #c7d0de; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding: 56px 0 40px; }
.brand-light { color: #fff; }
.brand-light .brand-text strong { color: #fff; }
.footer-tag { color: #9aa7bb; font-size: .95rem; max-width: 38ch; margin: 16px 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #c7d0de; transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #b3bdcd; font-size: .95rem; }
.footer-links a:hover { color: var(--gold-500); }
.footer-col .nap { color: #b3bdcd; }
.footer-col .nap strong { color: #fff; }
.footer-col .nap a { color: var(--gold-500); }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; flex-wrap: wrap; font-size: .85rem; color: #8b97aa; }
.footer-rating { display: inline-flex; align-items: center; gap: .4em; color: var(--gold-500); }
.footer-rating .ic { fill: var(--gold-500); width: 1.05em; height: 1.05em; }

/* ----------------------------- WhatsApp FAB ----------------------------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px;
  background: var(--wa); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
}
.wa-fab:hover { background: var(--wa-dark); color: #fff; transform: scale(1.06); transition: transform .15s, background .15s; }
.wa-fab .ic { width: 32px; height: 32px; fill: #fff; stroke: none; position: relative; z-index: 2; }
.wa-fab-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); opacity: .55; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

/* ----------------------------- Artículos / Blog ----------------------------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.art-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .22s, border-color .18s; }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-500); }
.art-cat { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-100); padding: 5px 11px; border-radius: 999px; margin-bottom: 13px; }
.art-card h3 { font-size: 1.18rem; margin-bottom: .4em; }
.art-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.art-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 14px; color: var(--muted); font-size: .85rem; }
.art-more { display: inline-flex; align-items: center; gap: .35em; color: var(--gold-600); font-weight: 600; }
.art-more .ic { width: 1em; height: 1em; transition: transform .18s; }
.art-card:hover .art-more .ic { transform: translateX(3px); }

.article-page { padding-top: 48px; }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-head { margin-bottom: 26px; }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 12px; }
.article-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body h2 { font-size: 1.5rem; margin: 1.7em 0 .5em; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body .lead { font-size: 1.18rem; color: var(--ink); border-left: 4px solid var(--gold-500); padding-left: 18px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: var(--bg-cream); border: 1px solid var(--gold-100); border-radius: var(--radius); padding: 26px; margin: 34px 0 20px; }
.article-cta h2 { font-size: 1.3rem; margin: 0 0 .3em; }
.article-cta p { margin: 0; color: var(--muted); }
.article-back a { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.article-back .ic { transform: rotate(180deg); width: 1em; height: 1em; }

/* ----------------------------- Responsive ----------------------------- */
/* Nav: colapsa a hamburguesa antes (9 items no entran en tablet) */
@media (max-width: 1040px) {
  .header-cta .ic + span { display: none; }
  .header-cta { padding: .6em; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; margin-left: auto; order: 3;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { margin-left: 0; }
  .nav-list {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .28s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { padding: 13px 8px; border-radius: 8px; font-size: 1rem; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .header-inner { gap: 10px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { order: 2; }
  .map-grid, .about-grid, .contact-grid, .content-grid { grid-template-columns: 1fr; }
  .content-aside, .about-photo { position: static; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid, .reviews-grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-cta .ic + span { display: none; }
  .header-cta { padding: .6em; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; margin-left: auto; order: 3;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { margin-left: 0; }
  .nav-list {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .28s ease; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { padding: 13px 8px; border-radius: 8px; font-size: 1rem; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .header-inner { gap: 10px; }
  .features-grid, .areas-grid, .reviews-grid, .steps, .services-list { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 50px 0; }
  .hero { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
