/**
 * Estilos complementarios a Tailwind CDN.
 * Mantener mínimo: la mayoría del diseño vive en clases de utilidad.
 */

html {
    scroll-behavior: smooth;
}

/* —— Hero / navbar principal —— */
.hero-nav {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(145deg, #14532d 0%, #15803d 38%, #16a34a 62%, #ea580c 100%);
    color: #fff;
    padding: clamp(1.75rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 6vw, 3.5rem);
}

.hero-nav__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(251, 146, 60, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.hero-nav__inner {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 768px) {
    .hero-nav__inner {
        max-width: 52rem;
        align-items: center;
        text-align: center;
    }
}

.hero-nav__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero-nav__brand {
        flex-direction: column;
        text-align: center;
    }
}

.hero-nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1.125rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
    .hero-nav__logo {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2.125rem;
    }
}

.hero-nav__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hero-nav__title {
    margin-top: 0.25rem;
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-nav__tagline {
    margin-top: 0.35rem;
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    font-style: italic;
}

/* —— Zona de reporte (bloque sólido, máximo contraste) —— */
.hero-nav__report-zone {
    width: 100%;
}

.hero-nav__report-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.35;
    color: #fff;
    background: #0f172a;
    border-radius: 0.5rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-nav__report-eyebrow-mark {
    font-size: 0.65rem;
    line-height: 1;
}

.hero-nav__report-card {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.35rem);
    background: #fff;
    border-radius: 1.25rem;
    border: 4px solid #0f172a;
    box-shadow:
        0 0 0 2px #fff,
        0 12px 40px rgba(0, 0, 0, 0.35);
    /* Franja lateral gruesa (visible sin depender del color) */
    border-left-width: 10px;
}

.hero-nav__report-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(1.25rem, 4vw, 1.5rem) 1.25rem;
    border-radius: 1rem;
    border: 3px solid #0f172a;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
    background: #fef08a;
    box-shadow: 0 5px 0 #0f172a;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hero-nav__report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #0f172a;
}

.hero-nav__report-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #0f172a;
}

.hero-nav__report-btn:focus-visible {
    outline: 3px solid #0f172a;
    outline-offset: 3px;
}

.hero-nav__report-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.hero-nav__report-text {
    text-align: center;
}

.hero-nav__cta-hints {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f9fafb;
}

.hero-nav__cta-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    text-align: left;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #1f2937;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.hero-nav__cta-hint:last-child {
    border-bottom: none;
}

.hero-nav__cta-hint-text {
    flex: 1;
    min-width: 0;
}

.hero-nav__cta-hint-text strong {
    font-weight: 800;
    color: #0f172a;
}

.hero-nav__cta-hint-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    margin-top: 0.05rem;
    border-radius: 0.375rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

/* —— Menú del sitio (cristal, separado del reporte) —— */
.hero-nav__menu-zone {
    width: 100%;
    margin-top: 0.25rem;
}

.hero-nav__menu-divider {
    height: 0;
    margin: 0 0 1rem;
    border: none;
    border-top: 3px dashed rgba(255, 255, 255, 0.65);
}

.hero-nav__menu-title {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.hero-nav__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
    .hero-nav__links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

.hero-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 4.25rem;
    padding: 0.875rem 0.65rem;
    border-radius: 0.875rem;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.hero-nav__link:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
}

.hero-nav__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-nav__link-icon {
    font-size: 1.25rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .hero-nav__link {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
}

.hero-nav__legal {
    text-align: center;
    margin-top: 0.25rem;
}

.hero-nav__legal-link {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}

.hero-nav__legal-link:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

/* Botón flotante de reporte — aparece al salir el CTA del hero */
.report-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(1rem) scale(0.92);
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.report-fab.report-fab--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (max-width: 480px) {
    .report-fab .report-fab__label-full {
        display: none;
    }
}

/* Contenedor del mapa — altura fija para que Leaflet renderice los tiles */
#map,
#map.map-container {
    height: 500px;
    min-height: 500px;
    width: 100%;
}

#map.leaflet-container {
    height: 500px !important;
    min-height: 500px;
    width: 100%;
    z-index: 1;
}

#map-placeholder {
    z-index: 0;
    pointer-events: none;
}

#map.leaflet-container ~ #map-placeholder,
#map:not(:empty) #map-placeholder {
    display: none;
}

/* leaflet-gesture-handling: aviso acotado al mapa */
#map.leaflet-container::after,
#report-picker-map.leaflet-container::after {
    pointer-events: none;
}

