/* =====================================================================
   Visible · somosvisible.es — estilos de las páginas nuevas y de los bloques
   añadidos tras el estudio de SEO y GEO (nov 2026).
   Se carga después de styles.css (y de blog.css en las páginas interiores).
   Orden: franja con menú · menú desplegable · hero de la portada · bloques
   nuevos de la portada · páginas interiores (servicio, ciudad, nosotros,
   contacto, legales, 404) · formulario · cookies · tablet y móvil.
   ===================================================================== */

/* ============ FRANJA: navegación principal ============ */
.header-left { display: flex; align-items: center; min-width: 0; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-block;
  padding: 8px 0;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.3s ease, background-size 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.nav-link:hover, .nav-item:focus-within > .nav-link { background-size: 100% 1px; color: var(--white); }
.site-header.on-light .nav-link { color: rgba(7, 7, 7, 0.82); }
.site-header.on-light .nav-link:hover, .site-header.on-light .nav-item:focus-within > .nav-link { color: var(--black); }
.has-sub > .nav-link::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: 0.7; }
.nav-sub {
  position: absolute; left: -18px; top: 100%;
  min-width: 260px;
  padding: 10px 0;
  list-style: none;
  background: var(--white);
  color: var(--black);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(7, 7, 7, 0.16), 0 0 0 0.5px rgba(7, 7, 7, 0.08);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1), visibility 0s linear 0.3s;
}
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* puente para que no se cierre al bajar el ratón */
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-sub a {
  display: block;
  padding: 9px 18px;
  font-size: 14px; letter-spacing: -0.01em;
  color: var(--black);
  transition: background 0.2s ease, padding-left 0.3s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--paper); padding-left: 24px; outline: none; }

.menu-btn {
  display: none;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 0;
  transition: color 0.3s ease;
}
.site-header.on-light .menu-btn { color: var(--black); }
.menu-btn-close { display: none; }
html.menu-open .menu-btn-open { display: none; }
html.menu-open .menu-btn-close { display: inline; }

/* ============ MENÚ A PANTALLA COMPLETA (móvil y tableta) ============ */
.menu {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--black);
  color: var(--white);
  overflow-y: auto;
  padding: calc(var(--strip-h, 69px) + 24px) var(--gr) 40px var(--gl);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu:not([hidden]) { opacity: 1; }
html.menu-open { overflow: hidden; }
html.menu-open .site-header .fade-light { opacity: 0; }
html.menu-open .site-header .fade-dark { opacity: 1; }
html.menu-open .site-header .header-logo { filter: none; }
html.menu-open .site-header .menu-btn, html.menu-open .site-header .nav-link { color: var(--white); }
html.menu-open .site-header .btn-cta { color: var(--white); border-color: rgba(255, 255, 255, 0.85); }
.menu-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.menu-label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.menu-list { list-style: none; margin-bottom: 36px; }
.menu-list a {
  display: block;
  padding: 10px 0;
  border-top: 0.5px solid var(--line-dark);
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--white);
}
.menu-list li:last-child a { border-bottom: 0.5px solid var(--line-dark); }
.menu-contact { font-size: 16px; line-height: 1.6; color: var(--white); }
.menu-contact a { color: var(--white); }

/* ============ HERO DE LA PORTADA: H1, apoyo y acciones ============ */
.hero-label { margin-bottom: 28px; }
.hero-sub {
  margin-top: 26px;
  max-width: 640px;
  font-size: 20px; font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.78);
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; pointer-events: auto; }
.hero-actions .btn-cta { height: 46px; padding: 0 26px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}
.link-arrow .arr { display: inline-block; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1); }
.link-arrow:hover .arr { transform: translateX(5px); }
.link-arrow-light { color: var(--white); }

/* El H1 del hero conserva el tamaño del manifiesto original */
.vh-copy .about-heading { font-size: 56px; max-width: 980px; }
.vh-copy .about-heading em { color: var(--grey); }

