/* Javierflor — header, navigation and footer */
.javierflor-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e9e9e9;
  position: relative;
  z-index: 1000;
}

.javierflor-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.javierflor-brand {
  flex: 0 0 auto;
}

.javierflor-brand .custom-logo {
  display: block;
  max-width: 190px;
  max-height: 58px;
  width: auto;
  height: auto;
}

.javierflor-site-title {
  display: inline-block;
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.javierflor-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.javierflor-nav ul,
.javierflor-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.javierflor-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.javierflor-menu > li {
  position: relative;
}

.javierflor-menu a {
  display: block;
  padding: 12px 13px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}

.javierflor-menu > li > a:hover,
.javierflor-menu > li.current-menu-item > a,
.javierflor-menu > li.current-menu-parent > a,
.javierflor-menu > li.current_page_parent > a,
.javierflor-menu > li.current-menu-ancestor > a {
  color: #176b5b;
  background: #f3f8f6;
}

.javierflor-menu .menu-item-has-children > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 7px;
  font-size: 11px;
}

.javierflor-menu .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 245px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.javierflor-menu .menu-item-has-children:hover > .sub-menu,
.javierflor-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.javierflor-menu .sub-menu a {
  padding: 10px 12px;
  white-space: normal;
}

.javierflor-menu .sub-menu a:hover,
.javierflor-menu .sub-menu .current-menu-item > a {
  background: #f3f8f6;
  color: #176b5b;
}

.javierflor-footer {
  margin-top: 40px;
  padding: 24px 20px;
  border-top: 1px solid #e9e9e9;
  background: #ffffff;
}

.javierflor-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  text-align: center;
}

.javierflor-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 800px) {
  .javierflor-header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
    gap: 14px;
    align-items: center;
  }

  .javierflor-brand .custom-logo {
    max-width: 145px;
    max-height: 48px;
  }

  .javierflor-site-title {
    font-size: 20px;
  }

  .javierflor-nav {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .javierflor-nav::-webkit-scrollbar {
    display: none;
  }

  .javierflor-menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    min-width: max-content;
  }

  .javierflor-menu a {
    padding: 10px 9px;
    font-size: 14px;
  }

  .javierflor-menu .sub-menu {
    position: fixed;
    left: 12px;
    top: 68px;
    min-width: 230px;
  }
}

@media (max-width: 520px) {
  .javierflor-header-inner {
    width: calc(100% - 16px);
    gap: 8px;
  }

  .javierflor-brand .custom-logo {
    max-width: 115px;
  }

  .javierflor-site-title {
    font-size: 18px;
  }

  .javierflor-menu a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
}

/* Pulido visual del sitio Javierflor */
:root {
  --jf-ink: #20374a;
  --jf-blue: #3776c2;
  --jf-blue-dark: #285f9f;
  --jf-mist: #f0f7ff;
  --jf-sage: #e8f1ed;
  --jf-muted: #5b6b78;
  --jf-line: #dfe8ef;
  --jf-radius: 22px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--jf-ink);
  background: #fbfdff;
  font-family: "DM Sans", "Nunito Sans", sans-serif;
  line-height: 1.65;
}
a { transition: color .18s ease, background-color .18s ease, transform .18s ease; }
:focus-visible {
  outline: 3px solid #5ec6f2;
  outline-offset: 3px;
}

