/* ================================================================
   ALICANTEEXPLORA — MODERN UI v93
   Capa visual de unificación sobre los módulos existentes.
   Objetivo: más limpio, sobrio, consistente y profesional sin
   alterar la arquitectura, CPTs, shortcodes ni contenidos.
================================================================ */

:root {
  --ax-bg: #f7f8fa;
  --ax-card: #ffffff;
  --ax-text: #172033;
  --ax-muted: #667085;
  --ax-border: #e7eaf0;
  --ax-primary: #ff7a1a;
  --ax-primary-dark: #e96708;
  --ax-blue: #0b3a67;
  --ax-soft-blue: #f1f6fb;
  --ax-green: #15915d;
  --ax-radius: 20px;
  --ax-radius-sm: 14px;
  --ax-shadow: 0 14px 38px rgba(15, 35, 70, .08);
  --ax-shadow-soft: 0 5px 18px rgba(15, 35, 70, .055);
  --ax-shadow-hover: 0 14px 32px rgba(15, 35, 70, .10);
  --ax-content: 1180px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ax-bg);
  color: var(--ax-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255, 122, 26, .20); color: #101828; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(255, 122, 26, .34);
  outline-offset: 3px;
}

/* ================================================================
   HEADER — blanco, ligero y más editorial
================================================================ */
.ax-header {
  --ax-header-h: 82px;
  padding: 10px 0;
  background: rgba(247, 248, 250, .86);
  border-bottom: 1px solid rgba(231, 234, 240, .75);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.ax-header.is-scrolled { padding: 7px 0; }
.ax-header-inner {
  max-width: var(--ax-content);
  width: calc(100% - 32px);
  height: 62px;
  gap: 24px;
  padding: 0 10px 0 20px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--ax-border);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(15, 35, 70, .055);
}
.ax-header.is-scrolled .ax-header-inner {
  height: 58px;
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 8px 26px rgba(15, 35, 70, .075);
}
.ax-logo {
  color: var(--ax-blue);
  font-size: 24px;
  letter-spacing: -.055em;
}
.ax-logo span { color: var(--ax-primary); }
.ax-nav-list > li > a {
  color: #3e4a5d;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 11px;
}
.ax-nav-list > li > a:hover,
.ax-nav-list > li.current-menu-item > a,
.ax-nav-list > li.current-menu-ancestor > a {
  background: #f5f7fa;
  color: var(--ax-blue);
}
.ax-nav-list .sub-menu {
  border-color: var(--ax-border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15,35,70,.10);
}
.ax-header-cta,
.ax-mobile-cta {
  border-radius: 10px;
  background: var(--ax-primary);
  box-shadow: none;
}
.ax-header-cta:hover,
.ax-mobile-cta:hover { background: var(--ax-primary-dark); }
.ax-header-mineg {
  border: 1px solid #dce6ef;
  background: var(--ax-soft-blue);
  border-radius: 10px;
}
.ax-hamburger {
  border-color: var(--ax-border);
  background: #f8fafc;
}
.ax-hamburger span { background: var(--ax-blue); }
.ax-mobile-menu {
  top: var(--ax-header-h);
  background: #fff;
  border-top-color: var(--ax-border);
}

/* ================================================================
   FOOTER — mismo lenguaje, menos pesado
================================================================ */
.ax-footer {
  margin-top: 88px;
  padding-top: 58px;
  background: #0d2944;
  border-radius: 28px 28px 0 0;
}
.ax-footer-inner {
  max-width: var(--ax-content);
  gap: 42px;
  padding-bottom: 42px;
}
.ax-footer-col h3,
.ax-footer-widget h3 { color: rgba(255,255,255,.52); letter-spacing: .07em; }
.ax-footer-links a,
.ax-footer-widget ul a { color: rgba(255,255,255,.72); }
.ax-footer-social-link {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255,255,255,.035);
}