#map.leaflet-gesture-handling-touch-warning::after,
#map.leaflet-gesture-handling-scroll-warning::after,
#report-picker-map.leaflet-gesture-handling-touch-warning::after,
#report-picker-map.leaflet-gesture-handling-scroll-warning::after {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    padding: 1rem 1.25rem;
    background: rgba(22, 101, 52, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 450;
}

/* Carrusel: ocultar barra de scroll visual */
.pet-carousel::-webkit-scrollbar {
    display: none;
}

/* Lightbox activo */
.lightbox.is-open {
    display: flex;
}

.lightbox[hidden] {
    display: none !important;
}

/* Modal de reporte express */
.report-modal.is-open {
    display: flex;
}

.report-modal[hidden] {
    display: none !important;
}

#report-picker-map.leaflet-container {
    height: 12rem;
    width: 100%;
    z-index: 0;
}

/* Modal búsqueda adoptante */
.search-modal.is-open {
    display: flex;
}

.search-modal[hidden] {
    display: none !important;
}

/* Panel de gestión del dueño (?token=) */
body.has-owner-panel main {
    scroll-margin-top: 7rem;
}

.owner-panel.is-visible {
    display: block;
}

/* Animación suave al enfocar marcador */
@keyframes pulse-marker {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.leaflet-marker-icon.marker-highlight {
    animation: pulse-marker 0.6s ease-in-out 2;
}

/* Galería inmersiva (modo teatro) */
.gallery-theater {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.gallery-theater.is-open {
    display: flex;
}

.gallery-theater[hidden] {
    display: none !important;
}

.gallery-theater__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #0f172a 100%);
    opacity: 0.97;
}

.gallery-theater__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-theater__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.gallery-theater__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.gallery-theater__nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.05);
}

.gallery-theater__nav--prev {
    left: 0.75rem;
}

.gallery-theater__nav--next {
    right: 0.75rem;
}

@media (min-width: 640px) {
    .gallery-theater__nav--prev {
        left: 1.25rem;
    }

    .gallery-theater__nav--next {
        right: 1.25rem;
    }
}

.gallery-theater__panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 56rem;
    margin: auto;
    padding: 3.5rem 1rem 1.5rem;
    max-height: 100vh;
    overflow: hidden;
}

@media (min-width: 768px) {
    .gallery-theater__panel {
        flex-direction: row;
        align-items: stretch;
        gap: 1.5rem;
        padding: 4rem 2rem 2rem;
        max-width: 72rem;
    }
}

.gallery-theater__counter {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.gallery-theater__image-wrap {
    flex: 1;
    min-height: 40vh;
    max-height: 55vh;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
    .gallery-theater__image-wrap {
        min-height: 60vh;
        max-height: none;
    }
}

.gallery-theater__img {
    width: 100%;
    height: 100%;
    min-height: 40vh;
    object-fit: cover;
}

@media (min-width: 768px) {
    .gallery-theater__img {
        min-height: 60vh;
    }
}

.gallery-theater__body {
    flex: 0 0 auto;
    width: 100%;
    padding: 1rem 0.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .gallery-theater__body {
        width: 22rem;
        padding: 2rem 0 0;
    }
}

/* —— Pre-footer (visitas + apoyantes) —— */
.pre-footer {
    width: 100%;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 50%, #fff7ed 100%);
    border-top: 1px solid rgba(22, 101, 52, 0.12);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.pre-footer__inner {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .pre-footer__inner {
        max-width: 52rem;
        text-align: center;
    }
}

/* Banner de visitas */
.pre-footer__visits-banner {
    text-align: center;
    padding: 1.125rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #14532d 0%, #15803d 45%, #166534 100%);
    border: 3px solid #fff;
    box-shadow:
        0 0 0 1px rgba(22, 101, 52, 0.2),
        0 10px 32px rgba(20, 83, 45, 0.28);
    color: #fff;
}

.pre-footer__visits-banner-icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

.pre-footer__visits-banner-text {
    margin: 0;
    font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.45;
}

.pre-footer__visits-count {
    display: inline-block;
    margin-left: 0.2rem;
    padding: 0.1rem 0.55rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fef08a;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    vertical-align: middle;
}

.pre-footer__visits-note {
    margin: 0.5rem 0 0;
    min-height: 0.875rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Título y subtítulo principal */
.pre-footer__hero {
    text-align: center;
}

.pre-footer__hero-title {
    margin: 0;
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #14532d;
}

.pre-footer__hero-subtitle {
    margin: 0.875rem auto 0;
    max-width: 38rem;
    font-size: clamp(1rem, 2.8vw, 1.125rem);
    font-weight: 500;
    line-height: 1.6;
    color: #374151;
}

.pre-footer__card {
    text-align: left;
    border-radius: 1.5rem;
    background: #fff;
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: 0 4px 24px rgba(22, 101, 52, 0.08);
    border: 1px solid rgba(22, 101, 52, 0.1);
}

@media (min-width: 768px) {
    .pre-footer__card {
        text-align: center;
    }

    .pre-footer__card .pre-footer__badge,
    .pre-footer__card .pre-footer__text {
        margin-left: auto;
        margin-right: auto;
    }
}

.pre-footer__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c2410c;
    background: #ffedd5;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
}

.pre-footer__text {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4b5563;
}

.pre-footer__text + .pre-footer__text {
    margin-top: 0.75rem;
}

.pre-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pre-footer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4);
}

