/* =========================================================================
   CASADO CONDE ABOGADOS — theme.css
   Reconstrucción del diseño "Jurino" v4 (Claude Design) con tokens y
   media queries reales. Mobile-first breakpoint del header/hero: 1024px.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Azules de marca */
  --navy: #16395c;
  --blue: #1e4e7b;
  --navy-footer: #0f2a44;

  /* Lienzo y superficies */
  --canvas: #cdd8e6;
  --white: #ffffff;
  --alt: #f4f7fb;
  --alt-2: #fbfcfd;
  --panel-blue: #eef3f9;

  /* Dorados */
  --gold: #B0894A;
  --gold-hover: #9a763c;
  --gold-light: #E6CFA0;
  --gold-text: #9a763c;

  /* Texto */
  --ink: #28333b;
  --ink-2: #52606d;
  --ink-3: #7a8794;
  --ink-4: #8a98a6;

  /* Texto sobre oscuro */
  --on-dark: #e7eef5;
  --on-dark-2: #cdddec;
  --on-dark-3: #9fbbd2;

  /* Bordes */
  --border: #e7ecf2;
  --border-2: #e0e6ee;
  --input-border: #dde3ea;

  /* Verde WhatsApp / éxito */
  --wa: #25D366;

  /* Gradientes */
  --grad-hero: linear-gradient(120deg, #37557f 0%, #5a7aa6 48%, #7e9abd 100%);
  --grad-navy: linear-gradient(120deg, #1e4e7b, #16395c);
  --grad-cta: linear-gradient(125deg, #1e4e7b, #16395c);
  --grad-card: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);

  /* Sombras */
  --shadow-hero: 0 24px 60px rgba(22, 57, 92, .28);
  --shadow-card: 0 24px 60px rgba(22, 57, 92, .22);
  --shadow-block: 0 20px 50px rgba(22, 57, 92, .28);
  --shadow-gold: 0 8px 22px rgba(176, 137, 74, .32);
  --shadow-drop: 0 18px 44px rgba(22, 57, 92, .28);
  --shadow-soft: 0 16px 40px rgba(22, 57, 92, .14);

  /* Tipografía */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Métricas */
  --maxw: 1240px;
  --section-pad: clamp(56px, 8vw, 100px);
  --gutter: clamp(8px, 2vw, 24px);
  --panel-inset: clamp(0px, 1.5vw, 18px);
  --radius-panel: clamp(0px, 2vw, 28px);
  --header-h: 84px;
  --header-h-scrolled: 66px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, h4, h5 { font-weight: 600; }
::selection { background: var(--gold-light); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.cc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  text-decoration: none; font-weight: 600;
}
.cc-skip:focus { left: 0; }

[hidden] { display: none !important; }

/* ---------- Contenedores y secciones ---------- */
.cc-site { padding: var(--panel-inset); }

.cc-container { max-width: 1200px; margin: 0 auto; }
.cc-container--wide { max-width: var(--maxw); }
.cc-container--narrow { max-width: 820px; }
.cc-container--cta { max-width: 1080px; }
.cc-container--calc { max-width: 1100px; }
.cc-container--split { max-width: 1140px; }

.cc-section--canvas { background: var(--canvas); padding: var(--section-pad) var(--gutter); }
.cc-section--panel {
  background: var(--white); border-radius: var(--radius-panel);
  margin: 0 var(--panel-inset); padding: var(--section-pad) clamp(20px, 4vw, 64px);
}
.cc-section--flush-top { padding-top: 0; }

.cc-section__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.cc-section__head--wide { max-width: 640px; }

/* ---------- Tipografía de componentes ---------- */
.cc-eyebrow {
  color: var(--gold-text); font-weight: 600; font-size: 12.5px;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.cc-h1 {
  font-family: var(--font-sans); font-weight: 600; color: var(--navy);
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.5px; margin: 0;
}
.cc-h2 {
  font-family: var(--font-sans); font-weight: 600; color: var(--navy);
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.14; letter-spacing: -.5px; margin: 0;
}
.cc-h2--sm { font-size: clamp(27px, 3.5vw, 40px); line-height: 1.16; }
.cc-em { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--blue); }
.cc-em--light { color: var(--gold-light); }
.cc-lead { color: var(--ink-2); font-size: clamp(16px, 1.8vw, 18px); margin: 0 0 30px; }

/* ---------- Botones y enlaces ---------- */
.cc-btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  border-radius: 30px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit; line-height: 1.2;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.cc-btn--gold { background: var(--gold); color: #fff; padding: 15px 26px; font-size: 15.5px; box-shadow: var(--shadow-gold); }
.cc-btn--gold:hover { background: var(--gold-hover); }
.cc-btn--gold-lg { padding: 16px 28px; font-size: 16px; box-shadow: 0 8px 24px rgba(176,137,74,.4); }
.cc-btn--white { background: #fff; color: var(--blue); padding: 11px 22px; font-size: 14.5px; box-shadow: 0 6px 18px rgba(22,57,92,.18); }
.cc-btn--white:hover { background: var(--gold-light); }
.cc-btn--soft { background: #f1f5fa; color: var(--blue); padding: 11px 20px; font-size: 14.5px; }
.cc-btn--soft:hover { background: #e3ebf4; }

.cc-phone-link { color: var(--blue); font-weight: 600; font-size: 15.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.cc-phone-link:hover { color: var(--gold); }
.cc-phone-link__ico { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #c9d4e2; display: flex; align-items: center; justify-content: center; }

.cc-arrow-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.cc-arrow-link--light { color: var(--gold-light); }

/* ---------- Utilidades desktop/móvil ---------- */
.cc-only-desktop { display: flex; }
.cc-only-mobile { display: none; }

/* =========================================================================
   CABECERA (fija; transparente sobre el hero → navy al hacer scroll)
   ========================================================================= */
.cc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.cc-header__bar {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: height .3s ease, padding-top .3s ease;
}
/* Aire en la parte superior cuando la cabecera flota sobre el hero */
.cc-header:not(.is-scrolled) .cc-header__bar { padding-top: clamp(14px, 2.2vw, 26px); }
.cc-header.is-scrolled { background: var(--navy); box-shadow: 0 6px 24px rgba(10, 30, 52, .28); }
.cc-header.is-scrolled .cc-header__bar { height: var(--header-h-scrolled); padding-top: 0; }
/* En páginas internas (no portada) la cabecera es sólida desde el inicio */
body:not(.home) .cc-header { background: var(--navy); box-shadow: 0 6px 24px rgba(10, 30, 52, .28); }
body:not(.home) .cc-main { padding-top: var(--header-h); }

.cc-logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.cc-logo img { height: 38px; width: auto; }

.cc-nav { display: flex; align-items: center; gap: 30px; }
.cc-nav a { color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.cc-nav a:hover { color: #fff; }
.cc-nav a.is-active { color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cc-nav__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); display: inline-block; }

.cc-dropdown { position: relative; }
.cc-dropdown__toggle {
  background: none; border: none; cursor: pointer; color: var(--on-dark);
  font-size: 15px; font-weight: 500; font-family: inherit; display: flex; align-items: center; gap: 6px; padding: 0;
}
.cc-dropdown__menu {
  position: absolute; top: calc(100% + 4px); left: -16px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-drop); padding: 9px; min-width: 272px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.cc-dropdown:hover .cc-dropdown__menu,
.cc-dropdown.is-open .cc-dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.cc-dropdown__menu a { display: block; padding: 11px 15px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.cc-dropdown__menu a.is-featured { color: var(--blue); font-weight: 600; }
.cc-dropdown__menu a:hover { background: #f1f5fa; }

.cc-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.cc-lang { display: flex; align-items: center; gap: 2px; }
.cc-lang button {
  background: transparent; color: #fff; border: none; cursor: pointer; font-family: inherit;
  font-weight: 600; font-size: 12.5px; padding: 5px 9px; border-radius: 6px; letter-spacing: .3px;
}
.cc-lang button.is-active { background: #fff; color: var(--blue); }

.cc-burger {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}

/* Menú móvil desplegable */
.cc-mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: rgba(22, 57, 92, .95); backdrop-filter: blur(8px);
  padding: 8px clamp(16px, 4vw, 28px) 20px;
}
.cc-mobile-menu a {
  display: block; padding: 14px 4px; color: var(--on-dark); text-decoration: none;
  font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.cc-mobile-menu a:last-child { border-bottom: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.cc-hero {
  position: relative; border-radius: var(--radius-panel); overflow: hidden;
  background: var(--grad-hero); box-shadow: var(--shadow-hero);
}
.cc-hero__photo {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(22, 57, 92, .3);
  background: linear-gradient(200deg, #6a89b4, #3d5c87);
}
.cc-hero__photo-inner { text-align: center; color: rgba(255, 255, 255, .55); padding-bottom: 40px; }
.cc-hero__photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-ph-label { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 12px; }

.cc-hero__body {
  position: relative; z-index: 4; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(102px, 12vw, 128px) clamp(20px, 3vw, 40px) clamp(36px, 5vw, 64px);
  display: flex; align-items: stretch; gap: clamp(24px, 4vw, 56px);
}
.cc-hero__card {
  flex: 0 1 560px;
  background: var(--grad-card); border-radius: 24px; padding: clamp(30px, 4vw, 52px);
  max-width: 560px; box-shadow: var(--shadow-card);
}
.cc-hero__card .cc-h1 { margin-bottom: 20px; }
.cc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 32px; }

.cc-chip {
  display: inline-flex; align-items: center; gap: 8px; background: #f1f0e6; color: var(--gold-text);
  padding: 6px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; margin-bottom: 22px;
}

.cc-stats { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.5vw, 28px); padding-top: 24px; border-top: 1px solid var(--border); }
.cc-stat__num { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--blue); line-height: 1; }
.cc-stat__label { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.cc-stats__sep { width: 1px; height: 30px; background: var(--border-2); }

/* Marquee */
.cc-marquee { position: relative; z-index: 4; background: var(--navy); overflow: hidden; }
.cc-marquee__track { display: flex; width: max-content; animation: ccMarquee 56s linear infinite; }
.cc-marquee__group { display: flex; align-items: center; flex: none; }
.cc-marquee__item { color: #fff; font-family: var(--font-serif); font-size: 18px; padding: 18px 30px; white-space: nowrap; }
.cc-marquee svg { flex: none; }
@keyframes ccMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================================
   ÁREAS DE PRÁCTICA
   ========================================================================= */
.cc-areas__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.cc-area { background: #fff; border-radius: 22px; padding: 34px 30px; position: relative; overflow: hidden; transition: box-shadow .25s ease; }
.cc-area:hover { box-shadow: var(--shadow-soft); }
.cc-area--featured { background: var(--blue); box-shadow: 0 16px 40px rgba(22, 57, 92, .2); }
.cc-area--featured:hover { box-shadow: 0 16px 40px rgba(22, 57, 92, .28); }
.cc-area__badge { position: absolute; top: 22px; right: 22px; background: var(--gold); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; padding: 6px 12px; border-radius: 30px; }
.cc-area__icon { width: 58px; height: 58px; border-radius: 16px; background: var(--panel-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.cc-area--featured .cc-area__icon { background: rgba(230, 207, 160, .18); border: 1px solid rgba(230, 207, 160, .4); }
.cc-area h3 { font-family: var(--font-serif); font-weight: 600; color: var(--navy); font-size: 22px; margin: 0 0 12px; }
.cc-area--featured h3 { color: #fff; }
.cc-area p { color: var(--ink-2); font-size: 15px; margin: 0 0 22px; }
.cc-area--featured p { color: var(--on-dark-2); }

/* =========================================================================
   DESPACHO / features (2 columnas)
   ========================================================================= */
.cc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(36px, 5vw, 68px); align-items: center; }
.cc-media-wrap { position: relative; }
.cc-media { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #5a7aa6, #1e4e7b); min-height: 420px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .5); text-align: center; }
.cc-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-media__badge { position: absolute; bottom: -22px; right: -10px; background: #fff; border-radius: 18px; padding: 18px 24px; box-shadow: 0 16px 40px rgba(22, 57, 92, .18); display: flex; align-items: center; gap: 14px; }
.cc-media__badge-num { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--gold); line-height: 1; }
.cc-media__badge-txt { font-size: 13px; color: var(--ink-2); max-width: 120px; }

.cc-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.cc-feature { display: flex; gap: 13px; }
.cc-feature__ico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--panel-blue); display: flex; align-items: center; justify-content: center; }
.cc-feature h4 { font-family: var(--font-serif); font-size: 16px; color: var(--navy); margin: 0 0 3px; }
.cc-feature p { color: var(--ink-3); font-size: 13.5px; margin: 0; }

/* =========================================================================
   PROCESO (4 pasos)
   ========================================================================= */
.cc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.cc-step { background: #fff; border-radius: 22px; padding: 30px 26px; }
.cc-step--dark { background: var(--navy); }
.cc-step__num { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.cc-step--dark .cc-step__num { background: var(--gold); }
.cc-step h4 { font-family: var(--font-serif); color: var(--navy); font-size: 19px; margin: 0 0 8px; }
.cc-step--dark h4 { color: #fff; }
.cc-step p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.cc-step--dark p { color: #bcd0e2; }

/* =========================================================================
   CALCULADORA (promo)
   ========================================================================= */
.cc-calc__block {
  background: var(--grad-navy); border-radius: 26px; padding: clamp(30px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 48px);
  align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-block);
}
.cc-calc__blob { position: absolute; top: -60px; right: -40px; width: 230px; height: 230px; border-radius: 50%; background: rgba(230, 207, 160, .1); }
.cc-calc__content { position: relative; }
.cc-calc__tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(230, 207, 160, .18); border: 1px solid rgba(230, 207, 160, .4); color: var(--gold-light); padding: 6px 13px; border-radius: 30px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; margin-bottom: 18px; }
.cc-calc__block .cc-h2 { color: #fff; font-size: clamp(25px, 3.4vw, 36px); line-height: 1.16; margin: 0 0 16px; letter-spacing: -.4px; }
.cc-calc__text { color: var(--on-dark-2); font-size: 16px; line-height: 1.6; margin: 0 0 28px; max-width: 440px; }
.cc-calc__note { color: var(--on-dark-3); font-size: 13px; margin-top: 14px; }
.cc-calc__panel { position: relative; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: clamp(24px, 3vw, 32px); }
.cc-calc__panel-title { color: var(--on-dark-3); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.cc-checklist { display: flex; flex-direction: column; gap: 15px; }
.cc-check-row { display: flex; align-items: center; gap: 12px; }
.cc-check-row__ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(230, 207, 160, .18); display: flex; align-items: center; justify-content: center; }
.cc-check-row span:last-child { color: #eaf1f8; font-size: 15px; }

/* =========================================================================
   RESULTADOS + TESTIMONIOS
   ========================================================================= */
.cc-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 48px; }
.cc-case { background: var(--alt); border-radius: 20px; padding: 28px 26px; border: 1px solid var(--border); }
.cc-case__tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--gold-text); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.cc-case__offer { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cc-case__offer .lbl { color: var(--ink-4); font-size: 13px; }
.cc-case__offer .val { color: var(--ink-4); font-size: 15px; text-decoration: line-through; }
.cc-case__got { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 13px; border-top: 1px solid #e2e8ef; }
.cc-case__got .lbl { color: var(--navy); font-size: 13px; font-weight: 600; }
.cc-case__amount { font-family: var(--font-serif); font-size: 29px; font-weight: 700; color: var(--blue); line-height: 1; }
.cc-case__mult { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; background: var(--panel-blue); color: var(--blue); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 30px; }

.cc-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.cc-testimonial { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px; }
.cc-testimonial__stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.cc-testimonial__quote { color: #33414f; font-size: 15.5px; font-style: italic; font-family: var(--font-serif); margin: 0 0 22px; line-height: 1.6; }
.cc-testimonial__author { display: flex; align-items: center; gap: 13px; }
.cc-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 600; font-size: 17px; flex: none; }
.cc-testimonial__name { font-weight: 600; color: var(--navy); font-size: 15px; }
.cc-testimonial__city { color: var(--ink-4); font-size: 13px; }

/* =========================================================================
   ZONA DE ACTUACIÓN + MAPA
   ========================================================================= */
.cc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-chips span { background: #fff; color: var(--blue); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 30px; }
.cc-chips span.is-muted { color: var(--ink-3); font-weight: 400; }
.cc-map { background: #eef1f5; border-radius: 24px; min-height: 380px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(22, 57, 92, .06); }
#cc-map { width: 100%; height: 380px; }
.cc-map__note { position: absolute; bottom: 12px; right: 14px; z-index: 500; font-size: 11px; color: var(--ink-2); background: rgba(255, 255, 255, .9); padding: 4px 10px; border-radius: 30px; box-shadow: 0 2px 8px rgba(22, 57, 92, .12); pointer-events: none; }

/* Leaflet overrides + pin de marca */
.leaflet-container { background: #eef1f5 !important; font-family: var(--font-sans); }
.leaflet-control-zoom a { border-radius: 9px !important; color: var(--navy) !important; border: 1px solid #e2e7ee !important; box-shadow: 0 2px 8px rgba(22, 57, 92, .12); }
.leaflet-control-attribution { background: rgba(255, 255, 255, .78) !important; font-size: 9.5px !important; border-radius: 8px 0 0 0; }
.cc-pin-label { background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 30px; white-space: nowrap; box-shadow: 0 6px 16px rgba(22, 57, 92, .3); display: flex; align-items: center; gap: 7px; }
.cc-pin-stem { width: 2px; height: 13px; background: var(--navy); margin: 0 auto; }
.cc-pin-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); margin: -2px auto 0; }

/* =========================================================================
   BLOG
   ========================================================================= */
.cc-blog__head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 42px; }
.cc-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.cc-post-card { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--border); transition: box-shadow .25s ease; }
.cc-post-card:hover { box-shadow: 0 16px 40px rgba(22, 57, 92, .12); }
.cc-post-card__img { height: 185px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .5); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; background-size: cover; background-position: center; }
.cc-post-card__body { padding: 24px; }
.cc-post-card__cat { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }
.cc-post-card h3 { font-family: var(--font-serif); font-size: 19px; color: var(--navy); margin: 11px 0 10px; line-height: 1.3; }
.cc-post-card p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 16px; }
.cc-post-card a.read { color: var(--blue); font-weight: 600; font-size: 14px; text-decoration: none; }

/* =========================================================================
   FAQ
   ========================================================================= */
.cc-faq { display: flex; flex-direction: column; gap: 12px; }
.cc-faq__item { background: #fff; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.cc-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-serif); font-size: clamp(16px, 2vw, 18px); font-weight: 600; color: var(--navy); }
.cc-faq__sign { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--panel-blue); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 18px; font-family: var(--font-sans); line-height: 1; }
.cc-faq__a { margin: 0; padding: 0 22px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* =========================================================================
   CONTACTO (CTA + formulario)
   ========================================================================= */
.cc-cta__block { background: var(--grad-cta); border-radius: 28px; padding: clamp(30px, 4vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(34px, 5vw, 56px); align-items: start; box-shadow: 0 24px 60px rgba(22, 57, 92, .3); }
.cc-cta__block .cc-h2 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; margin: 0 0 16px; }
.cc-cta__lead { color: var(--on-dark-2); font-size: 16.5px; margin: 0 0 30px; }
.cc-cta__eyebrow { color: var(--gold-light); font-weight: 600; font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.cc-contact-methods { display: flex; flex-direction: column; gap: 16px; }
.cc-contact-method { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.cc-contact-method__ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.cc-contact-method__ico--gold { background: rgba(230, 207, 160, .16); border: 1px solid rgba(230, 207, 160, .35); }
.cc-contact-method__ico--wa { background: rgba(37, 211, 102, .16); border: 1px solid rgba(37, 211, 102, .35); }
.cc-contact-method .sm { color: var(--on-dark-3); font-size: 13px; }
.cc-contact-method .lg { color: #fff; font-weight: 700; font-size: 18px; font-family: var(--font-serif); }

.cc-form-card { background: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 34px); }
.cc-form-card h3 { font-family: var(--font-serif); color: var(--navy); font-size: 22px; margin: 0 0 6px; }
.cc-form-card .hint { color: var(--ink-4); font-size: 13.5px; margin: 0 0 20px; }
.cc-input { width: 100%; padding: 14px 16px; border: 1px solid var(--input-border); border-radius: 12px; font-size: 16px; font-family: inherit; margin-bottom: 13px; color: var(--ink); background: var(--alt-2); }
.cc-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 78, 123, .12); }
textarea.cc-input { resize: vertical; }
.cc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-4); margin: 3px 0 18px; cursor: pointer; }
.cc-consent input { margin-top: 3px; flex: none; }
.cc-consent a { color: var(--blue); }
.cc-form__submit { width: 100%; background: var(--gold); color: #fff; border: none; padding: 16px; border-radius: 30px; font-weight: 600; font-size: 16px; font-family: inherit; cursor: pointer; box-shadow: var(--shadow-gold); transition: background .2s; }
.cc-form__submit:hover { background: var(--gold-hover); }
.cc-form__submit:disabled { opacity: .7; cursor: default; }
.cc-form__error { color: #b4232a; font-size: 13.5px; margin: 0 0 12px; }
.cc-form__success { text-align: center; padding: 40px 10px; }
.cc-form__success-ico { width: 64px; height: 64px; border-radius: 50%; background: #E9F5EE; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.cc-form__success h3 { font-family: var(--font-serif); color: var(--navy); font-size: 24px; margin: 0 0 10px; }
.cc-form__success p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.cc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.cc-footer { background: var(--navy-footer); color: var(--on-dark-3); border-radius: var(--radius-panel); margin: 0 var(--panel-inset) var(--panel-inset); padding: clamp(48px, 6vw, 68px) clamp(24px, 4vw, 48px) 0; }
.cc-footer__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-bottom: 42px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cc-footer__logo { height: 34px; width: auto; margin-bottom: 16px; }
.cc-footer p { font-size: 14px; margin: 0 0 18px; max-width: 260px; }
.cc-footer h5 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.cc-footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.cc-footer a { color: var(--on-dark-3); text-decoration: none; transition: color .2s; }
.cc-footer a:hover { color: #fff; }
.cc-social { display: flex; gap: 10px; }
.cc-social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; }
.cc-social a:hover { background: rgba(255, 255, 255, .16); }
.cc-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 22px 0; text-align: center; font-size: 13px; color: #6f90a8; }

/* =========================================================================
   Elementos flotantes
   ========================================================================= */
.cc-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 0 clamp(12px, 3vw, 20px) 14px; }
.cc-cookie__inner { max-width: 1000px; margin: 0 auto; background: var(--navy); color: var(--on-dark); border: 1px solid rgba(230, 207, 160, .25); border-radius: 16px; box-shadow: 0 16px 44px rgba(10, 30, 52, .5); padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cc-cookie__text { flex: 1; min-width: 230px; font-size: 13.5px; line-height: 1.6; color: var(--on-dark-2); }
.cc-cookie__text a { color: var(--gold-light); font-weight: 600; text-decoration: none; }
.cc-cookie__actions { display: flex; gap: 10px; flex: none; }
.cc-cookie__btn { border-radius: 30px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.cc-cookie__btn--reject { background: transparent; color: var(--on-dark-2); border: 1px solid rgba(255, 255, 255, .28); padding: 11px 18px; }
.cc-cookie__btn--reject:hover { border-color: #fff; color: #fff; }
.cc-cookie__btn--accept { background: var(--gold); color: #fff; border: none; padding: 11px 22px; }
.cc-cookie__btn--accept:hover { background: var(--gold-hover); }

.cc-wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(37, 211, 102, .5); animation: ccPulse 2.4s infinite; }
@keyframes ccPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.cc-mobilebar { display: none; }
.cc-mobile-spacer { display: none; }

/* =========================================================================
   RESPONSIVE — breakpoint principal 1024px (home)
   ========================================================================= */
@media (max-width: 1023px) {
  .cc-only-desktop { display: none !important; }
  .cc-only-mobile { display: flex !important; }

  .cc-hero__photo { display: none; }
  .cc-hero__body { display: block; padding-top: clamp(94px, 22vw, 110px); }
  .cc-hero__card { max-width: none; }

  .cc-cookie { bottom: 70px; }
  .cc-wa-float { display: none; }

  .cc-mobilebar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: flex; background: var(--navy); }
  .cc-mobilebar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px; min-height: 48px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
  .cc-mobilebar a + a { }
  .cc-mobilebar a.is-call { border-right: 1px solid rgba(255, 255, 255, .12); }
  .cc-mobilebar a.is-wa { background: var(--wa); }
  .cc-mobile-spacer { display: block; height: 64px; }
}

@media (min-width: 1024px) {
  .cc-mobile-menu { display: none !important; }
}

/* =========================================================================
   AFINADO MÓVIL — legibilidad, áreas de toque y aprovechamiento de pantalla
   ========================================================================= */
@media (max-width: 1023px) {
  :root {
    --gutter: 14px;       /* que las tarjetas no rocen el borde */
    --header-h: 72px;     /* cabecera más compacta = más contenido visible */
  }

  /* El menú desplegable sigue a la cabecera cuando esta se encoge al hacer scroll */
  .cc-header.is-scrolled ~ .cc-mobile-menu { top: var(--header-h-scrolled); }

  /* Áreas de toque cómodas (mín. ~44px) */
  .cc-arrow-link { padding: 10px 0; }
  .cc-post-card a.read { display: inline-block; padding: 10px 0; }
  .cc-footer__links a,
  .cc-footer a { padding: 4px 0; }
  .cc-lang button { padding: 10px 14px; }

  /* Consentimiento RGPD: casilla y texto usables con el dedo */
  .cc-consent { font-size: 13.5px; align-items: center; }
  .cc-consent input[type="checkbox"] { width: 22px; height: 22px; margin-top: 0; }

  /* CTA del hero a ancho completo: más fácil de pulsar */
  .cc-hero__actions .cc-btn--gold { width: 100%; }

  /* Tablas de las páginas legales: scroll propio en vez de romper la página */
  .cc-prose table { display: block; overflow-x: auto; max-width: 100%; }
}

/* Ajustes finos móvil pequeño */
@media (max-width: 560px) {
  .cc-blog__head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-marquee__track { animation: none; }
  .cc-wa-float { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   MODO SIN FOTOS (body.cc-sin-fotos) — hasta que lleguen las fotos reales.
   Centra el hero y pasa "El despacho" a una sola columna.
   ========================================================================= */
/* El centrado solo aplica en escritorio (es donde quedaba el hueco de la foto).
   En móvil el hero ya es una sola columna y el texto va alineado a la izquierda. */
@media (min-width: 1024px) {
  .cc-sin-fotos .cc-hero__body { justify-content: center; }
  .cc-sin-fotos .cc-hero__card { flex: 0 1 720px; max-width: 720px; text-align: center; }
  .cc-sin-fotos .cc-hero__actions,
  .cc-sin-fotos .cc-stats { justify-content: center; }
  .cc-sin-fotos .cc-hero__card .cc-chip { margin-left: auto; margin-right: auto; }
}
.cc-sin-fotos #despacho .cc-split { max-width: 820px; margin: 0 auto; }

/* ---------- Contenido de páginas (legales, artículos) ---------- */
.cc-prose { color: var(--ink-2); font-size: 16px; }
.cc-prose h2 { color: var(--navy); font-family: var(--font-sans); font-size: clamp(22px, 3vw, 30px); margin: 34px 0 12px; letter-spacing: -.4px; }
.cc-prose h3 { color: var(--navy); font-family: var(--font-serif); font-size: 20px; margin: 26px 0 10px; }
.cc-prose p { margin: 0 0 16px; }
.cc-prose ul, .cc-prose ol { margin: 0 0 16px; padding-left: 22px; }
.cc-prose li { margin-bottom: 8px; }
.cc-prose a { color: var(--blue); }
.cc-prose strong { color: var(--ink); }
.cc-prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.cc-prose th, .cc-prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; font-size: 14.5px; }
.cc-prose th { background: var(--panel-blue); color: var(--navy); }
.cc-prose .cc-updated { font-size: 13px; color: var(--ink-4); margin: 0 0 18px; }
.cc-prose .cc-todo { background: #f4e6c4; color: #7c5c1c; padding: 0 5px; border-radius: 4px; font-weight: 600; }
.cc-prose .cc-callout { background: #fbf6ea; border: 1px solid #ecdcbb; border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 18px; margin: 0 0 16px; }
.cc-prose .cc-callout p { color: #5c4a24; margin: 0; }
.cc-prose code { background: var(--alt); padding: 2px 6px; border-radius: 5px; font-size: 13.5px; color: var(--navy); }
