/* Expertos Freelance — tarjeta de freelance v4 (.efc)
   Jerarquía: imagen/logo → nombre (enlace) → zona → descripción → servicios → pie. */
.efc { display:flex; flex-direction:column; width:100%; height:100%; background:#fff; border:1px solid #E7E1F0; border-radius:16px; overflow:hidden; font-family:Figtree, system-ui, sans-serif; color:#1F2330; transition:box-shadow .2s, transform .2s; }
.efc:hover { box-shadow:0 12px 30px rgba(60,40,90,.10); transform:translateY(-2px); }
.efc__media { display:flex; align-items:center; justify-content:center; height:150px; background:#F6F2FB; border-bottom:1px solid #EFEAF6; text-decoration:none !important; }
.efc__media img { max-width:72%; max-height:110px; width:auto; height:auto; object-fit:contain; }
.efc__initials { width:76px; height:76px; border-radius:18px; background:#fff; color:#714B67; font-size:28px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(113,75,103,.12); }
.efc__body { display:flex; flex-direction:column; gap:10px; padding:20px 22px 22px; flex:1; }
.efc__name { margin:0 !important; font-size:20px !important; line-height:1.25 !important; font-weight:800 !important; letter-spacing:-.01em; text-transform:none !important; }
.efc__name a { color:#1F2330 !important; text-decoration:none !important; }
.efc__name a:hover { color:#714B67 !important; text-decoration:underline !important; text-underline-offset:3px; }
.efc__place { margin:0 !important; display:flex; align-items:center; gap:6px; font-size:15px; color:#4A5060; }
.efc__place svg { flex:none; color:#714B67; }
.efc__desc { margin:0 !important; font-size:16px; line-height:1.5; color:#3A3F4C; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.efc__services { list-style:none !important; margin:2px 0 0 !important; padding:0 !important; display:flex; flex-wrap:wrap; gap:6px; }
.efc__services li { margin:0 !important; padding:5px 10px; border-radius:6px; background:#F2F3F6; color:#3A3F4C; font-size:13.5px; line-height:1.2; }
.efc__services li::before { display:none !important; content:none !important; }
.efc__foot { margin-top:auto; padding-top:14px; border-top:1px solid #F0EDF4; display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:14.5px; }
.efc__rating { color:#1F2330; }
.efc__rating .ef-star { color:#E8A100; }
.efc__muted { color:#6B7180; }
.efc__free { color:#714B67; font-weight:700; }
.efc__cta { display:inline-flex; align-items:center; gap:6px; padding:10px 16px; border-radius:999px; background:#714B67; color:#fff !important; font-weight:700; font-size:14.5px; line-height:1; text-decoration:none !important; white-space:nowrap; }
.efc__cta:hover { background:#5A3A52; }

/* rejilla: alturas iguales */
.gva-view-grid-inner:has(.efc) { display:flex !important; flex-wrap:wrap; }
.gva-view-grid-inner:has(.efc) > .item-columns { display:flex !important; float:none !important; margin-bottom:24px; }
.gva-view-grid-inner:has(.efc) > .item-columns > div, .gva-view-grid-inner:has(.efc) .listing-block { display:flex; flex-direction:column; width:100%; flex:1; }
.listing-block:has(.efc) { background:none !important; border:0 !important; box-shadow:none !important; padding:0 !important; }

/* Blog en portada: tarjeta igual que las de freelancers */
.ef-blog-plain { background:#fff !important; background-image:none !important; }
.ef-blog-plain .title, .ef-blog-plain .title-desc, .ef-blog-plain .title-desc p { color:#1F2330 !important; }
.news-grid-3-2 .posts-large { display:grid !important; grid-template-columns:repeat(3, 1fr); gap:24px; }
.news-grid-3-2 .posts-large::before, .news-grid-3-2 .posts-large::after { display:none !important; }
.news-grid-3-2 .post-item { width:auto !important; float:none !important; padding:0 !important; }
.news-grid-3-2 .post-block-2 { display:flex; flex-direction:column; height:100%; border:1px solid #E7E1F0; border-radius:16px; overflow:hidden; background:#fff; }
.news-grid-3-2 .post-block-2 .post-image { position:relative !important; }
.news-grid-3-2 .post-block-2 .post-image img { width:100% !important; height:190px !important; object-fit:cover; }
.news-grid-3-2 .post-block-2 .post-image::before, .news-grid-3-2 .post-block-2 .post-image::after,
.news-grid-3-2 .post-block-2 .post-image .item-image a::after { display:none !important; }
.news-grid-3-2 .post-block-2 .post-image .content-inner { position:static !important; padding:18px 20px 6px !important; background:none !important; text-align:left !important; }
.news-grid-3-2 .post-block-2 .post-image .content-inner .post-title { font-size:18px !important; line-height:1.35 !important; margin:0 0 8px !important; text-transform:none !important; }
.news-grid-3-2 .post-block-2 .post-image .content-inner .post-title a, .news-grid-3-2 .post-block-2 .post-image .content-inner .post-title span { color:#1F2330 !important; }
.news-grid-3-2 .post-block-2 .post-image .content-inner .post-created { color:#6B7180 !important; font-size:14px; }
.news-grid-3-2 .post-block-2 .post-content { position:static !important; transform:none !important; padding:0 20px 20px !important; margin-top:auto; background:none !important; text-align:left !important; }
.news-grid-3-2 .post-block-2 .post-categories { position:static !important; background:none !important; padding:0 !important; }
.news-grid-3-2 .post-block-2 .post-categories a { display:inline-block; background:#F4EEFC; color:#714B67 !important; border-radius:6px; padding:4px 10px; font-size:13px; }
@media (max-width: 991px) { .news-grid-3-2 .posts-large { grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 575px) { .news-grid-3-2 .posts-large { grid-template-columns:1fr; } }

/* Datos extra (páginas de categoría) */
.efc__facts { margin:2px 0 0 !important; padding:12px 0 0 !important; border-top:1px dashed #E7E1F0; display:grid; gap:6px; font-size:14.5px; line-height:1.4; }
.efc__facts > div { display:grid; grid-template-columns:110px 1fr; gap:8px; }
.efc__facts dt { margin:0; font-weight:600; color:#6B7180; }
.efc__facts dd { margin:0; color:#1F2330; }
body.frontpage .efc__facts { display:none; }
/* Categoría: más texto y 3 por fila */
body.path-listings .efc__desc { -webkit-line-clamp:4; }
@media (min-width: 1100px) {
  body.path-listings .gva-view-grid-inner:has(.efc) > .item-columns { width:33.3333% !important; flex:0 0 33.3333%; }
}
@media (max-width: 767px) {
  body.path-listings .gva-view-grid-inner:has(.efc) > .item-columns { width:100% !important; flex:0 0 100%; }
}

/* Buscador: contador y mensaje sin resultados */
.ef-search .ef-list li { display:flex; align-items:center; gap:10px; }
.ef-search .ef-list .ef-label { flex:1; }
.ef-search .ef-list .ef-count { font-size:13px; color:#714B67; background:#F4EEFC; border-radius:999px; padding:3px 9px; white-space:nowrap; }
.ef-search .ef-list .ef-empty { display:block; color:#4A5060; line-height:1.5; }
.ef-search .ef-list .ef-empty a { color:#714B67; font-weight:700; }
/* "Freelancers más buscados" bajo el buscador */
.hero-expertos ul li:first-child { font-weight:700; color:#1F2330; }
.ef-search .ef-list .ef-type { background:#F4EEFC !important; color:#714B67 !important; }

/* Acceso con Google / LinkedIn */
.ef-social { max-width:420px; margin:0 auto 8px; display:flex; flex-direction:column; gap:12px; }
.ef-social__head { margin:0 0 4px; text-align:center; font-weight:800; font-size:17px; color:#1F2330; }
.ef-social .ef-social__btn { width:100%; display:flex !important; align-items:center; justify-content:center; gap:10px; padding:14px 18px !important; border-radius:12px !important; font-size:16px !important; font-weight:700 !important; line-height:1 !important; text-transform:none !important; cursor:pointer; background-repeat:no-repeat !important; background-position:18px center !important; background-size:20px 20px !important; transition:box-shadow .15s, transform .15s; }
.ef-social .ef-social__btn:hover { box-shadow:0 6px 16px rgba(0,0,0,.08); transform:translateY(-1px); }
.ef-social .ef-social__btn--google { background-color:#fff !important; color:#1F2330 !important; border:1px solid #DADCE0 !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E") !important; }
.ef-social .ef-social__btn--linkedin { background-color:#0A66C2 !important; color:#fff !important; border:1px solid #0A66C2 !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z'/%3E%3C/svg%3E") !important; }
.ef-social .ef-social__btn--linkedin:hover { background-color:#004182 !important; }
.ef-social__or { position:relative; text-align:center; margin:10px 0 4px; color:#6B7180; font-size:14px; }
.ef-social__or::before { content:""; position:absolute; left:0; right:0; top:50%; border-top:1px solid #E7E1F0; }
.ef-social__or span { position:relative; background:#fff; padding:0 12px; }
.ef-social .ef-social__btn--microsoft { background-color:#fff !important; color:#1F2330 !important; border:1px solid #DADCE0 !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 23'%3E%3Cpath fill='%23F25022' d='M1 1h10v10H1z'/%3E%3Cpath fill='%237FBA00' d='M12 1h10v10H12z'/%3E%3Cpath fill='%2300A4EF' d='M1 12h10v10H1z'/%3E%3Cpath fill='%23FFB900' d='M12 12h10v10H12z'/%3E%3C/svg%3E") !important; }

/* Plan Pro: destacado y verificado */
.efc { position:relative; }
.efc--featured { border-color:#C9A7DD !important; box-shadow:0 8px 24px rgba(113,75,103,.14) !important; }
.efc__flag { position:absolute; top:12px; left:12px; z-index:2; background:#714B67; color:#fff; font-size:12.5px; font-weight:800; letter-spacing:.04em; padding:5px 10px; border-radius:999px; }
.efc__verified, .ef-verified span { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:#1E8A63; color:#fff !important; font-size:12px; font-weight:800; vertical-align:2px; }
.ef-verified { display:inline-flex; align-items:center; gap:8px; margin:6px 0 0; font-weight:700; color:#1E8A63; font-size:15px; }
.ef-plan-note { background:#F6F2FB; border:1px solid #E7DCF2; border-radius:12px; padding:14px 16px; margin:0 0 20px; font-size:15px; line-height:1.55; color:#3A3F4C; }
.ef-plan-note span { display:block; margin-top:4px; color:#6B7180; font-size:14px; }

/* Formulario «Escribe a…» en la ficha */
.ef-contact-form { margin-top:20px; background:#fff; border:1px solid #E7E1F0; border-radius:16px; padding:22px; scroll-margin-top:110px; }
.ef-contact-form__title { margin:0 0 6px !important; font-size:20px !important; font-weight:800 !important; color:#1F2330 !important; text-transform:none !important; }
.ef-contact-form__intro { margin:0 0 14px; font-size:15px; color:#4A5060; line-height:1.5; }
.ef-contact-form .block-title, .ef-contact-form h2.block-title { display:none; }
.ef-contact-form .form-item { margin:0 0 12px !important; }
.ef-contact-form label { font-weight:700; font-size:14.5px; color:#1F2330; margin-bottom:4px; }
.ef-contact-form input[type=text], .ef-contact-form input[type=email], .ef-contact-form input[type=tel], .ef-contact-form textarea { width:100%; border:1px solid #DCD6E5 !important; border-radius:10px !important; padding:11px 12px !important; font-size:15.5px !important; background:#fff !important; }
.ef-contact-form input:focus, .ef-contact-form textarea:focus { border-color:#714B67 !important; outline:2px solid #EFE6F7; }
.ef-contact-form .form-type-checkbox label { font-weight:400; font-size:13.5px; line-height:1.45; color:#4A5060; }
.ef-contact-form .form-type-checkbox label a { color:#714B67; }
.ef-contact-form .webform-button--submit, .ef-contact-form input[type=submit] { width:100%; background:#714B67 !important; border:0 !important; color:#fff !important; border-radius:999px !important; padding:14px 18px !important; font-size:16px !important; font-weight:800 !important; line-height:1 !important; text-transform:none !important; cursor:pointer; }
.ef-contact-form .webform-button--submit:hover { background:#5A3A52 !important; }
.ef-contact-form .webform-confirmation { background:#E3F5EE; border-radius:12px; padding:14px; color:#1E5C44; }

/* Páginas de acceso (/user/login, /user/password): mismo estilo que el alta */
.gva-body-page[class*="page-user"] { background:#F6F2FB !important; min-height:100vh; font-family:Figtree, system-ui, sans-serif; }
.gva-body-page[class*="page-user"] > .bg { display:none !important; }
.gva-body-page[class*="page-user"] .main-page { max-width:480px; margin:48px auto 64px !important; padding:36px 40px 32px !important; background:#fff !important; border:1px solid #E7E1F0 !important; border-radius:22px !important; box-shadow:0 18px 50px rgba(60,40,90,.08) !important; }
.gva-body-page[class*="page-user"] .branding { background:none !important; padding:0 0 22px !important; margin:0 !important; }
.gva-body-page[class*="page-user"] .branding img { height:52px !important; width:auto !important; }
.gva-body-page[class*="page-user"] .help, .gva-body-page[class*="page-user"] .block-local-tasks-block, .gva-body-page[class*="page-user"] ul.tabs { display:none !important; }
.gva-body-page[class*="page-user"] .page-use-main-content .messages, .gva-body-page[class*="page-user"] [data-drupal-messages] { display:block !important; }
.gva-body-page[class*="page-user"] .content-main, .gva-body-page[class*="page-user"] #content { padding:0 !important; background:none !important; box-shadow:none !important; border:0 !important; }
.gva-body-page[class*="page-user"] .ef-social { max-width:none; }
.gva-body-page[class*="page-user"] .ef-social__head { font-size:26px !important; font-weight:800 !important; text-align:left !important; margin-bottom:6px !important; letter-spacing:-.02em; }
.ef-login .form-item { margin:0 0 16px !important; }
.ef-login label { font-weight:700; font-size:15px; color:#1F2330; margin-bottom:6px; display:block; }
.ef-login input[type=text], .ef-login input[type=email], .ef-login input[type=password] { width:100% !important; border:1.5px solid #DCD6E5 !important; border-radius:12px !important; padding:14px 16px !important; font-size:17px !important; height:auto !important; background:#fff !important; box-shadow:none !important; }
.ef-login input:focus { border-color:#714B67 !important; outline:3px solid #EFE6F7 !important; }
.ef-login .ef-login__submit, .ef-login .form-actions input[type=submit] { width:100%; background:#714B67 !important; border:0 !important; color:#fff !important; border-radius:999px !important; padding:16px 24px !important; font-size:17px !important; font-weight:800 !important; line-height:1 !important; text-transform:none !important; cursor:pointer; }
.ef-login .ef-login__submit:hover { background:#5A3A52 !important; }
.ef-login__links { margin:16px 0 0; text-align:center; font-size:15px; }
.ef-login__new { margin:18px 0 0; padding-top:18px; border-top:1px solid #F0EDF4; text-align:center; font-size:15.5px; color:#4A5060; }
.ef-login a { color:#714B67 !important; font-weight:700; }
.ef-login__title { font-size:26px !important; font-weight:800 !important; margin:0 0 8px !important; color:#1F2330 !important; text-transform:none !important; letter-spacing:-.02em; }
.ef-login__intro { font-size:16px; color:#4A5060; margin:0 0 20px; line-height:1.5; }
@media (max-width: 560px) {
  .gva-body-page[class*="page-user"] .main-page { margin:0 !important; border-radius:0 !important; border:0 !important; padding:28px 20px !important; box-shadow:none !important; }
}
body:has(.gva-body-page[class*="page-user"]) { background:#F6F2FB !important; }
.gva-body-page[class*="page-user"] { padding-top:1px; }
