:root {
    /* Paleta base de colores inspirada en logo (Amarillo y Negro pastel mate) */
    --color-primary: #F9E7B6;
    /* Amarillo suave pastel mate */
    --color-primary-dark: #E6D099;
    --color-dark: #2A2A2A;
    /* Negro mate suave */
    --color-dark-light: #4A4A4A;
    /* Gris oscuro para textos secundarios */
    --color-bg-main: #FDFBF8;
    /* Blanco cálido de fondo general */
    --color-bg-light: #FFFFFF;
    /* Blanco puro para tarjetas */
    --color-bg-alt: #F4EED1;
    /* Fondo alternativo súper suave amarillento */

    /* Sistema visual */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 4px 12px rgba(42, 42, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(42, 42, 42, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg-main);
    color: var(--color-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--color-dark-light);
    margin-bottom: 1rem;
}

/* --- NUEVO DISEÑO DE BÚSQUEDA Y FILTROS PREMIUM --- */

.search-section-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin-top: -5rem;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-search {
    padding-top: 1rem !important;
}

.search-main-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-box-container {
    flex: 1;
    min-width: 250px; /* Reducido para mejor ajuste */
    position: relative;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.3rem 1.5rem; /* Padding reducido */
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-box-container:focus-within {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.search-box-container i {
    color: var(--color-dark-light);
    margin-right: 0.8rem;
    font-size: 1rem;
}

.search-box-container input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.6rem 0; /* Padding reducido */
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    color: var(--color-dark);
}

/* Filtros Avanzados en una fila moderna */
.filters-container {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f5;
    justify-content: flex-start;
}

.filter-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.filter-group:hover {
    border-color: var(--color-primary-dark);
    background: white;
}

.filter-group label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.8rem;
    white-space: nowrap;
}

.filter-select, .filter-input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    cursor: pointer;
    outline: none;
    font-family: inherit;
    appearance: none;
    padding-right: 1.2rem;
    width: auto;
}

.filter-input {
    cursor: text;
    width: 100px;
}

.filter-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Custom arrow for select */
.filter-group:has(select)::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--color-primary-dark);
    position: absolute;
    right: 1.2rem;
    pointer-events: none;
}