.javierflor-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(32,55,74,.09);
  box-shadow: 0 5px 24px rgba(32,55,74,.06);
  backdrop-filter: blur(14px);
}
body.admin-bar .javierflor-header { top: 32px; }
.javierflor-header-inner {
  width: min(1200px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.javierflor-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--jf-ink);
  text-decoration: none;
}
.javierflor-brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(32,55,74,.16);
}
.javierflor-brand-mark--text {
  display: grid;
  place-items: center;
  color: #f0f7ff;
  background: var(--jf-ink);
  font-size: 16px;
  font-weight: 800;
}
.javierflor-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.javierflor-brand-name {
  color: var(--jf-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.javierflor-brand-description {
  margin-top: 5px;
  color: var(--jf-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.javierflor-navigation { flex: 1 1 auto; }
.javierflor-navigation > summary { display: none; }
.javierflor-nav {
  display: flex;
  justify-content: flex-end;
}
.javierflor-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.javierflor-menu > li { position: relative; }
.javierflor-menu a {
  display: block;
  padding: 11px 13px;
  border-radius: 999px;
  color: var(--jf-ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.javierflor-menu > li > a:hover,
.javierflor-menu > li.current-menu-item > a,
.javierflor-menu > li.current-menu-parent > a,
.javierflor-menu > li.current_page_parent > a,
.javierflor-menu > li.current-menu-ancestor > a {
  color: var(--jf-blue-dark);
  background: var(--jf-mist);
}
.javierflor-menu > li:last-child > a {
  margin-left: 7px;
  padding: 12px 19px;
  color: #fff;
  background: var(--jf-blue);
  box-shadow: 0 7px 18px rgba(55,118,194,.22);
}
.javierflor-menu > li:last-child > a:hover {
  color: #fff;
  background: var(--jf-blue-dark);
  transform: translateY(-1px);
}
.javierflor-menu .menu-item-has-children > a::after {
  content: "⌄";
  display: inline-block;
  margin-left: 7px;
  font-size: 13px;
  line-height: 1;
}
.javierflor-menu .sub-menu {
  top: calc(100% + 8px);
  min-width: 260px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--jf-line);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(32,55,74,.14);
}
.javierflor-menu .sub-menu a {
  padding: 11px 13px;
  white-space: normal;
}
.javierflor-menu .sub-menu a:hover,
.javierflor-menu .sub-menu .current-menu-item > a {
  color: var(--jf-blue-dark);
  background: var(--jf-mist);
}

.elementor .elementor-heading-title {
  color: var(--jf-ink);
  letter-spacing: -.035em;
}
.elementor .elementor-widget-text-editor,
.elementor .elementor-widget-text-editor p {
  color: var(--jf-muted);
  line-height: 1.75;
}
.elementor .elementor-widget-button .elementor-button {
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--jf-blue);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(55,118,194,.22);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.elementor .elementor-widget-button .elementor-button:hover {
  background: var(--jf-blue-dark);
  box-shadow: 0 14px 28px rgba(55,118,194,.28);
  transform: translateY(-2px);
}
.elementor .e-con { scroll-margin-top: 110px; }
.elementor-6 .elementor-heading-title { line-height: 1.12; }
.elementor-6 .elementor-element.hostinger-ai-background-image {
  overflow: hidden;
  border-radius: 0 0 38px 38px;
}
.elementor-6 .hostinger-ai-our-services-4 .e-con-child {
  border-radius: var(--jf-radius);
}
.elementor-6 .hostinger-ai-service-image img,
.elementor-8 .hostinger-ai-image img {
  display: block;
  width: 100%;
  border-radius: var(--jf-radius);
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(32,55,74,.14);
}
.elementor-8 .hostinger-ai-image img { min-height: 280px; }
.elementor-8 .hostinger-ai-about-us-3 .elementor-element-11cd716 .elementor-button {
  margin-top: 12px;
}
.elementor-8 .hostinger-ai-resume-2,
.elementor-8 .hostinger-ai-about-us-3 {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.javierflor-footer {
  margin-top: 68px;
  padding: 38px 24px 22px;
  color: #eaf3fa;
  background: #20374a;
  border: 0;
}
.javierflor-footer-inner { width: min(1200px, 100%); }
.javierflor-footer-main,
.javierflor-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.javierflor-footer-main { padding-bottom: 28px; }
.javierflor-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.javierflor-footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.javierflor-footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.javierflor-footer-brand strong { color: #fff; font-size: 17px; }
.javierflor-footer-brand span { color: #c2d1de; font-size: 13px; }
.javierflor-footer-cta {
  display: inline-flex;
  padding: 12px 18px;
  color: #20374a;
  background: #f0f7ff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.javierflor-footer-cta:hover { color: #20374a; background: #fff; transform: translateY(-1px); }
.javierflor-footer-bottom {
  padding-top: 17px;
  border-top: 1px solid rgba(240,247,255,.18);
}
.javierflor-footer-bottom p { margin: 0; color: #c2d1de; font-size: 13px; }
.javierflor-footer-bottom a { color: #eaf3fa; font-size: 13px; text-decoration: none; }
.javierflor-footer-bottom a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .javierflor-header-inner { min-height: 76px; width: min(100% - 32px, 1200px); }
  .javierflor-brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .javierflor-brand-name { font-size: 18px; }
  .javierflor-menu a { padding: 10px 10px; font-size: 13px; }
}
@media (max-width: 760px) {
  body.admin-bar .javierflor-header { top: 46px; }
  .javierflor-header-inner {
    width: calc(100% - 28px);
    min-height: 74px;
    gap: 12px;
  }
  .javierflor-brand-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
  .javierflor-brand-name { font-size: 18px; }
  .javierflor-brand-description { font-size: 9px; }
  .javierflor-navigation { position: relative; flex: 0 0 auto; }
  .javierflor-navigation > summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    color: var(--jf-ink);
    background: var(--jf-mist);
    border: 1px solid var(--jf-line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
  }
  .javierflor-navigation > summary::-webkit-details-marker { display: none; }
  .javierflor-navigation > summary svg { width: 19px; height: 19px; }
  .javierflor-navigation[open] > summary { color: #fff; background: var(--jf-ink); border-color: var(--jf-ink); }
  .javierflor-navigation .javierflor-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: block;
    width: min(340px, calc(100vw - 28px));
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--jf-line);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(32,55,74,.18);
  }
  .javierflor-navigation:not([open]) .javierflor-nav { display: none; }
  .javierflor-menu,
  .javierflor-menu > li { display: block; width: 100%; }
  .javierflor-menu a {
    padding: 12px 13px;
    white-space: normal;
  }
  .javierflor-menu > li:last-child > a { margin: 7px 0 0; text-align: center; }
  .javierflor-menu .sub-menu {
    position: static;
    min-width: 0;
    max-height: none;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .javierflor-menu .sub-menu a { font-size: 13px; }
  .javierflor-footer-main,
  .javierflor-footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* Portada: títulos y texto legibles sobre la imagen oscura */
.elementor-6 .hostinger-ai-background-image .elementor-heading-title,
.elementor-6 .hostinger-ai-background-image .elementor-widget-text-editor,
.elementor-6 .hostinger-ai-background-image .elementor-widget-text-editor p {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(10, 26, 40, .38);
}
.elementor-6 .hostinger-ai-background-image .elementor-button {
  color: #fff !important;
  background: var(--jf-blue) !important;
}

/* Retrato temporal en Sobre mí, con autoría visible */
.elementor-8 .elementor-element-534449b {
  display: flex !important;
  justify-content: center;
}
.elementor-8 .elementor-element-639dc81 {
  position: relative;
  width: min(100%, 360px);
  overflow: hidden;
  border-radius: 26px;
}
.elementor-8 .elementor-element-639dc81 img {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 26px;
}
.elementor-8 .elementor-element-a59b6bc { display: none !important; }
.javierflor-placeholder-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  color: #fff;
  background: rgba(24,43,59,.88);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  backdrop-filter: blur(8px);
}

/* Cabecera y pie de página usados en las páginas interiores */
.javierflor-fse-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--jf-line);
  box-shadow: 0 5px 24px rgba(32,55,74,.07);
  backdrop-filter: blur(14px);
}
body.admin-bar .javierflor-fse-header { top: 32px; }
.javierflor-fse-header-inner {
  width: min(1200px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto !important;
  align-items: center !important;
  gap: 24px !important;
}
.javierflor-fse-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  color: var(--jf-ink);
  text-decoration: none;
}
.javierflor-fse-brand img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(32,55,74,.16);
}
.javierflor-fse-brand span { display: flex; flex-direction: column; gap: 4px; line-height: 1.15; }
.javierflor-fse-brand strong { color: var(--jf-ink); font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.javierflor-fse-brand small { color: var(--jf-muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.javierflor-fse-nav { margin-left: auto; }
.javierflor-fse-nav .wp-block-navigation__container { gap: 5px; }
.javierflor-fse-nav .wp-block-navigation-item__content {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--jf-ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.javierflor-fse-nav .wp-block-navigation-item__content:hover,
.javierflor-fse-nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--jf-blue-dark);
  background: var(--jf-mist);
}
.javierflor-fse-nav .wp-block-navigation__container > li:nth-child(4) > .wp-block-navigation-item__content {
  padding: 11px 17px;
  color: #fff;
  background: var(--jf-blue);
  box-shadow: 0 7px 18px rgba(55,118,194,.22);
}
.javierflor-fse-nav .wp-block-navigation__responsive-container-open {
  padding: 10px 13px;
  border: 1px solid var(--jf-line);
  border-radius: 999px;
  color: var(--jf-ink);
  background: var(--jf-mist);
}
.javierflor-fse-nav .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  max-height: 100dvh !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow-y: auto !important;
  padding: 78px 22px 24px !important;
  color: var(--jf-ink);
  background: #fff;
}
.javierflor-fse-nav .wp-block-navigation__responsive-container-close {
  position: fixed;
  top: 56px;
  right: 20px;
  z-index: 2;
  color: var(--jf-ink);
}
.javierflor-fse-nav .wp-block-navigation__responsive-container-content { width: 100%; }
.javierflor-fse-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: flex;
  width: 100% !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px;
}
.javierflor-fse-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
  align-self: stretch;
}
.javierflor-fse-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  box-sizing: border-box;
  text-align: left;
}
.javierflor-fse-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  position: static !important;
  width: 100%;
  margin: 0;
  padding: 0 0 0 12px;
  border: 0;
  box-shadow: none;
}
.javierflor-fse-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 13px 15px;
}
.javierflor-fse-footer {
  margin-top: 68px;
  padding: 38px 24px 22px;
  color: #eaf3fa;
  background: var(--jf-ink);
}
.javierflor-fse-footer-inner { width: min(1200px, 100%); margin: 0 auto; }
.javierflor-fse-footer-main,
.javierflor-fse-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.javierflor-fse-footer-main { padding-bottom: 28px; }
.javierflor-fse-footer-brand img { width: 40px; height: 40px; border-radius: 12px; }
.javierflor-fse-footer-brand strong { color: #fff; }
.javierflor-fse-footer-brand small { color: #c2d1de; text-transform: none; letter-spacing: 0; font-weight: 500; }
.javierflor-fse-footer-cta {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--jf-ink);
  background: var(--jf-mist);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.javierflor-fse-footer-cta:hover { color: var(--jf-ink); background: #fff; transform: translateY(-1px); }
.javierflor-fse-footer-bottom { padding-top: 17px; border-top: 1px solid rgba(240,247,255,.18); }
.javierflor-fse-footer-bottom p { margin: 0; color: #c2d1de; font-size: 13px; }
.javierflor-fse-footer-bottom a { color: #eaf3fa; font-size: 13px; text-decoration: none; }
.javierflor-fse-footer-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 782px) {
  body.admin-bar .javierflor-fse-header { top: 46px; }
  .javierflor-fse-header-inner { width: calc(100% - 28px); min-height: 72px; flex-wrap: nowrap !important; gap: 10px !important; }
  .javierflor-fse-brand img { width: 42px; height: 42px; border-radius: 13px; }
  .javierflor-fse-brand strong { font-size: 17px; }
  .javierflor-fse-brand small { font-size: 9px; }
  .javierflor-fse-nav { margin-left: auto; }
  .javierflor-fse-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; }
  .javierflor-fse-footer-main,
  .javierflor-fse-footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* Portada: imagen real de un negocio local, más cercana a sus clientes */
.elementor-6 .hostinger-ai-background-image {
  position: relative;
  background-image: linear-gradient(115deg, rgba(19,39,55,.38), rgba(19,39,55,.30) 52%, rgba(19,39,55,.48)), url('https://javierflor.com/wp-content/uploads/2026/10/Calle-comercial-europea-para-portada-de-SEO-local.jpg') !important;
  background-position: center, center 50% !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat, no-repeat !important;
}
.elementor-6 .hostinger-ai-background-image::after {
  content: 'Foto: Emine Nur C. / Unsplash';
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(16,34,49,.72);
  font-size: 10px;
  line-height: 1.3;
}
