/* ==========================================================================
   Pintor Badalona — Hoja de estilos global
   Azul profundo + terracota · fondo blanco · PageSpeed-first · sin CDNs
   ========================================================================== */

:root {
  /* Paleta */
  --primary:        #123a5e;   /* azul profundo */
  --primary-600:    #0d2c48;
  --primary-700:    #0a2237;
  --primary-050:    #eef3f8;
  --accent:         #c4562a;   /* terracota / naranja oficio */
  --accent-600:     #a8471f;
  --accent-050:     #fbeee7;
  --wa:             #25d366;   /* verde WhatsApp oficial */

  --bg:             #ffffff;
  --bg-soft:        #f7f4f0;   /* blanco cálido */
  --bg-muted:       #f1ede7;
  --text:           #1c2833;   /* pizarra oscura, no negro puro */
  --text-muted:     #566472;
  --border:         #e6ded3;
  --white:          #ffffff;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;

  --header-h: 76px;
  --radius:   14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(18,58,94,.07), 0 1px 2px rgba(18,58,94,.05);
  --shadow-md: 0 10px 30px rgba(18,58,94,.10);
  --shadow-lg: 0 24px 60px rgba(18,58,94,.16);
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; color: var(--primary); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
strong { color: var(--primary-600); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------- Utilities */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.prose h3 { margin-top: 1.3em; font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-muted { background: var(--bg-muted); }
.section-dark { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-700) 100%); color: #dfe8f0; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-header { max-width: 66ch; margin-bottom: 2.6rem; }
.section-header .eyebrow { margin-bottom: .7rem; }
.section-header h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-header p { color: var(--text-muted); margin-top: .8rem; font-size: 1.08rem; }
.lead { font-size: 1.18rem; color: var(--text-muted); }
.skip-link { position: fixed; top: -60px; left: 12px; background: var(--primary); color: #fff; padding: .7em 1.2em; border-radius: 8px; z-index: 100000; transition: top .2s; }
.skip-link:focus { top: 12px; text-decoration: none; }

/* --------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--font-body); font-weight: 650; font-size: 1rem; line-height: 1; padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s; text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(196,86,42,.28); }
.btn-primary:hover { background: var(--accent-600); color: #fff; box-shadow: 0 12px 26px rgba(196,86,42,.34); }
.btn-call { background: var(--primary); color: #fff; }
.btn-call:hover { background: var(--primary-600); color: #fff; }
.btn-whatsapp { background: var(--wa); color: #04371c; }
.btn-whatsapp:hover { background: #1fbb59; color: #04371c; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #f0f0f0; color: var(--primary); }
/* Variantes ghost sobre fondos oscuros */
.section-dark .btn-ghost, .cta-final .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.section-dark .btn-ghost:hover, .cta-final .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --------------------------------------------------------- Header / Nav */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--primary); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--primary); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(145deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 1.05rem; font-weight: 700; flex: none; box-shadow: var(--shadow-sm); }
.brand span small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.nav-link { display: inline-flex; align-items: center; gap: .35em; padding: .6em .85em; border-radius: 9px; color: var(--primary-600); font-weight: 550; white-space: nowrap; transition: background .18s, color .18s; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--primary-050); color: var(--primary); text-decoration: none; }
.nav-cta { margin-left: .5rem; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link .chev { transition: transform .2s; }
.dropdown-menu { list-style: none; margin: 0; padding: .4rem; }
@media (min-width: 1025px) {
  .dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-dropdown:hover > .nav-link .chev { transform: rotate(180deg); }
}
.dropdown-menu a { display: block; padding: .6em .8em; border-radius: 8px; color: var(--primary-600); font-size: .96rem; }
.dropdown-menu a:hover { background: var(--primary-050); text-decoration: none; }

/* Hamburger */
.hamburger { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 11px; background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; position: relative; transition: transform .25s var(--ease), opacity .2s; }
.hamburger span + span { margin-top: 5px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); right: 0; width: min(360px, 84vw);
    height: calc(100dvh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 1rem 1rem 3rem; transform: translateX(105%); transition: transform .32s var(--ease);
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-link { padding: .9em 1em; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-dropdown .dropdown-menu { max-height: 0; overflow: hidden; padding: 0 .4rem; transition: max-height .3s var(--ease); }
  .nav-dropdown.is-open .dropdown-menu { max-height: 500px; padding: .2rem .4rem .5rem; }
  .nav-dropdown.is-open > .nav-link .chev { transform: rotate(180deg); }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------- Breadcrumb */
.breadcrumb { padding-top: 1.1rem; font-size: .9rem; color: var(--text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; color: var(--border); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--primary); font-weight: 600; }

/* --------------------------------------------------------- Hero */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); background:
  radial-gradient(1100px 500px at 88% -8%, var(--accent-050) 0%, transparent 60%),
  radial-gradient(900px 460px at 0% 0%, var(--primary-050) 0%, transparent 55%),
  var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-content .eyebrow { margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.15rem, 5.6vw, 3.75rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--text-muted); margin-top: 1.1rem; max-width: 40ch; }
.entity-def { margin-top: 1.4rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; font-size: 1rem; color: var(--text); box-shadow: var(--shadow-sm); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-rating { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; font-size: .95rem; color: var(--text-muted); }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.hero-badge { position: absolute; bottom: -18px; left: -18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .7rem; }
.hero-badge strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.hero-badge small { display: block; font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* --------------------------------------------------------- Trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: var(--primary); color: #fff; border-radius: 16px; padding: 1.6rem 1.4rem; margin-top: 2.4rem; box-shadow: var(--shadow-md); }
.trust-item { text-align: center; padding: .2rem; }
.trust-item svg { width: 26px; height: 26px; margin: 0 auto .5rem; stroke: var(--wa); fill: none; }
.trust-num { font-family: var(--font-display); font-size: 1.7rem; color: #fff; line-height: 1; }
.trust-label { font-size: .82rem; color: #b9cad9; margin-top: .3rem; }

/* --------------------------------------------------------- Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; }
.service-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; }
.service-card h3 { font-size: 1.28rem; }
.service-card p { color: var(--text-muted); font-size: .98rem; margin: 0; flex: 1; }
.service-card--star { background: linear-gradient(160deg, var(--primary), var(--primary-700)); border-color: transparent; color: #dbe6f0; }
.service-card--star h3 { color: #fff; }
.service-card--star p { color: #c3d2e0; }
.service-card--star .service-icon { background: rgba(255,255,255,.12); }
.service-card--star .service-icon svg { stroke: var(--wa); }
.star-tag { display: inline-flex; align-items: center; gap: .35em; align-self: flex-start; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; }
.card-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; color: var(--accent); margin-top: auto; }
.service-card--star .card-link { color: #fff; }
.card-link svg { width: 1em; height: 1em; transition: transform .2s; }
.card-link:hover { text-decoration: none; }
.card-link:hover svg { transform: translateX(4px); }
.price-hint { font-size: .86rem; color: var(--text-muted); font-weight: 600; }
.service-card--star .price-hint { color: #a9c6dc; }

/* --------------------------------------------------------- Access cards */
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.access-card { position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.access-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.access-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,34,55,.15) 0%, rgba(10,34,55,.55) 55%, rgba(10,34,55,.9) 100%); }
.access-card:hover img { transform: scale(1.06); }
.access-card__body { padding: 1.6rem; }
.access-card__body h3 { color: #fff; font-size: 1.5rem; }
.access-card__body p { color: #dbe4ec; font-size: .95rem; margin-top: .35rem; }
.access-card .card-link { color: #fff; margin-top: .8rem; }

/* --------------------------------------------------------- Features */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; list-style: none; padding: 0; margin: 0; }
.feature-item { display: flex; gap: 1rem; }
.feature-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-050); display: grid; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.feature-item h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.feature-item p { color: var(--text-muted); font-size: .96rem; margin: 0; }
.section-dark .feature-icon { background: rgba(255,255,255,.1); }
.section-dark .feature-icon svg { stroke: var(--wa); }
.section-dark .feature-item p { color: #b9cad9; }

/* --------------------------------------------------------- About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.about-content h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.about-content p { color: var(--text); margin-top: 1rem; }
.about-content .prose { max-width: none; }
.signature { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.signature .sig-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary); }
.signature .sig-role { font-size: .88rem; color: var(--text-muted); }

/* --------------------------------------------------------- Editorial extras */
.tldr { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 1rem 1.3rem; margin: 1.4rem 0; border-radius: 10px; }
.tldr-label { font-weight: 700; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.tldr ul { margin: 0; padding-left: 1.2rem; }
.tldr li { margin: .2rem 0; }
.callout-box { background: var(--primary-050); border-radius: 12px; padding: 1.3rem 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--primary); }
.honest-box { background: var(--accent-050); border-radius: 12px; padding: 1.3rem 1.5rem; margin: 1.5rem 0; }
.honest-box h3 { color: var(--accent-600); }
.check-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }

/* VS comparison */
.vs-comparison { margin: 1.6rem 0; }
.vs-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .96rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.vs-table th, .vs-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.vs-table thead th { background: var(--primary); color: #fff; font-family: var(--font-body); font-size: .9rem; }
.vs-table tbody th { font-weight: 600; color: var(--primary-600); background: var(--bg-soft); }
.vs-table tr:last-child td, .vs-table tr:last-child th { border-bottom: 0; }

/* --------------------------------------------------------- Testimonials */
.rating-summary { display: inline-flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 2.2rem; }
.rating-summary .big { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.stars { color: #e8a13a; letter-spacing: 2px; font-size: 1rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow-sm); }
.review-card p { color: var(--text); font-size: .98rem; margin: 0; flex: 1; }
.review-author { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.review-name { font-weight: 650; color: var(--primary); font-size: .96rem; }
.review-context { font-size: .82rem; color: var(--text-muted); }

/* --------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: .8rem; max-width: 820px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); flex: none; transition: transform .25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }
.faq-answer > * + * { margin-top: .7rem; }

/* --------------------------------------------------------- CTA final */
.cta-final { background: linear-gradient(155deg, var(--primary) 0%, var(--primary-700) 100%); color: #dfe8f0; border-radius: 22px; padding: clamp(2.4rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(196,86,42,.35), transparent 60%); z-index: 0; }
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.cta-final p { max-width: 52ch; margin: 1rem auto 0; color: #c3d2e0; }
.cta-final .btn-row { justify-content: center; margin-top: 1.8rem; }

/* --------------------------------------------------------- Zones */
.zone-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.chip { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .5em 1em; font-size: .92rem; color: var(--primary-600); font-weight: 550; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------- Last updated */
.last-updated { text-align: center; color: var(--text-muted); font-size: .9rem; padding: 2rem 0; }
.last-updated time { font-weight: 600; color: var(--primary-600); }

/* --------------------------------------------------------- Footer */
.site-footer { background: linear-gradient(180deg, var(--primary-600) 0%, #071a2b 100%); color: #c3cdd7; position: relative; margin-top: 4rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), #e08a56, var(--primary-050), var(--accent)); }
.footer-top { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand span { color: #fff; }
.footer-desc { margin-top: 1rem; font-size: .95rem; color: #96a5b3; max-width: 34ch; }
.footer-heading { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a { color: #b1bfcc; font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; font-size: .95rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: #b1bfcc; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; flex: none; margin-top: .15rem; }
.footer-contact a { color: #b1bfcc; }
.footer-contact a:hover { color: #fff; text-decoration: none; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: #c3cdd7; transition: background .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; font-size: .86rem; color: #8394a2; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-legal a { color: #8394a2; }
.footer-legal a:hover { color: #fff; text-decoration: none; }

/* --------------------------------------------------------- WhatsApp float */
@keyframes tmPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }
.tm-whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999999; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); animation: tmPulse 2s infinite; transition: transform .2s ease; }
.tm-whatsapp-float:hover { transform: scale(1.1); }
.tm-whatsapp-float:focus-visible { outline: 3px solid #25D366; outline-offset: 3px; }
.tm-whatsapp-float svg { width: 34px; height: 34px; fill: #fff; }

/* --------------------------------------------------------- Cookie bar */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100000; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 30px rgba(18,58,94,.12); padding: 1.1rem clamp(1rem, 4vw, 2rem); transform: translateY(110%); transition: transform .4s var(--ease); }
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-inner { max-width: var(--maxw); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; justify-content: space-between; }
.cookie-text { font-size: .9rem; color: var(--text-muted); max-width: 62ch; }
.cookie-text strong { color: var(--primary); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-btn { font-family: var(--font-body); font-weight: 650; font-size: .9rem; padding: .7em 1.3em; border-radius: 999px; border: 2px solid var(--primary); cursor: pointer; transition: background .2s, color .2s; }
.cookie-btn--accept { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-btn--accept:hover { background: var(--accent-600); border-color: var(--accent-600); }
.cookie-btn--reject { background: #fff; color: var(--primary); }
.cookie-btn--reject:hover { background: var(--primary-050); }
.cookie-btn--config { background: transparent; border-color: transparent; color: var(--text-muted); text-decoration: underline; }

/* --------------------------------------------------------- Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .22s var(--ease), box-shadow .22s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card a { color: inherit; text-decoration: none; display: block; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.blog-card__category { display: inline-block; background: var(--accent-050); color: var(--accent-600); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; }
.blog-card__title { font-size: 1.22rem; margin: .7rem 0 .5rem; color: var(--primary); }
.blog-card__excerpt { color: var(--text-muted); font-size: .95rem; }
.blog-card__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: .82rem; color: var(--text-muted); }
.blog-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-size: 1.1rem; }
/* Skeleton */
.skeleton { pointer-events: none; }
.skeleton .sk { background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%); background-size: 400% 100%; animation: skPulse 1.4s ease infinite; border-radius: 6px; }
.skeleton .sk-img { width: 100%; aspect-ratio: 16/9; }
.skeleton .sk-line { height: 14px; margin: .6rem 1.4rem; }
.skeleton .sk-line.short { width: 40%; }
@keyframes skPulse { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* --------------------------------------------------------- Simple hero (interior pages) */
.page-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3rem); background:
  radial-gradient(900px 400px at 90% -10%, var(--accent-050), transparent 60%), var(--bg-soft); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; margin-top: .9rem; max-width: 60ch; }

/* --------------------------------------------------------- Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cv-auto { content-visibility: auto; contain-intrinsic-size: 1px 700px; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .hero-badge { left: 12px; bottom: 12px; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; }
}

/* --------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .tm-whatsapp-float { animation: none; }
}
