/* ==========================================================================
   ESTILOS PRINCIPALES - DIRECTORIO JERICÓ
   ========================================================================== */

/* CONTENEDORES Y CAJAS
  Estilos base para contenedores de contenido y variantes de padding
 */
.jerico-box {
    box-sizing: border-box !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: var(--jerico-text-color, #333) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    padding: 30px !important;
}

/* Contenedor especial para horarios */
.jerico-schedule-box {
    box-sizing: border-box !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    padding: 20px !important;
}

/* Variantes de padding para cajas */
.jerico-box--padding-large { padding: 40px !important; }
.jerico-box--padding-medium { padding: 30px !important; }
.jerico-box--padding-small { padding: 25px !important; }

/* ==========================================================================
   SECCIÓN HERO (CABECERA)
   ========================================================================== */

/**
 * Estructura base del hero con altura mínima y padding
 */
.jerico-hero-cover {
    min-height: 350px;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Evita el scroll horizontal que puede provocar alignfull en GeneratePress */
body.jerico-directory-page {
    background: #f8fafc;
    overflow-x: clip;
}

body.jerico-directory-page .site-content,
body.jerico-directory-page .content-area,
body.jerico-directory-page .site-main,
body.jerico-directory-page .entry-content {
    background: transparent;
}

body.jerico-directory-page .entry-content > * {
    margin-bottom: 0;
}

body.jerico-directory-page .entry-content {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
}

/* Overlay con opacidad configurable via variable CSS */
body.jerico-directory-page .wp-block-cover.jerico-hero-cover .wp-block-cover__background {
    background-color: #000 !important;
    opacity: calc(var(--jerico-hero-opacity, 70) / 100) !important; 
}
/* Estilo para el título principal del hero */
.jerico-hero-title {
    margin: 0 !important;
    font-size: clamp(1.8rem, 3vw, 3.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em;
    color: var(--jerico-hero-title-color, var(--jerico-primary-color, #007cba)) !important;
}

.jerico-hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--jerico-hero-bg-color, #ffffff) !important;
    box-shadow: none !important;
    padding: 56px 24px 48px !important;
}

body.jerico-business-page .jerico-hero-panel {
    background: var(--jerico-hero-bg-color, #ffffff) !important;
}

body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type {
    background: var(--jerico-hero-bg-color, #ffffff) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 56px 24px 48px !important;
}

.jerico-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.04), transparent 60%);
    pointer-events: none;
}

body.jerico-business-page .jerico-hero-panel::before {
    background: none !important;
}

body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type::before {
    background: none !important;
}

.jerico-hero-panel__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

body.jerico-business-page .jerico-hero-panel__inner {
    color: var(--jerico-hero-text-color, var(--jerico-text-color, #333)) !important;
}

body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type,
body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type p {
    color: var(--jerico-hero-text-color, var(--jerico-text-color, #333)) !important;
}

body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type > .wp-block-group__inner-container,
body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type > .is-layout-constrained,
body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type > .is-layout-flow {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.jerico-hero-kicker,
.jerico-hero-summary {
    margin: 0;
    color: var(--jerico-hero-text-color, var(--jerico-text-color, #333)) !important;
}

.jerico-hero-kicker {
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.62;
}

.jerico-hero-summary {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.78;
}

.jerico-hero-summary__rating {
    font-weight: 600;
}

body.jerico-business-page .jerico-hero-title,
body.jerico-business-page .jerico-hero-panel h1 {
    color: var(--jerico-hero-title-color, var(--jerico-primary-color, #007cba)) !important;
}

body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type .jerico-hero-title,
body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-of-type h1 {
    color: var(--jerico-hero-title-color, var(--jerico-primary-color, #007cba)) !important;
}

body.jerico-business-page .entry-content > .wp-block-group.alignfull:first-child h1 {
    margin-bottom: 14px !important;
}

/* ==========================================================================
   TIPOGRAFÍA Y TEXTOS
   ========================================================================== */

/* Texto introductorio */
.jerico-text--intro {
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: var(--jerico-text-color, #333) !important;
}

/* Texto para reseñas */
.jerico-text--reviews {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-top: 15px !important;
    color: var(--jerico-text-color, #333) !important;
}

/* Texto de conclusión */
.jerico-text--conclusion {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: var(--jerico-text-color, #333) !important;
}

/* Texto para sección de relacionados */
.jerico-text--related-intro {
    font-size: 16px !important;
    margin-bottom: 25px !important;
    color: var(--jerico-text-color, #333) !important;
}

/* Subtítulo para mapas */
.jerico-text--map-subtitle {
    font-size: 16px !important;
    margin-bottom: 30px !important;
    color: var(--jerico-text-color, #333) !important;
}

/* ==========================================================================
   ENCABEZADOS Y TÍTULOS
   ========================================================================== */

/* Estilo base para todos los encabezados */
.jerico-heading {
    margin: 0 !important;
    color: var(--jerico-text-color, #333) !important;
}

/* Variantes específicas para diferentes secciones */
.jerico-heading--contact { font-size: clamp(1.6rem, 2.5vw, 2.25rem) !important; font-weight: 700 !important; }
.jerico-heading--reviews { font-size: 1.55rem !important; font-weight: 700 !important; }
.jerico-heading--schedule { font-size: 1.45rem !important; font-weight: 700 !important; }
.jerico-heading--map { font-size: clamp(1.9rem, 3vw, 2.6rem) !important; font-weight: 700 !important; }
.jerico-heading--related { font-size: clamp(1.6rem, 2.5vw, 2.2rem) !important; font-weight: 700 !important; }

.jerico-card--contact .jerico-heading--contact {
    margin-bottom: 12px !important;
}

.jerico-card--schedule .jerico-heading--schedule {
    margin-bottom: 0 !important;
}

.jerico-card--schedule .jerico-section-heading {
    margin-bottom: 8px;
}

.jerico-card--reviews .jerico-heading--reviews {
    margin-bottom: 16px !important;
}

.jerico-card--map .jerico-section-heading {
    margin-bottom: 22px;
}

.jerico-card--map .jerico-heading--map {
    margin-bottom: 18px !important;
}

.jerico-map-iframe-wrapper {
    margin-top: 18px;
}

.jerico-section-heading {
    margin-bottom: 22px;
}

.jerico-section-heading--center {
    text-align: center;
}

.jerico-section-heading__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--jerico-primary-color, #007cba);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ==========================================================================
   COMPONENTES ESPECÍFICOS
   ========================================================================== */

/* Lista de contactos */
.jerico-contact-list {
    display: grid;
    gap: 12px;
    margin: 0 !important;
    padding-left: 0 !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: var(--jerico-text-color, #333) !important;
    list-style: none !important;
}

.jerico-contact-list li {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.jerico-contact-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

/* Imagen en sidebar */
.jerico-image-sidebar {
    border-radius: 12px !important;
}

/* Contenedor para horarios */
.jerico-schedule-table-wrapper {
    margin-top: 14px;
    padding: 0;
    border-radius: 6px;
    color: var(--jerico-text-color, #333);
}

.jerico-card--schedule {
    position: sticky;
    top: 24px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

/* Botón primario */
.jerico-btn-primary .wp-block-button__link {
    background-color: var(--jerico-primary-color, #007cba) !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    padding: 14px 24px !important;
    font-weight: 600 !important;
}

/* Botón secundario */
.jerico-btn-secondary .wp-block-button__link {
    background-color: var(--jerico-secondary-color, #6c757d) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
}

.jerico-contact-actions {
    margin-top: 28px;
}

/* ==========================================================================
   DISPOSICIÓN Y COLUMNAS
   ========================================================================== */

/* Columnas principales */
.jerico-main-columns {
    gap: 24px !important;
}

body.jerico-business-page .jerico-main-columns,
.jerico-main-layout {
    align-items: flex-start !important;
}

.jerico-main-layout--top {
    margin-bottom: 0 !important;
}

body.jerico-business-page .jerico-main-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 20px !important;
}

body.jerico-business-page .jerico-main-columns > .wp-block-column {
    margin: 0 !important;
}

body.jerico-business-page .jerico-main-columns > .wp-block-column:first-child,
body.jerico-business-page .jerico-main-columns > .wp-block-column:last-child {
    display: contents;
}

body.jerico-business-page .jerico-main-columns > .wp-block-column:first-child > :first-child {
    grid-column: 1;
    grid-row: 1;
}

body.jerico-business-page .jerico-main-columns > .wp-block-column:last-child > :first-child {
    grid-column: 2;
    grid-row: 1;
}

body.jerico-business-page .jerico-main-columns > .wp-block-column:first-child > :not(:first-child) {
    grid-column: 1 / -1;
    grid-row: 2;
}

.jerico-card {
    position: relative;
}

.jerico-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--jerico-primary-color, #007cba);
    opacity: 0.9;
}

.jerico-card--contact,
.jerico-card--reviews,
.jerico-card--schedule,
.jerico-card--map,
.jerico-card--related {
    overflow: hidden;
}

.jerico-card--reviews {
    max-width: 100%;
}

/* ==========================================================================
   TABLA DE HORARIOS
   ========================================================================== */

.jerico-schedule-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 13px;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    table-layout: fixed;
}

.jerico-schedule-table tr {
    border-bottom: 1px solid #f1f3f4;
}

.jerico-schedule-table td {
    padding: 12px 14px;
    color: #6b7280;
    background-color: #ffffff;
}

/* Columna especial para días */
.jerico-schedule-table td.day-column {
    font-weight: 600;
    color: #374151;
    width: 40%;
    background-color: #f8f9fa;
    white-space: nowrap;
}

/* ==========================================================================
   COMPONENTE DE MAPA
   ========================================================================== */

.jerico-map-container {
    margin: 8px 0 0;
}

/* Contenedor del iframe del mapa */
.jerico-map-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.jerico-map-iframe-wrapper iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

/* Contenedor para botones del mapa */
.jerico-map-buttons {
    text-align: center;
    margin-top: 18px;
}

/* Estilo base para botones de mapa */
.jerico-map-button {
    display: inline-block;
    background-color: var(--jerico-primary-color, #007cba);
    color: #ffffff !important;
    padding: 13px 22px;
    margin: 5px;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    font-weight: 600;
    transition: background-color 0.3s;
}

.jerico-map-button:hover {
    opacity: 0.9;
}

/* ==========================================================================
   AJUSTES ESPECÍFICOS DE DISEÑO
   ========================================================================== */

/* Posicionamiento de imagen en hero */
.jerico-hero-cover .wp-block-cover__image-background {
    object-position: 50% 50%;
}

/* Overlay del hero con opacidad variable */
.jerico-hero-cover .wp-block-cover__background {
    background-color: #000 !important;
    opacity: calc(var(--jerico-hero-opacity, 70) / 100) !important;
}

/* Ajuste de márgenes para página de negocio */
.jerico-business-page .entry-content {
    margin-top: -40px !important;
}

.jerico-business-page .inside-article {
    padding-top: 0 !important;
}

.jerico-business-page .entry-content > .wp-block-spacer {
    display: none;
}

.jerico-business-page .entry-content > .wp-block-columns,
.jerico-business-page .entry-content > .wp-block-group:not(.alignfull) {
    margin-top: 28px;
}

.jerico-review-copy {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--jerico-text-color, #333);
    max-width: 78ch;
}

.jerico-reviews-content,
.jerico-card--reviews .jerico-heading--reviews + * {
    margin-top: 16px;
}

body.jerico-business-page .jerico-card--reviews {
    padding-top: 32px !important;
}

.jerico-review-copy p:last-child {
    margin-bottom: 0;
}

/* Ocultar título en páginas específicas */
.jerico-business-page .entry-title {
    display: none !important;
}

/* Ocultar imagen destacada en páginas del directorio */
.jerico-directory-page .featured-image,
.jerico-directory-page .wp-block-post-featured-image,
.jerico-directory-page .post-image,
.jerico-directory-page .entry-featured {
    display: none !important;
}

/* ==========================================================================
   SHORTCODES PERSONALIZADOS
   ========================================================================== */

/* --------------------------
   SHORTCODE: [cluster_ciudades]
   -------------------------- */

/* Grid para mostrar municipios */
.jerico-municipios-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0 0;
}

/* Tarjeta individual de municipio */
.municipio-card {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.municipio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* Contenedor de imagen */
.municipio-image {
    height: 170px;
    overflow: hidden;
}

.municipio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.municipio-card:hover .municipio-image img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta */
.municipio-content {
    gap: 12px;
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.municipio-content h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}

.municipio-content h3 a {
    color: var(--jerico-link-color, #007cba);
    text-decoration: none;
}

.municipio-content h3 a:hover {
    text-decoration: underline;
}

/* Contador de elementos */
.municipio-count {
    color: var(--jerico-text-color, #333);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    opacity: 0.78;
}

/* Botón de acción */
.municipio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--jerico-primary-color, #007cba);
    color: white !important;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 44px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transition: background 0.2s;
    text-align: center;
}

.municipio-btn:hover {
    opacity: 0.92;
}

/* --------------------------
   SHORTCODE: [cluster]
   -------------------------- */

/* Grid para clusters */
.jerico-cluster-grid { 
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0 0;
}

/* Item individual de cluster */
.cluster-item {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.cluster-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

/* Imagen del cluster */
.cluster-image {
    height: 150px;
    overflow: hidden;
}

.cluster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cluster-item:hover .cluster-image img {
    transform: scale(1.05);
}

/* Contenido del cluster */
.cluster-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px 22px;
}

.cluster-content h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--jerico-link-color, #007cba); 
}

.cluster-meta {
    display: grid;
    gap: 6px;
}

.cluster-footer {
    display: flex;
    margin-top: auto;
    padding-top: 4px;
}

body.jerico-directory-page:not(.jerico-business-page) .entry-content > h1 {
    max-width: 16ch;
    margin: 28px 0 16px !important;
    color: var(--jerico-text-color, #333);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.jerico-directory-hero {
    position: relative;
    margin: -40px calc(50% - 50vw) 28px;
    padding: 56px 20px 44px;
    background: var(--jerico-hero-bg-color, #ffffff);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.jerico-directory-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0));
    pointer-events: none;
}

.jerico-directory-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 18px;
    text-align: center;
}

.jerico-directory-hero h1 {
    max-width: none;
    margin: 0 !important;
    text-align: center;
}

.jerico-directory-hero__meta {
    max-width: 60ch;
    margin: 16px 0 0;
    margin-left: auto;
    margin-right: auto;
    color: var(--jerico-hero-text-color, var(--jerico-text-color, #333));
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
}

body.jerico-directory-page:not(.jerico-business-page) .entry-content > :first-child:not(.jerico-directory-hero) + * {
    margin-top: 0 !important;
}

.jerico-directory-intro,
.jerico-directory-section {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.jerico-directory-intro {
    margin-top: 28px;
    margin-bottom: 28px;
}

.jerico-directory-intro p {
    max-width: 78ch;
    color: var(--jerico-text-color, #333);
    line-height: 1.85;
    opacity: 0.92;
}

.jerico-directory-section--content {
    margin-top: 44px;
    padding: 34px 36px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.jerico-directory-page:not(.jerico-business-page) .entry-content > p,
body.jerico-directory-page:not(.jerico-business-page) .entry-content > div:not(.jerico-municipios-grid):not(.jerico-cluster-grid):not(.jerico-faqs) > p {
    max-width: 78ch;
    color: var(--jerico-text-color, #333);
    line-height: 1.85;
    opacity: 0.92;
}

body.jerico-directory-page:not(.jerico-business-page) .entry-content > h2,
body.jerico-directory-page:not(.jerico-business-page) .jerico-faqs > h2 {
    margin: 44px 0 18px !important;
    color: var(--jerico-text-color, #333);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

body.jerico-directory-page:not(.jerico-business-page) .entry-content > [class*="jerico-"] + h2 {
    margin-top: 56px !important;
}

.jerico-faqs {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.jerico-faq-item {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.jerico-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
}

.jerico-faq-item summary::-webkit-details-marker {
    display: none;
}

.jerico-faq-question {
    color: var(--jerico-text-color, #333);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.jerico-faq-icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.jerico-faq-icon::before,
.jerico-faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--jerico-primary-color, #007cba);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.jerico-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.2s ease;
}

.jerico-faq-item[open] .jerico-faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.jerico-faq-answer {
    padding: 0 24px 22px;
}

.jerico-faq-item h3 {
    margin: 0 0 10px 0;
    color: var(--jerico-text-color, #333);
    font-size: 1.08rem;
    line-height: 1.35;
}

.jerico-faq-item p {
    margin: 0;
    color: var(--jerico-text-color, #333);
    line-height: 1.75;
    opacity: 0.92;
}

.cluster-content h3 a {
    text-decoration: none;
    color: inherit;
}

.cluster-content h3 a:hover {
    text-decoration: underline;
}

.cluster-content p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--jerico-text-color, #333); 
}

.cluster-city {
    font-size: 0.88rem !important;
    opacity: 0.72;
}

.cluster-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--jerico-primary-color, #007cba);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    align-self: stretch;
}

.cluster-cta::after {
    content: ">";
    font-size: 0.9rem;
}

/* --------------------------
   RESPONSIVE DESIGN
   -------------------------- */

@media (max-width: 768px) {
    .jerico-business-page .entry-content {
        margin-top: -32px !important;
        padding-left: 14px;
        padding-right: 14px;
    }

    .jerico-box,
    .jerico-schedule-box {
        border-radius: 18px !important;
    }

    .jerico-hero-panel {
        min-height: 0;
        padding: 40px 18px 34px !important;
    }

    .jerico-main-columns {
        gap: 24px !important;
    }

    body.jerico-business-page .jerico-main-columns {
        display: flex !important;
        grid-template-columns: none;
    }

    body.jerico-business-page .jerico-main-columns > .wp-block-column:first-child,
    body.jerico-business-page .jerico-main-columns > .wp-block-column:last-child {
        display: block;
    }

    .jerico-card--schedule {
        position: static;
    }

    .jerico-review-copy {
        max-width: none;
    }

    .jerico-directory-hero {
        margin-top: -30px;
        margin-bottom: 22px;
        padding: 42px 16px 34px;
    }

    .jerico-directory-hero__inner {
        padding: 0 2px;
    }

    .jerico-directory-hero h1 {
        max-width: none;
    }

    .jerico-directory-section--content {
        margin-top: 32px;
        padding: 24px 20px;
    }

    body.jerico-directory-page:not(.jerico-business-page) .entry-content > h1 {
        max-width: none;
        margin-top: 20px !important;
    }

    .jerico-faq-item {
        border-radius: 16px;
    }

    .jerico-faq-item summary {
        padding: 18px 18px 16px;
    }

    .jerico-faq-answer {
        padding: 0 18px 18px;
    }

    .jerico-map-iframe-wrapper {
        height: 280px;
    }

    .jerico-municipios-grid,
    .jerico-cluster-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {
    .jerico-municipios-grid,
    .jerico-cluster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   PANEL DE ADMINISTRACIÓN
   ========================================================================== */

/* Barra de herramientas principal */
.jerico-toolbar {
    background: #f6f7f7;
    padding: 15px;
    border: 1px solid #c3c4c7;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* Controles de búsqueda */
.search-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Acciones masivas */
.bulk-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Botones especiales */
.button-delete {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.button-delete-all {
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: white !important;
}

/* --------------------------
   ESTADÍSTICAS DEL SISTEMA
   -------------------------- */

.jerico-stats { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
    margin: 20px 0; 
} 

.stat-box { 
    background: #fff; 
    padding: 20px; 
    text-align: center; 
    border: 1px solid #ddd;
} 

.stat-number { 
    font-size: 28px; 
    font-weight: bold; 
    display: block;
    margin-top: 5px;
} 

/* Acciones principales */
.jerico-actions .button { 
    margin-right: 10px; 
}

/* ==========================================================================
   ESTILOS DE FORMULARIOS ADMINISTRATIVOS
   ========================================================================== */

/* Contenedor tipo tarjeta para formularios */
.jerico-admin-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1px 25px 25px 25px;
    margin-top: 20px;
}

.jerico-admin-card h2 {
    font-size: 18px;
    margin: 20px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

/* Tablas de formularios */
.jerico-admin-card .form-table th {
    width: 200px;
}

.jerico-admin-card .form-table td input[type="text"],
.jerico-admin-card .form-table td input[type="number"],
.jerico-admin-card .form-table td select {
    width: 100%;
    max-width: 350px;
}

.jerico-admin-card .form-table p.description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Campo para subir archivos */
.jerico-admin-card input[type="file"] {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background: #f9f9f9;
}

/* Botón principal */
.jerico-admin-card .button-primary {
    min-width: 120px;
    height: 40px;
    line-height: 38px !important;
}
