/* Expertos Freelance — portada con más ritmo: fondos alternos, acentos de color,
   pasos numerados y letra más grande. */
:root {
  --ef-c1:#EFE6F7; --ef-i1:#714B67;   /* lila (Odoo) */
  --ef-c2:#E3F5EE; --ef-i2:#1E8A63;   /* menta */
  --ef-c3:#FFEDE3; --ef-i3:#C2562A;   /* melocotón */
  --ef-c4:#E5F0FD; --ef-i4:#2F6FC4;   /* cielo */
  --ef-c5:#FFF5D6; --ef-i5:#A67A00;   /* mostaza */
  --ef-c6:#FCE7F0; --ef-i6:#B83E73;   /* frambuesa */
}

/* Letra base más grande en la portada */
body.frontpage .main-page-content, body.frontpage #page-main-content { font-size:16.5px; }
body.frontpage .gsc-heading .title { font-size:38px !important; font-weight:800 !important; letter-spacing:-.02em; line-height:1.15 !important; }
body.frontpage .gsc-heading .title-desc, body.frontpage .gsc-heading .title-desc p { font-size:18px !important; color:#4A5060 !important; line-height:1.55 !important; }
body.frontpage .gsc-heading .sub-title { display:inline-block; font-size:13px !important; font-weight:800 !important; text-transform:uppercase; letter-spacing:.14em !important; color:#714B67 !important; background:#F4EEFC; border-radius:999px; padding:6px 14px; margin-bottom:14px !important; }
.hero-expertos .hero-title { font-size:54px; }
.hero-expertos .hero-subtitle { font-size:19px; }

/* Franja de confianza bajo el buscador */
.ef-trust { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 28px; margin:30px auto 0; padding-top:24px; border-top:1px solid rgba(113,75,103,.15); max-width:900px; font-size:16px; color:#4A5060; }
.ef-trust span { display:inline-flex; align-items:center; gap:6px; }
.ef-trust span::before { content:""; width:8px; height:8px; border-radius:50%; background:#714B67; opacity:.55; }
.ef-trust b { color:#1F2330; font-weight:800; }

/* Áreas de servicio: cada una con su color */
.ef-families { gap:20px !important; }
.ef-family { background:#fff !important; border:1px solid #ECE7F2 !important; border-radius:18px !important; padding:22px !important; transition:transform .2s, box-shadow .2s, border-color .2s; }
.ef-family:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(40,30,60,.08); border-color:transparent !important; }
.ef-family__icon { width:52px !important; height:52px !important; border-radius:14px !important; font-size:17px !important; font-weight:800 !important; }
.ef-family__name { font-size:19px !important; font-weight:800 !important; margin-bottom:6px !important; }
.ef-family__links { font-size:15.5px !important; line-height:1.65 !important; color:#8A8F9C; }
.ef-family__links a { color:#3A3F4C !important; }
.ef-family__links a:hover { color:#714B67 !important; text-decoration:underline; }
.ef-family:nth-child(6n+1) .ef-family__icon { background:var(--ef-c1) !important; color:var(--ef-i1) !important; }
.ef-family:nth-child(6n+2) .ef-family__icon { background:var(--ef-c2) !important; color:var(--ef-i2) !important; }
.ef-family:nth-child(6n+3) .ef-family__icon { background:var(--ef-c3) !important; color:var(--ef-i3) !important; }
.ef-family:nth-child(6n+4) .ef-family__icon { background:var(--ef-c4) !important; color:var(--ef-i4) !important; }
.ef-family:nth-child(6n+5) .ef-family__icon { background:var(--ef-c5) !important; color:var(--ef-i5) !important; }
.ef-family:nth-child(6n+6) .ef-family__icon { background:var(--ef-c6) !important; color:var(--ef-i6) !important; }

/* Destacados: fondo lila suave para que las tarjetas resalten */
body.frontpage .gbb-row:has(.efc) { background:linear-gradient(180deg, #F6F1FB 0%, #FBF9FD 100%) !important; }
body.frontpage .efc { border-color:#E9E2F2; box-shadow:0 2px 10px rgba(60,40,90,.04); }
body.frontpage .more-link a { padding:15px 30px !important; font-size:16px !important; font-weight:800 !important; text-transform:none !important; }

/* Cómo funciona: pasos numerados con línea y colores */
body.frontpage .gbb-row:has(.gsc-icon-box.top-center) .row { position:relative; counter-reset:efstep; }
.gsc-icon-box.top-center { counter-increment:efstep; position:relative; }
.gsc-icon-box.top-center .highlight-icon { position:relative; display:inline-block; }
.gsc-icon-box.top-center .highlight-icon::after { content:counter(efstep); position:absolute; top:-6px; right:-10px; width:30px; height:30px; border-radius:50%; background:#714B67; color:#fff; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; border:3px solid #fff; }
.gsc-icon-box.top-center .title { font-size:21px !important; margin-top:6px; }
.gbb-row:has(.gsc-icon-box.top-center) .gsc-column:nth-of-type(2) .icon-container { background:var(--ef-c1) !important; color:var(--ef-i1) !important; }
.gbb-row:has(.gsc-icon-box.top-center) .gsc-column:nth-of-type(3) .icon-container { background:var(--ef-c2) !important; color:var(--ef-i2) !important; }
.gbb-row:has(.gsc-icon-box.top-center) .gsc-column:nth-of-type(4) .icon-container { background:var(--ef-c3) !important; color:var(--ef-i3) !important; }
@media (min-width: 992px) {
  .gbb-row:has(.gsc-icon-box.top-center) .gsc-column:nth-of-type(2)::after,
  .gbb-row:has(.gsc-icon-box.top-center) .gsc-column:nth-of-type(3)::after { content:""; position:absolute; top:58px; right:-22%; width:44%; border-top:2px dashed #D9CBE6; }
  .gbb-row:has(.gsc-icon-box.top-center) .gsc-column { position:relative; }
}

/* Poblaciones: fondo arena cálido */
body.frontpage .gbb-row:has(.ef-towns) { background:#FBF7F1 !important; }
.ef-town { box-shadow:0 2px 10px rgba(80,60,30,.04); }

/* Por qué Expertos Freelance: franja oscura (berenjena) con iconos de color */
body.frontpage .gbb-row:has(.gsc-icon-box.left):not(.gbb-row .gbb-row) { background:#2B2030 !important; }
body.frontpage .gbb-row:has(.gsc-icon-box.left) .gbb-row { background:transparent !important; }
body.frontpage .gbb-row:has(.gsc-icon-box.left) .gsc-heading .title { color:#fff !important; }
body.frontpage .gbb-row:has(.gsc-icon-box.left) .gsc-heading .title-desc, body.frontpage .gbb-row:has(.gsc-icon-box.left) .gsc-heading .title-desc p { color:#CFC3D6 !important; }
body.frontpage .gbb-row:has(.gsc-icon-box.left) .gsc-heading .sub-title { background:rgba(255,255,255,.1); color:#E6D6EE !important; }
.gsc-icon-box.left { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:22px !important; height:100%; }
body.frontpage .gsc-icon-box.left .title { color:#fff !important; font-size:19px !important; }
body.frontpage .gsc-icon-box.left .desc, body.frontpage .gsc-icon-box.left .desc p { color:#CFC3D6 !important; }
.gbb-row:has(.gsc-icon-box.left) .gsc-column:nth-of-type(1) .icon-container { background:var(--ef-c1) !important; color:var(--ef-i1) !important; }
.gbb-row:has(.gsc-icon-box.left) .gsc-column:nth-of-type(2) .icon-container { background:var(--ef-c2) !important; color:var(--ef-i2) !important; }
.gbb-row:has(.gsc-icon-box.left) .gsc-column:nth-of-type(3) .icon-container { background:var(--ef-c3) !important; color:var(--ef-i3) !important; }
.gbb-row:has(.gsc-icon-box.left) .gsc-column:nth-of-type(4) .icon-container { background:var(--ef-c5) !important; color:var(--ef-i5) !important; }

/* Blog y textos de tarjetas un poco más grandes */
.news-grid-3-2 .post-block-2 .post-image .content-inner .post-title { font-size:19px !important; }
body.frontpage .efc__name { font-size:21px !important; }
body.frontpage .efc__desc { font-size:16.5px; }

@media (max-width: 767px) {
  body.frontpage .gsc-heading .title { font-size:28px !important; }
  body.frontpage .gsc-heading .title-desc, body.frontpage .gsc-heading .title-desc p { font-size:16.5px !important; }
  .ef-trust { justify-content:flex-start; gap:8px 18px; font-size:14.5px; margin-top:20px; padding-top:16px; }
  .gsc-icon-box.left { margin-bottom:14px; }
}

/* Ajustes tras la vista previa */
.hero-expertos .hero-title, body.frontpage .gsc-heading .title { text-wrap:balance; }
@media (min-width: 992px) { .ef-families { grid-template-columns:repeat(3, 1fr) !important; } }
body.frontpage .gsc-icon-box .desc, body.frontpage .gsc-icon-box .desc p { font-size:16.5px !important; }
.gsc-icon-box.left { display:flex !important; flex-direction:column; gap:14px; }
.gsc-icon-box.left .highlight-icon { float:none !important; margin:0 !important; position:static !important; }
.gsc-icon-box.left .highlight_content { padding-left:0 !important; margin-left:0 !important; }
.gbb-row:has(.gsc-icon-box.left) .gsc-column { display:flex; }
.gbb-row:has(.gsc-icon-box.left) .gsc-column > .column-inner { flex:1; }
.gbb-row:has(.gsc-icon-box.left) .column-inner, .gbb-row:has(.gsc-icon-box.left) .column-content-inner { height:100%; }
body.frontpage .gbb-row:has(.gsc-icon-box.left):not(.gbb-row .gbb-row) > .bb-inner { padding-bottom:72px !important; }
.gbb-row:has(.gsc-icon-box.left) .gbb-row .bb-inner { padding-bottom:0 !important; }
@media (max-width: 767px) {
  .hero-expertos .hero-title { font-size:30px; }
  .hero-expertos .hero-subtitle { font-size:16.5px; }
}