@media (min-width: 480px) {
    .pre-footer__cta {
        width: auto;
    }
}

/* —— Franja de contacto (footer expandible) —— */
.site-contact {
    width: 100%;
    background: #1e293b;
    color: #e2e8f0;
    transition: background 0.25s ease;
}

.site-contact:hover {
    background: #334155;
}

.site-contact--open {
    background: #0f172a;
}

.site-contact--open:hover {
    background: #0f172a;
}

.site-contact__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

@media (min-width: 640px) {
    .site-contact__toggle {
        font-size: 0.875rem;
        padding: 1.125rem 2rem;
    }
}

.site-contact__toggle:hover,
.site-contact--open .site-contact__toggle {
    color: #fff;
}

.site-contact__toggle-em {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-contact__toggle:hover .site-contact__toggle-em {
    text-decoration-color: #86efac;
}

.site-contact__chevron {
    flex-shrink: 0;
    display: flex;
    transition: transform 0.25s ease;
}

.site-contact--open .site-contact__chevron {
    transform: rotate(180deg);
}

.site-contact__panel {
    max-width: 36rem;
    margin: 0 auto;
    padding: 0 1.25rem 1.75rem;
}

.site-contact__form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .site-contact__form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.site-contact__form-full {
    grid-column: 1 / -1;
}

.site-contact__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.site-contact__optional {
    font-weight: 400;
    color: #64748b;
}

.site-contact__input {
    width: 100%;
    border-radius: 0.625rem;
    border: 1px solid #475569;
    background: #1e293b;
    color: #f8fafc;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
}

.site-contact__input:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.site-contact__textarea {
    resize: vertical;
    min-height: 6rem;
}

.site-contact__error {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #fca5a5;
}

.site-contact__success {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #86efac;
}

.site-contact__submit {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #14532d;
    background: linear-gradient(180deg, #86efac 0%, #4ade80 100%);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-contact__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.35);
}

.site-contact__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.site-legal-footer {
    background: #fff;
}

/* Lista pública de apoyantes */
.apoyantes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .apoyantes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.apoyantes-card {
    display: flex;
    gap: 1.125rem;
    padding: 1.125rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.apoyantes-card:hover {
    box-shadow: 0 8px 24px rgba(22, 101, 52, 0.1);
}

/* Contenedor fijo: todos los logos al mismo alto en la grilla */
.apoyantes-card__logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.5rem;
    height: 5.75rem;
    padding: 0.4rem;
    border-radius: 0.875rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .apoyantes-card__logo-wrap {
        width: 8.5rem;
        height: 6.25rem;
    }
}

.apoyantes-card__logo-wrap--placeholder {
    font-size: 1.85rem;
    background: linear-gradient(135deg, #eef2ff, #f0fdf4);
}

.apoyantes-card__logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Dashboard refugio — misma altura en miniaturas */
.apoyante-logo-thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.apoyante-logo-thumb-wrap--empty {
    font-size: 1.25rem;
    background: #eef2ff;
}

.apoyante-logo-thumb {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.apoyantes-card__body {
    min-width: 0;
    flex: 1;
}

.apoyantes-card__tipo {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4338ca;
    background: #eef2ff;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

.apoyantes-card__nombre {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.apoyantes-card__refugio {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.4;
}

.apoyantes-card__desc {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.apoyantes-card__link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.apoyantes-card__link:hover {
    text-decoration: underline;
}

.apoyantes-page-btn {
    min-width: 2.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease;
}

.apoyantes-page-btn:hover {
    background: #f3f4f6;
}

.apoyantes-page-btn--active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.apoyantes-page-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #9ca3af;
}

/* Campos de contraseña con botón mostrar/ocultar */
.password-field-wrap {
    position: relative;
}

.password-field-input {
    display: block;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.password-toggle:hover {
    color: #374151;
    background: #f3f4f6;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon--show {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon--hide {
    display: block;
}

.password-toggle[aria-pressed="false"] .password-toggle__icon--hide {
    display: none;
}