/* ================================================================
   HOME — hero, navegación, estadísticas y secciones
   La portada contiene CSS inline. Se usa body.home para ganar
   especificidad sin alterar el contenido guardado en WordPress.
================================================================ */
body.home .axh-hero-shell {
  min-height: 610px;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(15,35,70,.11);
  background-position: center 48%;
}
body.home .axh-hero-shell::after {
  background: radial-gradient(ellipse 52% 35% at 78% 88%, rgba(255,122,26,.10), transparent 72%);
}
body.home .axh-live-strip { top: 22px; left: 24px; gap: 7px; }
body.home .axh-live-pill {
  padding: 7px 11px;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.17);
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
}
body.home .axh-hero-inner {
  padding: 54px 50px;
  max-width: 850px;
}
body.home .axh-kicker {
  padding: 7px 11px;
  margin-bottom: 16px;
  font-size: 10px;
  letter-spacing: .075em;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
body.home .axh-hero-h1 {
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 720px;
}
body.home .axh-hero-desc {
  margin-top: 18px;
  max-width: 650px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.76);
}
body.home .axh-search {
  max-width: 670px;
  margin-top: 26px;
  grid-template-columns: 1fr 160px;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
body.home .axh-search input {
  height: 52px;
  border-radius: 12px;
  background: #f6f7f9;
  font-size: 14px;
  font-weight: 600;
}
body.home .axh-search button {
  height: 52px;
  border-radius: 12px;
  background: var(--ax-primary);
  font-size: 14px;
}
body.home .axh-search button:hover { background: var(--ax-primary-dark); }

body.home .axh-quick { margin-top: -28px; }
body.home .axh-quick-grid {
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  border-color: var(--ax-border);
  box-shadow: 0 8px 24px rgba(15,35,70,.065);
}
body.home .axh-qitem {
  gap: 7px;
  padding: 12px 6px;
  border-radius: 13px;
  background: transparent;
  color: #344054;
}
body.home .axh-qitem:hover {
  background: #f7f9fb;
  color: var(--ax-blue);
  transform: none;
}
body.home .axh-qico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #ffead6;
  box-shadow: none;
  font-size: 19px;
}
body.home .axh-qitem strong { font-size: 11px; font-weight: 750; }

body.home .axh-stats-strip {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--ax-border);
  border-radius: 18px;
  box-shadow: var(--ax-shadow-soft);
}
body.home .axh-stat { border-right-color: var(--ax-border); }
body.home .axh-stat-num {
  font-size: 32px;
  color: var(--ax-blue);
  letter-spacing: -.045em;
}
body.home .axh-stat-label {
  color: var(--ax-muted);
  font-size: 10px;
  letter-spacing: .06em;
}

/* GenerateBlocks de la portada: espaciado y fondos más uniformes */
body.home :is(
  .gb-container-axh-cities-wrap,
  .gb-container-axh-dir-wrap,
  .gb-container-axh-hog-section,
  .gb-container-axh-news-wrap
) { padding-top: 68px !important; }
body.home :is(
  .gb-container-axh-eventos-wrap,
  .gb-container-axh-art-wrap,
  .gb-container-axh-seo-section
) {
  padding-top: 68px !important;
  padding-bottom: 68px !important;
  background: #f3f5f8 !important;
}
body.home .gb-container-axh-news-wrap { padding-bottom: 68px !important; }

