:root {
    --primary: #ff7e5f;
    --secondary: #feb47b;
    --whatsapp: #25d366;
    --dark: #2d3436;
    --light: #f9f9f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    line-height: 1.6; 
    background-color: var(--light); 
    color: var(--dark);
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 20px;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.container { max-width: 1100px; margin: auto; padding: 40px 20px; }

.health-banner {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 350px;
    background: #eee;
    object-fit: cover;
    cursor: zoom-in;
    transition: filter 0.3s ease;
}

.card-img:hover { filter: brightness(0.85); }

.card-body { padding: 20px; flex-grow: 1; }

.tag {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-cta {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
}

.btn-whatsapp {
    display: inline-block;
    background-color: var(--whatsapp);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 95%;
    max-height: 90%;
    border-radius: 8px;
    animation: zoomEffect 0.3s;
}

@keyframes zoomEffect {
    from {transform:scale(0.8)} 
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
/* --- ESTILOS PARA IMPRESIÓN --- */
@media print {
    /* Ocultar elementos innecesarios en papel */
    header, .footer-cta, .close, .modal, .zoom-icon {
        display: none !important;
    }

    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    /* Ajustar la cuadrícula para que no se corte feo */
    .grid {
        display: block !important; /* Cambiamos a bloque para evitar saltos de página a mitad de tarjeta */
    }

    .card {
        page-break-inside: avoid; /* Evita que un perrito se imprima a la mitad de dos hojas */
        border: 1px solid #eee !important;
        box-shadow: none !important;
        margin-bottom: 20px !important;
        display: flex !important;
        flex-direction: row !important; /* En papel se ve mejor: Foto a la izquierda, texto a la derecha */
        align-items: center;
    }

    .card-img {
        width: 150px !important;
        height: 150px !important;
        border-radius: 10px !important;
        margin: 10px !important;
    }

    .card-body {
        padding: 10px !important;
    }

    .health-banner {
        border: 2px solid #28a745 !important;
        background: white !important;
        color: black !important;
        font-weight: bold;
    }

    /* Agregar el número de contacto debajo de cada descripción solo al imprimir */
    .card-body::after {
        content: "Llamar para adoptar: 916-114-1400";
        display: block;
        margin-top: 5px;
        font-weight: bold;
        color: #d35400;
    }
}
:root {
    --primary: #ff7e5f;
    --secondary: #feb47b;
    --whatsapp: #25d366;
    --accent: #6c5ce7; /* Un color morado elegante para resaltar */
    --light: #fdfdfd;
}

body { 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    background-color: var(--light);
    /* Imagen de fondo elegante con transparencia */
    background-image: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), 
                      url('https://www.transparenttextures.com/patterns/paws.png'); 
    color: #2d3436;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe); /* Nuevo degradado vistoso */
    color: white;
    padding: 80px 20px;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.container { max-width: 1200px; margin: auto; padding: 40px 20px; }

/* Contenedores con nuevo estilo */
.card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    /* Borde sutil de color para hacerlo vistoso */
    border: 2px solid #f1f2f6;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1); 
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
}

.card-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    cursor: zoom-in;
}

.card-body { 
    padding: 25px; 
    text-align: center; /* Centramos el contenido para que luzca el botón */
}

.card-body h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* El nuevo botón de Elígeme */
.btn-choose {
    display: inline-block;
    background: var(--whatsapp);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-choose:hover {
    background: #1eb954;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.tag {
    background: #f0edff;
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}