/* ============ PORTADA: etiquetas que ahora son H2 ============ */
h2.about-label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.svc-list-title { margin: 0; }
.svc-more { margin-top: 26px; }
.carousel-header > div .about-label { margin-bottom: 28px; }
.carousel-note {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding-left: var(--gl); padding-right: var(--gr);
  font-size: 13px; line-height: 1.5;
  color: var(--grey);
}

/* ============ PORTADA: bloques nuevos ============ */
.home-inner { max-width: var(--max-width); margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.home-about, .home-posts, .home-faq, .home-contact { background: var(--white); color: var(--black); padding-block: 110px; }
.home-about { border-top: 0.5px solid var(--line-light); }
.home-posts { padding-top: 0; }
.home-faq { background: var(--paper); }
.home-about .about-label, .home-faq .about-label, .home-contact .about-label { margin-bottom: 40px; }
.home-big {
  font-size: 48px; font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.05em;
  max-width: 900px;
  color: var(--black);
  text-wrap: balance;
}
.home-big em { font-style: normal; color: var(--grey); }
.home-about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.home-about-h { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 12px; }
.home-about-col p { font-size: 15px; line-height: 1.55; color: #555555; }
.home-about-col a { color: var(--black); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.home-more { margin-top: 48px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.home-head .about-label { margin-bottom: 0; }
.home-blog-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-blog-list .post-card { min-height: 300px; }
.home-blog-list .post-card-title { font-size: 26px; margin-top: 40px; }
.home-contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.home-contact-side { font-size: 15px; line-height: 1.6; color: #555555; }
.home-contact-side p + p { margin-top: 10px; }
.home-contact-h { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--black); margin-top: 28px !important; margin-bottom: 8px !important; }
.home-contact-side a { color: var(--black); }

/* ============ PREGUNTAS FRECUENTES ============ */
.faq { border-bottom: 0.5px solid var(--line-light); }
.faq-item { border-top: 0.5px solid var(--line-light); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--black);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq-item summary i::before, .faq-item summary i::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item > p { padding: 0 48px 26px 0; max-width: 820px; font-size: 16px; line-height: 1.55; color: #444444; }
.post-body .faq-item > p { margin: 0; }
.post-body .faq { margin-top: 1.2em; }

/* ============ PÁGINAS INTERIORES (servicio, ciudad, nosotros, contacto, legales) ============ */
.page-main .post-meta span + span { margin-left: 0; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; }
.page-actions .btn-cta { height: 46px; padding: 0 26px; }
.post-body .product-pills { margin: 0 0 20px; }
.post-body .page-grid { margin-inline: -18px; margin-top: 0; }
.post-body .page-grid .svc-cell h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; margin: 0; padding-right: 34px; color: inherit; }
.post-body .page-grid .svc-cell p { margin: 0; font-size: 13px; line-height: 1.5; }
.post-body .steps { list-style: none; counter-reset: none; margin: 0; padding: 0; border-top: 0.5px solid var(--line-light); }
.post-body .steps > li { padding: 22px 0 24px 0; border-bottom: 0.5px solid var(--line-light); margin: 0; }
.post-body .steps > li::before { display: none; }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-body .steps h3 { margin: 0; font-size: 20px; }
.step-time { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); white-space: nowrap; }
.post-body .steps p { margin-top: 8px; max-width: 720px; }
.post-body .note { font-size: 14px; line-height: 1.5; color: var(--grey); }
.link-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; }
.link-grid li { margin: 0; padding: 0; }
.link-grid li::before { display: none !important; }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-top: 0.5px solid var(--line-light);
  font-size: 18px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--black);
  background: none;
}
.link-grid a::after { content: '→'; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1); }
.link-grid a:hover::after { transform: translateX(5px); }
.post-related .link-grid { margin-inline: 0; }
.post-body-wide { grid-column: 1 / -1; max-width: 900px; }
.post-body .svc-links { list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--line-light); }
.post-body .svc-links li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 16px 0; margin: 0; border-bottom: 0.5px solid var(--line-light); }
.post-body .svc-links li::before { display: none; }
.post-body .svc-links a { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; background: none; }
.post-body .svc-links span { font-size: 14px; line-height: 1.5; color: #555555; }

/* Sedes: datos y mapa */
.office-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: stretch; }
.post-body .office-card p { margin: 0; font-size: 15px; line-height: 1.55; }
.post-body .office-card p + p { margin-top: 12px; }
.office-name { font-weight: 600; }
.office-map { position: relative; min-height: 300px; border-radius: 12px; overflow: hidden; background: var(--paper); }
.office-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.post-body .offices-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.post-body .offices-grid > li { margin: 0; padding: 0; }
.post-body .offices-grid > li::before { display: none; }
.post-body .offices-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; }
.post-body .offices-list > li { margin: 0; padding: 24px 0 0; border-top: 0.5px solid var(--line-light); }
.post-body .offices-list > li::before { display: none; }
.post-body .offices-list h3 { margin: 0 0 10px; }
.post-body .offices-list p { margin: 0; font-size: 15px; }
.post-body .offices-list p + p { margin-top: 10px; }