body.home :is(
  .gb-headline-axh-cities-label,
  .gb-headline-axh-dir-label,
  .gb-headline-axh-hog-label,
  .gb-headline-axh-art-label,
  .gb-headline-axh-news-label,
  .gb-headline-axh-cta-label
) {
  color: var(--ax-primary) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .095em !important;
}
body.home :is(
  .gb-headline-axh-cities-h2,
  .gb-headline-axh-dir-h2,
  .gb-headline-axh-hog-h2,
  .gb-headline-axh-art-h2,
  .gb-headline-axh-news-h2
) {
  color: var(--ax-text) !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  letter-spacing: -.045em !important;
  line-height: 1.08 !important;
}
body.home :is(
  .gb-headline-axh-cities-sub,
  .gb-headline-axh-dir-sub,
  .gb-headline-axh-hog-sub,
  .gb-headline-axh-art-sub,
  .gb-headline-axh-news-sub
) {
  color: var(--ax-muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

/* Cards de portada: una sola familia visual */
body.home :is(.axhome-city-card,.axhome-dir-card,.axhome-hog-card,.axhome-news-card,.axhome-art-card,.axeh-card) {
  border-radius: 18px;
  border-color: var(--ax-border);
  box-shadow: 0 5px 18px rgba(15,35,70,.055);
}
body.home :is(.axhome-city-card,.axhome-dir-card,.axhome-hog-card,.axhome-news-card,.axhome-art-card,.axeh-card):hover {
  transform: translateY(-2px);
  box-shadow: var(--ax-shadow-hover);
}
body.home .axhome-city-card { min-height: 310px; }
body.home .axhome-city-content { left: 20px; right: 20px; bottom: 20px; }
body.home .axhome-city-content h3 {
  font-size: 26px;
  letter-spacing: -.04em;
}
body.home .axhome-city-content p { color: rgba(255,255,255,.78); }
body.home .axhome-city-stats span {
  padding: 5px 9px;
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.17);
  font-size: 10px;
}
body.home .axhome-dir-img { height: 175px; }
body.home .axhome-hog-img { height: 180px; }
body.home .axhome-news-img { height: 170px; }
body.home .axhome-art-img { height: 190px; }
body.home :is(.axhome-dir-body,.axhome-hog-body,.axhome-news-body,.axhome-art-body) { padding: 17px 18px 18px; }
body.home :is(.axhome-dir-badge,.axhome-news-cat,.axhome-art-cat,.axhome-hog-tag,.axeh-card-tag) {
  background: #f6f8fa;
  border-color: var(--ax-border);
  color: var(--ax-blue);
}
body.home .axhome-vermas-link,
body.home .axeh-all {
  border-radius: 10px;
  padding: 9px 14px;
  box-shadow: none;
  background: #fff;
}
body.home .axeh-h2 {
  font-size: clamp(28px,3vw,38px);
  letter-spacing: -.045em;
}
body.home .axeh-label { color: var(--ax-primary); font-size: 10px; letter-spacing: .09em; }
body.home .axeh-card-img { height: 165px; }
body.home .axeh-card-date { border-radius: 8px; background: var(--ax-primary); }
body.home .axeh-card-body { padding: 16px; }

/* Hogueras: el lateral oscuro rompe el ritmo visual de la home. */
body.home .axh-side-news {
  background: #fff;
  color: var(--ax-text);
  border: 1px solid var(--ax-border);
  border-radius: 18px;
  box-shadow: var(--ax-shadow-soft);
  padding: 22px;
}
body.home .axh-side-news h3 { color: var(--ax-text); font-size: 20px; }
body.home .axh-side-news-item {
  background: #f7f9fb;
  border: 1px solid transparent;
  border-radius: 12px;
}
body.home .axh-side-news-item:hover { background: #fff; border-color: var(--ax-border); }
body.home .axh-side-news-item strong { color: var(--ax-text); }
body.home .axh-side-news-item small { color: var(--ax-muted); }

body.home .axh-seo-wrap {
  padding: 36px 38px;
  border-radius: 20px;
  border-color: var(--ax-border);
  box-shadow: var(--ax-shadow-soft);
}
body.home .axh-seo-box {
  background: #f7f9fb;
  border-color: var(--ax-border);
  border-radius: 15px;
  padding: 20px;
}
body.home .gb-container-axh-cta-final { background: #0d2944 !important; }
body.home .gb-headline-axh-cta-h2 {
  font-size: clamp(28px,3vw,36px) !important;
  letter-spacing: -.04em !important;
}
body.home :is(.gb-button-axh-cta-btn1,.gb-button-axh-cta-btn2) {
  border-radius: 11px !important;
  font-size: 13px !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}

/* ================================================================
   DIRECTORIO — continuidad con el nuevo sistema visual
================================================================ */
#axd-directorio { --axd-bg: var(--ax-bg); --axd-card: #fff; --axd-border: var(--ax-border); --axd-orange: var(--ax-primary); --axd-blue: var(--ax-blue); }
#axd-directorio .axd-hero-shell {
  min-height: 450px;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(15,35,70,.10);
}
#axd-directorio .axd-search-card {
  border-radius: 18px;
  border: 1px solid rgba(231,234,240,.9);
  box-shadow: 0 14px 38px rgba(0,0,0,.14);
}
#axd-directorio .axd-tipo-strip {
  border-radius: 18px;
  box-shadow: var(--ax-shadow-soft);
}
#axd-directorio .axd-tipo-item { border-radius: 12px; background: transparent; }
#axd-directorio .axd-tipo-item:hover { transform: none; background: #f6f8fa; }
#axd-directorio .axd-stats-bar {
  background: #fff;
  border: 1px solid var(--ax-border);
  border-radius: 18px;
  box-shadow: var(--ax-shadow-soft);
}
#axd-directorio .axd-stat-box { border-right-color: var(--ax-border); }
#axd-directorio .axd-stat-num { color: var(--ax-blue); font-size: 30px; letter-spacing: -.045em; }
#axd-directorio .axd-stat-lbl { color: var(--ax-muted); }
#axd-directorio :is(.axd-pilar,.axd-ciudad,.axd-negocio-card,.axd-seo,.axd-seo-link) {
  border-radius: 18px;
  border-color: var(--ax-border);
  box-shadow: 0 5px 18px rgba(15,35,70,.05);
}
#axd-directorio :is(.axd-pilar,.axd-ciudad,.axd-negocio-card,.axd-seo-link):hover {
  transform: translateY(-2px);
  box-shadow: var(--ax-shadow-hover);
}
#axd-directorio .axd-sec-h2 { letter-spacing: -.045em; }
#axd-directorio .axd-label { color: var(--ax-primary); letter-spacing: .09em; font-size: 10px; }
#axd-directorio .axd-link-all { border-radius: 10px; box-shadow: none; }
#axd-directorio .axd-cta { border-radius: 22px; }

