/* ============================================================
   PAGES/CSS/iglesias.css
   Iglesia MMM · Presbiterio 18
   ============================================================ */

/* ------------------------------------------------------------
   Variables locales
   ------------------------------------------------------------ */
:root {
    --c-brand:   #FF6A00;
    --c-brand-2: #FF8C42;
    --c-teal:    #00BFA6;
    --c-bg:      #0A0F1C;
    --c-bg-alt:  #111827;
    --c-line:    #E5E7EB;
    --c-text:    #1F2937;
    --c-soft:    #6B7280;
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 14px rgba(0,0,0,.06);
    --shadow:    0 12px 32px rgba(0,0,0,.10);
    --shadow-lg: 0 30px 80px rgba(0,0,0,.35);
    --tr:        .3s cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------
   Contenedor principal
   ------------------------------------------------------------ */
.iglesias {
    background: #fff;
    color: var(--c-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

.iglesias .container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.iglesias .section {
    padding: clamp(40px, 6vw, 80px) 0;
}

/* ============================================================
   HERO DE PÁGINA
   ============================================================ */
.page-hero {
    position: relative;
    padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
    background: var(--c-bg);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,106,0,.35), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(0,191,166,.28), transparent 55%),
        linear-gradient(135deg, #0A0F1C 0%, #111827 100%);
}

.page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.page-hero__eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-brand);
    padding: 6px 14px;
    border: 1px solid rgba(255,106,0,.4);
    border-radius: 999px;
    margin-bottom: 22px;
}

.page-hero__title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
    margin: 0 0 20px;
    letter-spacing: -.01em;
}
.page-hero__title em {
    font-style: italic;
    color: var(--c-brand);
}

.page-hero__desc {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255,255,255,.78);
    max-width: 620px;
    margin: 0 0 32px;
}

.page-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: rgba(255,255,255,.7);
}
.page-hero__breadcrumb a {
    color: var(--c-brand);
    text-decoration: none;
    transition: color var(--tr);
}
.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb i { font-size: .65rem; opacity: .6; }

/* ============================================================
   FILTROS (buscador + chips de ciudad)
   ============================================================ */
.filters {
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}

.filters__inner {
    display: grid;
    grid-template-columns: 320px 1fr auto;
    gap: 16px;
    align-items: center;
}

.filters__search {
    position: relative;
}
.filters__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-soft);
    font-size: .9rem;
    pointer-events: none;
}
.filters__search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font-family: inherit;
    font-size: .95rem;
    outline: none;
    background: #F9FAFB;
    color: var(--c-text);
    transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.filters__search input::placeholder { color: #9CA3AF; }
.filters__search input:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 4px rgba(255,106,0,.12);
    background: #fff;
}

.filters__chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}
.filters__chips::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-text);
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--tr);
    white-space: nowrap;
}
.chip:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
}
.chip.is-active {
    background: var(--c-brand);
    color: #fff;
    border-color: var(--c-brand);
}

.filters__count {
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    color: var(--c-soft);
    white-space: nowrap;
}
.filters__count span {
    font-weight: 700;
    color: var(--c-brand);
    font-size: 1rem;
}

/* ============================================================
   GRID DE IGLESIAS
   ============================================================ */
.iglesias-list { padding: clamp(40px, 6vw, 80px) 0; }

.iglesias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

.iglesia-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.iglesia-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(255,106,0,.35);
}

.iglesia-card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #0A0F1C;
    cursor: pointer;
    display: block;
    width: 100%;
}
.iglesia-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.iglesia-card:hover .iglesia-card__media img {
    transform: scale(1.06);
}

.iglesia-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0A0F1C, #111827);
    color: rgba(255,255,255,.35);
    font-size: 3rem;
}

.iglesia-card__badge,
.iglesia-card__cultos {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}
.iglesia-card__badge {
    top: 12px;
    left: 12px;
    background: rgba(10,15,28,.65);
}
.iglesia-card__cultos {
    top: 12px;
    right: 12px;
    background: rgba(255,106,0,.85);
}

.iglesia-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.iglesia-card__body h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0A0F1C;
    margin: 0;
}

.iglesia-card__pastor,
.iglesia-card__address {
    font-size: .88rem;
    color: var(--c-soft);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}
.iglesia-card__pastor i { color: var(--c-teal); margin-top: 2px; }
.iglesia-card__address i { color: var(--c-brand); margin-top: 2px; }