/* Persona (nosotros y caja de autor del blog) */
.person-card, .author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; align-items: start; }
.author-box { margin-top: 3em; padding-top: 28px; border-top: 0.5px solid var(--line-light); }
.person-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); color: var(--white);
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
}
.post-body .person-name { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.post-body .person-role { margin: 4px 0 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.post-body .person-card p + p, .post-body .author-box p + p { margin-top: 10px; }

/* Contacto: lateral */
.contact-side .about-label { margin-bottom: 10px; }
.contact-side .about-label + .contact-direct { margin-bottom: 28px; }
.contact-direct { font-size: 16px; line-height: 1.6; color: var(--black); }
.contact-direct a { color: var(--black); }
.post-body .lead:first-child { margin-top: 0; }

/* Blog: temas */
.blog-cats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.blog-cats li { padding: 0 12px; height: 28px; display: inline-flex; align-items: center; border: 0.5px solid var(--black); border-radius: 100px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }

/* 404: buscador */
.search-form { display: flex; gap: 12px; margin-top: 36px; max-width: 560px; }
.search-form input {
  flex: 1; min-width: 0;
  height: 46px; padding: 0 16px;
  border: 0.5px solid rgba(7, 7, 7, 0.4); border-radius: 5px;
  font: inherit; font-size: 15px; color: var(--black); background: var(--white);
}
.search-form .btn-cta { height: 46px; color: var(--black); border-color: rgba(7, 7, 7, 0.85); }
.search-form .btn-cta:hover { background: var(--black); color: var(--white); }

/* ============ FORMULARIO DE CONTACTO ============ */
.lead { margin-top: 2.4em; padding: 44px 48px 48px; border-radius: 20px; background: var(--paper); color: var(--black); }
.home-contact .lead { margin-top: 0; }
.post-body .lead-title, .lead-title { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; }
.post-body .lead-intro, .lead-intro { margin: 12px 0 28px; max-width: 560px; font-size: 15px; line-height: 1.5; color: #555555; }
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lead-field { display: flex; flex-direction: column; gap: 6px; }
.lead-field span { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.lead-field input, .lead-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0.5px solid rgba(7, 7, 7, 0.3); border-radius: 8px;
  background: var(--white); color: var(--black);
  font: inherit; font-size: 15px; line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-field input:focus, .lead-field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.lead-field textarea { resize: vertical; min-height: 110px; }
.lead-field.is-invalid input, .lead-field.is-invalid textarea { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.lead-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: #555555; }
.lead-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--black); flex-shrink: 0; }
.lead-consent a { color: var(--black); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.lead-consent.is-invalid { color: #B3261E; }
.lead-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 8px; }
.lead-submit { height: 46px; padding: 0 28px; color: var(--black); border-color: rgba(7, 7, 7, 0.85); }
.lead-submit:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.post-body .lead-alt, .lead-alt { margin: 0; font-size: 13px; line-height: 1.5; color: #555555; }
.lead-alt a { color: var(--black); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.post-body .lead-status, .lead-status { margin: 0; min-height: 1.4em; font-size: 14px; line-height: 1.4; color: var(--black); }
.lead-status:empty { display: none; }

/* ============ PIE: teléfono y cinco columnas ============ */
.footer-phone { font-size: 12px; letter-spacing: 0.02em; color: var(--white); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.1, 1); }
.footer-phone:hover { background-size: 100% 1px; }
.footer-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.footer-offices + .footer-col-links { margin-top: 6px; }

/* ============ COOKIES ============ */
.cookies {
  position: fixed; left: 20px; bottom: 20px;
  z-index: 140;
  width: min(380px, calc(100vw - 40px));
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--white); color: var(--black);
  box-shadow: 0 20px 60px rgba(7, 7, 7, 0.22), 0 0 0 0.5px rgba(7, 7, 7, 0.1);
  font-size: 13px; line-height: 1.5;
}
.cookies-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.cookies-text { color: #444444; }
.cookies-text a { color: var(--black); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.cookies-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.cookies-accept { height: 38px; color: var(--black); border-color: rgba(7, 7, 7, 0.85); }
.cookies-accept:hover { background: var(--black); color: var(--white); }
.cookies-reject { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.cookies-reject:hover { color: var(--black); }
.cookies-reset { height: 28px; color: var(--black); border-color: rgba(7, 7, 7, 0.5); vertical-align: middle; }

/* ============ TABLETA ============ */
@media (max-width: 1023px) {
  .header-nav { display: none; }
  .menu-btn { display: inline-block; }
  .vh-copy .about-heading { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .home-about-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-big { font-size: 36px; }
  .home-blog-list { grid-template-columns: 1fr; }
  .home-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-columns-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-card { grid-template-columns: 1fr; }
  .post-body .offices-list { grid-template-columns: 1fr; }
  .lead { padding: 32px 28px 36px; }
}

/* ============ MÓVIL ============ */
@media (max-width: 767px) {
  .home-about, .home-posts, .home-faq, .home-contact { padding-block: 72px; }
  .home-posts { padding-top: 0; }
  .vh-copy .about-heading { font-size: 32px; }
  .hero-actions { margin-top: 26px; }
  .menu-inner { grid-template-columns: 1fr; gap: 8px; }
  .menu-list a { font-size: 20px; }
  .faq-item summary { font-size: 17px; padding: 18px 0; }
  .faq-item > p { padding-right: 0; font-size: 15px; }
  .lead { padding: 26px 20px 30px; border-radius: 14px; }
  .lead-row { grid-template-columns: 1fr; }
  .lead-submit { width: 100%; }
  .link-grid { grid-template-columns: 1fr; }
  .post-body .svc-links li { grid-template-columns: 1fr; gap: 6px; }
  .footer-columns-5 { grid-template-columns: 1fr 1fr; }
  .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .search-form { flex-direction: column; }
  .person-card, .author-box { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-sub, .menu, .link-arrow .arr, .faq-item summary i::before, .faq-item summary i::after { transition: none; }
}

/* Los campos del formulario y el buscador van siempre en claro (la raíz declara color-scheme: dark) */
.lead-form input, .lead-form textarea, .search-form input { color-scheme: light; }

/* Botones sobre fondo claro en las páginas interiores */
.page-actions .btn-cta { color: var(--black); border-color: rgba(7, 7, 7, 0.85); }
.page-actions .btn-cta:hover { background: var(--black); border-color: var(--black); color: var(--white); }
/* En la columna del artículo, los bloques de «qué incluye» van a dos columnas */
.post-body .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