@media (max-width: 768px) {
    .search-section-wrapper {
        padding: 1rem;
        margin-top: -2rem;
        border-radius: 20px;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .search-main-row {
        margin-bottom: 0.8rem;
    }

    .search-box-container {
        min-width: 100%;
    }
    
    .filters-container {
        gap: 0.5rem;
    }

    .filter-group {
        padding: 0.3rem 0.8rem;
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Grillas en 2 columnas para móvil */
    .animals-grid, .quick-links-grid, .help-grid, .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    /* Si hay un número impar de tarjetas, ocupar el ancho completo */
    .quick-links-grid > *:last-child:nth-child(odd) {
        grid-column: span 2;
        width: 100%;
    }

    .help-grid > *:last-child:nth-child(odd) {
        grid-column: span 2;
        justify-self: center;
        max-width: 90%;
    }

    /* Ajuste visual para la última tarjeta de ayuda (que es grande) */
    .help-grid > *:last-child:nth-child(odd) {
        max-width: 90%;
    }

    .filter-group label {
        font-size: 0.6rem;
    }

    .filter-select, .filter-input {
        min-width: 60px;
        font-size: 0.8rem;
        padding-right: 0.5rem;
    }

    .filter-input {
        width: 100%;
    }
}

/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: var(--color-dark);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- ESTILOS DE COMPONENTES --- */

/* Banner de Rifa Fija Superior */
.top-banner {
    background-color: var(--color-dark);
    color: var(--color-primary);
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.banner-content p {
    color: var(--color-primary);
    margin-bottom: 0;
}

.donations-alias {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.donations-alias code {
    background-color: rgba(249, 231, 182, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Header & Navegación */
.main-header {
    background-color: var(--color-bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-box {
    background-color: var(--color-primary);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.2rem;
    color: var(--color-dark);
}

.heart-icon {
    position: absolute;
    top: 8px;
    right: 6px;
    font-size: 0.6rem;
}

.logo-link h1 {
    font-size: 1.25rem;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-dark-light);
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: var(--color-primary-dark);
}

.desktop-nav .contact-btn {
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
}

.desktop-nav .contact-btn:hover {
    background-color: var(--color-dark-light);
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
}

/* Mobile Nav Overlay */
/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f3f5;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.close-menu-btn:hover {
    background: var(--color-dark);
    color: white;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-top: 1rem;
}

.mobile-nav-header img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.mobile-nav-header h2 {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 700;
    margin: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
    width: 100%;
}

.mobile-link i {
    width: 24px;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    text-align: center;
}

.mobile-link:active, .mobile-link:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary-dark);
    transform: translateX(5px);
}

.mobile-link.urgencia-link {
    color: #e03131;
}

.mobile-link.urgencia-link i {
    color: #e03131;
}

.mobile-nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
}

.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.mobile-socials a {
    font-size: 1.5rem;
    color: var(--color-dark-light);
}

.hero-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(rgba(244, 238, 209, 0.88), rgba(244, 238, 209, 0.88)), url('../img/bg1.jpg') center/cover no-repeat;
    border-radius: 0 0 40px 40px;
    margin-bottom: 2rem;
}

.hero-section h2 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 0 auto;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 1.2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.bg-soft-yellow {
    background: linear-gradient(rgba(244, 238, 209, 0.82), rgba(244, 238, 209, 0.82)), url('../img/bg3.jpg') center/cover no-repeat;
    background-attachment: fixed;
    border-radius: 40px;
    margin: 2rem 1rem;
    overflow: hidden;
    padding-bottom: 3rem;
}

.bg-soft-white {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('../img/bg2.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

/* Fallback for iOS since background-attachment: fixed has bugs */
@supports (-webkit-touch-callout: none) {

    .bg-soft-yellow,
    .bg-soft-white {
        background-attachment: scroll;
    }
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.section-padding {
    padding: 5rem 0;
}

/* Tarjetas Dinámicas de Animales */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.animal-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.animal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.animal-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.animal-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.animal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.animal-content p.card-desc-text {
    font-size: 0.92rem;
    color: var(--color-dark-light);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 0;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--color-dark);
    text-decoration: underline;
}

.animal-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #25D366; /* WhatsApp Green */
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    margin-top: auto;
    text-decoration: none;
}

.animal-contact-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Detail Modal Premium */
.detail-modal {
    max-width: 800px;
    width: 95%;
    padding: 0;
    overflow-y: auto;
    max-height: 90vh;
    border-radius: 30px;
}

.animal-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer; /* Toda la tarjeta clicable */
}

.detail-layout {
    display: flex;
    flex-direction: column;
}

.detail-gallery {
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eee;
    position: relative;
}

.gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Ocultar scrollbar */
.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1rem;
}

.carousel-item img {
    max-height: 450px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    background: white;
}

.carousel-indicators .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    transition: var(--transition);
}

.carousel-indicators .dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

.detail-info {
    padding: 2.5rem;
    background: white;
    display: flex;
    flex-direction: column;
}

.detail-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.detail-specs {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.detail-specs p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.detail-specs p strong {
    color: var(--color-primary-dark);
}

.detail-description {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.detail-description h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--color-dark-light);
}

.detail-description p {
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
    color: var(--color-dark);
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
        padding: 0 0.8rem;
        width: 100%;
        margin: 0 auto;
    }

    .animal-content {
        padding: 0.8rem;
    }

    .animal-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    .animal-content p.card-desc-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .btn-read-more {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }

    .card-badges {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
    }

    .card-details span {
        font-size: 0.7rem;
    }

    .animal-contact-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .detail-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .detail-info {
        padding: 1.5rem;
    }

    .detail-info h2 {
        font-size: 1.4rem;
    }
}