/* ================================================================
   PÁGINAS DEL THEME — misma superficie, radios y sombras
================================================================ */
:where(.ax-category-page,.ax-single,.ax-lugar-single,.ax-playa-single,.ax-fg-single,.ax-ciudad,.axca-archive,.axexc-page,.axs-post) {
  background: var(--ax-bg);
  color: var(--ax-text);
}

/* Heroes: mantienen su identidad visual, pero comparten proporciones. */
:where(.ax-category-hero-card,.ax-hero-card,.axl-hero-card,.axp-hero-card,.ax-fg-hero-card,.ax-ciudad-hero-shell,.axca-hero-card,.axexc-hero,.axs-hero-shell) {
  border-radius: 24px !important;
  box-shadow: 0 12px 36px rgba(15,35,70,.095) !important;
}
.axs-hero-shell { min-height: 590px; }

/* Superficies recurrentes */
:where(
  .ax-card,.ax-side-card,.ax-mini-card,.ax-local-link-card,.ax-empty-card,
  .ax-contact-card,.ax-related-card,
  .axl-card,.axl-quick-card,.axl-rel-card,.axl-sb-card,
  .axp-card,.axp-quick-card,.axp-rel-card,.axp-sb-card,
  .ax-fg-card,.ax-fg-rel-card,.ax-fg-sb-card,.ax-fg-visit-card,
  .ax-ciudad-content-card,.ax-ciudad-imp-card,.ax-ciudad-map-card,.ax-ciudad-neg-card,.ax-ciudad-quick-card,.ax-ciudad-cat-card,
  .axca-post-card,.axca-sb-card,.axca-search-card,.axca-seo-card,.axca-topic-card,.axca-featured-side-card,
  .axexc-card,.axexc-destination,.axexc-editorial,.axexc-empty,.axexc-single,.axexc-offer
) {
  border-color: var(--ax-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 5px 18px rgba(15,35,70,.05) !important;
}
:where(
  .ax-card,.ax-related-card,.axl-rel-card,.axp-rel-card,.ax-fg-rel-card,
  .ax-ciudad-imp-card,.ax-ciudad-neg-card,.axca-post-card,.axca-topic-card,.axexc-card,.axexc-destination
):hover {
  box-shadow: var(--ax-shadow-hover) !important;
}

/* Botones y pills: menos redondeado extremo para aspecto más corporativo. */
:where(
  .ax-btn,.ax-btn-primary,.ax-hero-btn,.ax-contact-btn,
  .axl-btn,.axp-btn,.ax-fg-btn,.axca-btn,.axexc-card__cta,.axexc-book,.axexc-table__cta a
) { border-radius: 11px !important; }

/* Breadcrumbs y metadata más discretos */
:where(.ax-breadcrumb,.axl-breadcrumb,.axp-breadcrumb,.ax-fg-breadcrumb,.ax-ciudad-breadcrumb,.axca-breadcrumb,.axexc-breadcrumb) {
  color: var(--ax-muted) !important;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 980px) {
  .ax-header { --ax-header-h: 78px; padding: 8px 0; }
  .ax-header-inner { width: calc(100% - 24px); height: 60px; padding: 0 10px 0 16px; }
  .ax-footer { border-radius: 22px 22px 0 0; }

  body.home .axh-hero-shell { min-height: 560px; }
  body.home .axh-hero-inner { padding: 48px 36px; }
  body.home .axh-quick { margin-top: -20px; }
  body.home .axh-hog-split { gap: 18px; }
}

@media (max-width: 700px) {
  :root { --ax-radius: 16px; }
  .ax-header { --ax-header-h: 74px; }
  .ax-header-inner { width: calc(100% - 18px); height: 56px; border-radius: 13px; }
  .ax-logo { font-size: 21px; }
  .ax-header-cta { display: none; }
  .ax-footer { margin-top: 64px; padding-top: 44px; }

  body.home .axh-hero-shell {
    min-height: auto;
    border-radius: 18px;
  }
  body.home .axh-live-strip { left: 16px; right: 16px; top: 16px; gap: 5px; }
  body.home .axh-live-pill { padding: 6px 9px; font-size: 10px; }
  body.home .axh-hero-inner { padding: 96px 20px 24px; }
  body.home .axh-hero-h1 { font-size: clamp(42px,13vw,56px); line-height: .96; }
  body.home .axh-hero-desc { font-size: 14px; margin-top: 15px; }
  body.home .axh-search {
    grid-template-columns: 1fr;
    border-radius: 15px;
    margin-top: 22px;
  }
  body.home .axh-search input,
  body.home .axh-search button { height: 48px; }

  /* En móvil, acceso rápido horizontal: más aire y menos mini-columnas. */
  body.home .axh-quick { margin-top: 12px; overflow: visible; }
  body.home .axh-quick-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 108px;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    justify-content: start;
    padding: 6px;
  }
  body.home .axh-quick-grid::-webkit-scrollbar { display: none; }

  body.home .axh-stats-strip { padding: 14px; }
  body.home .axh-stats-grid { gap: 0; }
  body.home .axh-stat { padding: 12px 8px; }
  body.home .axh-stat:nth-child(2) { border-right: 0; }
  body.home .axh-stat:nth-child(-n+2) { border-bottom: 1px solid var(--ax-border); }
  body.home .axh-stat-num { font-size: 26px; }
  body.home .axh-stat-label { font-size: 9px; }

  body.home :is(
    .gb-container-axh-cities-wrap,
    .gb-container-axh-dir-wrap,
    .gb-container-axh-hog-section,
    .gb-container-axh-news-wrap,
    .gb-container-axh-eventos-wrap,
    .gb-container-axh-art-wrap,
    .gb-container-axh-seo-section
  ) { padding-top: 48px !important; }
  body.home :is(.gb-container-axh-eventos-wrap,.gb-container-axh-art-wrap,.gb-container-axh-seo-section,.gb-container-axh-news-wrap) { padding-bottom: 48px !important; }

  body.home .axhome-city-card { min-height: 250px; }
  body.home .axhome-city-content h3 { font-size: 24px; }
  body.home .axh-seo-wrap { padding: 26px 20px; border-radius: 17px; }
  body.home .axh-side-news { padding: 18px; }

  #axd-directorio .axd-hero-shell { border-radius: 18px; }
  #axd-directorio .axd-stats-bar { padding: 12px; }
  #axd-directorio .axd-stat-box { padding: 12px 8px; }

  :where(.ax-category-hero-card,.ax-hero-card,.axl-hero-card,.axp-hero-card,.ax-fg-hero-card,.ax-ciudad-hero-shell,.axca-hero-card,.axexc-hero,.axs-hero-shell) {
    border-radius: 18px !important;
  }
  .axs-hero-shell { min-height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