.iglesia-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.iglesia-card__redes {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--c-line);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--tr), background var(--tr),
                color var(--tr), box-shadow var(--tr), border-color var(--tr);
    white-space: nowrap;
}

.btn--sm { padding: 9px 16px; font-size: .82rem; }

.btn--primary {
    background: var(--c-brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255,106,0,.32);
}
.btn--primary:hover {
    background: #E85F00;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255,106,0,.42);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
    background: transparent;
    color: #0A0F1C;
    border-color: var(--c-line);
}
.btn--ghost:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
    transform: translateY(-2px);
}

/* ============================================================
   REDES SOCIALES
   ============================================================ */
.red {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #F3F4F6;
    color: #374151;
    font-size: .9rem;
    transition: all var(--tr);
    text-decoration: none;
}
.red:hover {
    transform: translateY(-2px);
    color: #fff;
}
.red--facebook:hover  { background: #1877F2; }
.red--tiktok:hover    { background: #000; }
.red--youtube:hover   { background: #FF0000; }
.red--whatsapp:hover  { background: #25D366; }
.red--email:hover     { background: #EA4335; }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--c-soft);
    font-size: .95rem;
    line-height: 1.6;
}
.empty i {
    display: block;
    font-size: 2rem;
    color: #D1D5DB;
    margin-bottom: 12px;
}
.empty--hidden { display: none; }
.empty--small { padding: 20px 10px; font-size: .88rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal.is-open { display: flex; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.modal__panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--radius);
    width: min(880px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: popIn .3s cubic-bezier(.4, 0, .2, 1);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: #0A0F1C;
    color: #fff;
    flex-shrink: 0;
}
.modal__header h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal__header h3 i { color: var(--c-brand); flex-shrink: 0; }

.modal__close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background var(--tr);
    flex-shrink: 0;
}
.modal__close:hover { background: rgba(255,255,255,.12); }

.modal__body {
    padding: 22px 24px 28px;
    overflow-y: auto;
    flex: 1;
}
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}
.modal__body::-webkit-scrollbar-thumb:hover { background: var(--c-brand); }

/* ============================================================
   MODAL — CABECERA INTERNA (imagen + nombre + ciudad)
   ============================================================ */
.iglesia-detalle__hero {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-bottom: 6px;
    align-items: center;
}

.iglesia-detalle__media {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #0A0F1C, #111827);
    display: grid;
    place-items: center;
}
.iglesia-detalle__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.iglesia-detalle__media .iglesia-card__placeholder { font-size: 3.4rem; }

.iglesia-detalle__meta h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    color: #0A0F1C;
    margin: 0 0 8px;
    line-height: 1.25;
}

.iglesia-detalle__meta p {
    margin: 0;
    font-size: .95rem;
    color: var(--c-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.iglesia-detalle__meta p i { color: var(--c-brand); }

/* ============================================================
   MODAL — BLOQUES SEPARADOS (Cultos · Ubicación · Detalles)
   ============================================================ */
.iglesia-detalle__block {
    margin-top: 26px;
    padding: 22px 0 0;
    border-top: 1px solid var(--c-line);
}
.iglesia-detalle__block:first-of-type {
    border-top: 0;
    padding-top: 22px;
}

.iglesia-detalle__block h5 {
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-brand);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   BLOQUE 1 — CULTOS
   ============================================================ */
.cultos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.culto-item {
    background: #F9FAFB;
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-brand);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform var(--tr), border-color var(--tr);
}
.culto-item:hover {
    transform: translateY(-2px);
    border-left-color: var(--c-teal);
}

.culto-item__dia {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: #0A0F1C;
}

.culto-item__hora {
    font-size: .85rem;
    color: var(--c-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.culto-item__hora i { color: var(--c-brand); }

.culto-item__tipo {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--c-teal);
    background: rgba(0,191,166,.10);
    padding: 3px 9px;
    border-radius: 999px;
}

.culto-item__desc {
    font-size: .82rem;
    color: var(--c-soft);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ============================================================
   BLOQUE 2 — UBICACIÓN
   ============================================================ */
.iglesia-detalle__direccion {
    font-size: .95rem;
    color: #374151;
    margin: 0 0 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.55;
}
.iglesia-detalle__direccion i {
    color: var(--c-brand);
    margin-top: 3px;
}

.iglesia-detalle__map {
    width: 100%;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #F3F4F6;
    margin-bottom: 14px;
    position: relative;
    z-index: 0;
}

.iglesia-detalle__acciones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.iglesia-detalle__map .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    font-family: inherit;
}

/* ============================================================
   BLOQUE 3 — DETALLES
   ============================================================ */
.iglesia-detalle__pastor {
    font-size: .95rem;
    color: #374151;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.iglesia-detalle__pastor i { color: var(--c-teal); }
.iglesia-detalle__pastor strong { color: #0A0F1C; }

.iglesia-detalle__desc {
    margin: 0 0 18px;
}
.iglesia-detalle__desc p {
    font-size: .95rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

.iglesia-detalle__redes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   REDES SOCIALES EN LA TARJETA
   ============================================================ */
.iglesia-card__redes {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, .08);
    flex-wrap: wrap;
}

.red-chip {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.red-chip:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
    color: #fff;
}

.red-chip--facebook { background: linear-gradient(135deg, #1877f2, #0a5dc2); }
.red-chip--tiktok   { background: linear-gradient(135deg, #000, #25f4ee); }
.red-chip--youtube  { background: linear-gradient(135deg, #ff0000, #c00); }
.red-chip--whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.red-chip--email    { background: linear-gradient(135deg, #ea4335, #c5221f); }
.red-chip--more     { background: linear-gradient(135deg, #64748b, #334155); font-size: 11px; font-weight: 700; }

.red-chip[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 10;
}
.red-chip[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   REDES SOCIALES EN EL MODAL
   ============================================================ */
.iglesia-detalle__block--redes h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.redes-sociales {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.red-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}

.red-social::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .12);
    transform: translateX(-100%);
    transition: transform .35s ease;
}

.red-social:hover::before { transform: translateX(0); }

.red-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    color: #fff;
}

.red-social__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.red-social__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.red-social__info strong {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.red-social__info small {
    font-size: 11px;
    opacity: .85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.red-social__arrow {
    font-size: 11px;
    opacity: .6;
    transition: opacity .2s ease, transform .2s ease;
    position: relative;
    z-index: 1;
}

.red-social:hover .red-social__arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.red-social--facebook { background: linear-gradient(135deg, #1877f2, #0a5dc2); }
.red-social--tiktok   { background: linear-gradient(135deg, #000, #25f4ee); }
.red-social--youtube  { background: linear-gradient(135deg, #ff0000, #c00); }
.red-social--whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.red-social--email    { background: linear-gradient(135deg, #ea4335, #c5221f); }

/* ============================================================
   IGLESIA CENTRAL DESTACADA
   ============================================================ */
.iglesia-central-section {
    padding-bottom: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.iglesia-card--central {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
    border: 2px solid rgba(255,106,0,.4);
}

.iglesia-card--central .iglesia-card__media {
    aspect-ratio: 16 / 10;
    height: 100%;
}

.iglesia-card--central .iglesia-card__body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.iglesia-card--central h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0A0F1C, #FF6A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iglesia-card--central .iglesia-card__badge {
    background: linear-gradient(135deg, #FF6A00, #FF8C42);
    font-size: 0.85rem;
    padding: 8px 16px;
    top: 20px;
    left: 20px;
    box-shadow: 0 4px 15px rgba(255,106,0,.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .filters__inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .filters__count { text-align: right; }

    .iglesia-detalle__hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .iglesia-detalle__media {
        aspect-ratio: 16 / 10;
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .iglesia-card--central {
        grid-template-columns: 1fr;
    }
    .iglesia-card--central .iglesia-card__media {
        aspect-ratio: 16 / 9;
    }
    .iglesia-card--central .iglesia-card__body {
        padding: 24px;
    }
    .iglesia-card--central h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .iglesias-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .filters { padding: 10px 0; }
    .filters__search input {
        padding: 10px 14px 10px 36px;
        font-size: .9rem;
    }
    .chip { padding: 7px 13px; font-size: .8rem; }

    .modal { padding: 0; }
    .modal__panel {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        width: 100vw;
    }
    .modal__header h3 { font-size: .9rem; }
    .modal__body { padding: 18px; }

    .cultos-grid { grid-template-columns: 1fr; }
    .iglesia-detalle__map { height: 220px; }
    .iglesia-detalle__meta h4 { font-size: 1.2rem; }
}

@media (max-width: 576px) {
    .red-chip {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .redes-sociales {
        grid-template-columns: 1fr;
    }

    .red-social {
        padding: 10px 12px;
    }

    .red-social__icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.btn:focus-visible,
.chip:focus-visible,
.iglesia-card__media:focus-visible,
.modal__close:focus-visible,
.red:focus-visible,
.filters__search input:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 3px;
}