/* En adopción highlight */
.action-highlight {
    text-align: center;
    margin-top: 4rem;
    background-color: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.action-highlight p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

/* Cómo ayudar grid */
.help-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.help-card {
    flex: 1 1 200px;
    max-width: 250px;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.help-card>i {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.help-card h3 {
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.help-card p {
    color: var(--color-dark-light);
    line-height: 1.6;
    flex: 1;
}

.alias-box {
    background-color: var(--color-bg-alt);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
}

.alias-box p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.alias-box p:last-child {
    margin-bottom: 0;
}

.alias-box code {
    word-break: break-word;
    /* Prevents long alias from breaking out */
}

/* Urgencias */
.vets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.vet-card {
    background-color: var(--color-bg-light);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.vet-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.vet-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.vet-card a {
    display: inline-block;
    background-color: var(--color-dark);
    color: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.vet-card a:hover {
    background-color: var(--color-dark-light);
}

/* Contact Section (new) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(230, 208, 153, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-dark);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--color-dark-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Footer */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-bg-main);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-info .mission {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
    max-width: 600px;
}

.logo-footer {
    background-color: var(--color-bg-light);
    color: var(--color-dark);
}

.footer-contact h3,
.footer-donations h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.footer-donations p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.footer-donations code {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.admin-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--color-primary);
}

/* Responsividad */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .logo-link h1 {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .top-banner {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }

    .banner-content {
        flex-direction: column;
        padding: 0.3rem 0;
        gap: 0.2rem;
    }

    .donations-alias {
        flex-direction: row;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .donations-alias code {
        font-size: 0.70rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .bg-soft-yellow {
        margin: 2rem 0;
        border-radius: 0;
    }

    .help-grid, .vets-grid, .cards-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.7rem;
        width: 100%;
        margin: 0 auto;
        padding: 0 0.8rem;
    }

    .help-card, .vet-card, .animal-card, .add-case-card {
        min-width: 0 !important; /* Evitar que el contenido ensanche la columna */
        overflow: hidden;
    }

    .add-case-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .add-case-card i {
        font-size: 2.5rem !important;
        margin-bottom: 0.8rem !important;
    }

    .add-case-card p {
        font-size: 0.75rem !important;
    }

    .vet-card {
        padding: 1.5rem 0.8rem !important;
    }

    .help-grid .help-card:last-child:nth-child(odd),
    .vets-grid .vet-card:last-child:nth-child(odd) {
        grid-column: span 2;
        width: 100%;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem 1rem;
        gap: 0.8rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    .contact-info {
        text-align: center;
    }

    .contact-label {
        font-size: 0.75rem;
    }

    .contact-value {
        font-size: 0.85rem;
    }

    .help-card {
        padding: 1.5rem 1rem;
    }

    .help-card i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .help-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .help-card p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    .help-card .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .help-card .btn-primary i {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .alias-box {
        padding: 0.6rem 0.3rem !important;
        width: 100%;
        overflow: hidden;
    }

    .alias-box p {
        font-size: 0.75rem;
        word-break: keep-all;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        letter-spacing: -0.2px;
    }
}

/* --- NUEVOS ESTILOS PARA AGREGAR CASOS --- */

.add-case-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 3px dashed #e9ecef;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
    min-height: 320px;
}

.add-case-card:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.add-case-card i {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.add-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-dark);
}

.add-case-card p {
    font-size: 0.95rem;
    color: var(--color-dark-light);
    max-width: 220px;
    margin: 0;
}

/* Ajustes de tipografía en tarjetas */
.animal-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--color-dark);
}

.card-badges {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
    flex-wrap: nowrap; /* Forzar una al lado de la otra */
}

.badge {
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.badge-gender {
    background: #f1f3f5;
    color: #495057;
}

.badge-type {
    background: #fff4e6;
    color: #d9480f;
}

/* Modal Overlay & Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: 24px;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    background: var(--color-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.modal-close:hover {
    background: #e03131;
    color: white;
    transform: rotate(90deg);
}

/* Form Styles */
.publicar-form h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.publicar-form .subtitle {
    color: var(--color-dark-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(249, 231, 182, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        padding: 2rem 1.5rem;
    }
}

.img-upload-box {
    width: 100%;
    min-height: 200px;
    background: #fcfcfc;
    border: 2px dashed #ddd;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.img-upload-box:hover {
    border-color: var(--color-primary-dark);
    background: #fdfdfd;
}

.img-upload-box i {
    font-size: 2.5rem;
    color: #bbb;
    margin-bottom: 1rem;
}

.img-upload-box p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.img-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.btn-submit-publicar {
    background-color: var(--color-primary);
    color: var(--color-dark);
    padding: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.btn-submit-publicar:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-submit-publicar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-message i {
    font-size: 4rem;
    color: #40c057;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .quick-link-card {
        padding: 1rem 0.5rem;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .quick-link-card h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
    }

    .quick-link-card i {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }

    .quick-link-card p {
        display: none !important; /* Limpieza: ocultar descripciones largas en móvil */
    }
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.success-message p {
    margin-bottom: 2rem;
}

.profile-suggestion {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
    border-left: 5px solid var(--color-primary);
}

.profile-suggestion h4 {
    margin-bottom: 0.8rem;
}

.profile-suggestion p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}