/* ==========================================================================
   ESTILOS PERROS - Héroes de 4 Patas
   Archivo: custom-perros.css
   Fichas individuales y listado de perros
   Colores: azul #004a83, verde #007732
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FICHA INDIVIDUAL DEL PERRO (single-perro.php)
   -------------------------------------------------------------------------- */

.perro-ficha {
    max-width: 1000px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Foto principal */
.perro-foto-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.perro-foto-principal {
    width: 100%;
    height: auto;
    display: block;
}

/* Badge de categoría sobre la foto */
.perro-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background-color: #004a83;
    z-index: 2;
}

/* Información del perro */
.perro-info {
    padding: 2rem 0;
}

.perro-nombre {
    font-size: 4.2rem;
    font-weight: 700;
    color: #004a83;
    margin: 0 0 3rem;
    line-height: 1.1;
    text-align: left;
}

/* Datos en grid */
.perro-datos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.perro-dato {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.perro-dato:hover {
    background: #eef3f8;
    transform: translateY(-2px);
}

.perro-dato-icono {
    color: #004a83;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.perro-dato-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.perro-dato-valor {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.perro-sexo-icon.macho {
    color: #004a83;
}

.perro-sexo-icon.hembra {
    color: #e91e8c;
}

/* Categorías/tags */
.perro-categorias {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.perro-categoria-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #e8f4f0;
    color: #007732;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.perro-categoria-tag:hover {
    background: #007732;
    color: #fff;
}

/* CTA botones de adopción */
.perro-cta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.perro-btn-adoptar {
    background-color: #007732 !important;
    color: #fff !important;
    border-color: #007732 !important;
    font-size: 1.8rem !important;
    padding: 1.5rem 3rem !important;
    text-align: center;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}

.perro-btn-adoptar:hover {
    background-color: #005a25 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 50, 0.3);
}

.perro-btn-adoptar .fa {
    margin-right: 0.5rem;
}

.perro-btn-info {
    font-size: 1.5rem !important;
    padding: 1.2rem 3rem !important;
    text-align: center;
    border-radius: 50px !important;
}

/* Contenido/descripción del perro */
.single-perro .entry-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.8rem;
    line-height: 1.8;
    color: #444;
}

.single-perro .entry-content p {
    margin-bottom: 2rem;
}

.single-perro .entry-content img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Ocultar captions/texto sobre las fotos de la galería */
.single-perro .gallery .gallery-caption,
.single-perro .gallery .wp-caption-text,
.single-perro .gallery figcaption,
.single-perro .wp-block-gallery figcaption,
.single-perro .gallery-item .gallery-caption,
.single-perro .meow-lightbox-caption,
.single-perro .blocks-gallery-item figcaption,
.single-perro .entry-content .gallery figcaption,
.single-perro .entry-content .gallery .gallery-caption {
    display: none !important;
}

/* Ocultar formulario Ninja Forms (respaldo CSS) */
.single-perro .nf-form-cont,
.single-perro .ninja-forms-form,
.single-perro .nf-form-wrap {
    display: none !important;
}

/* Botón adoptar después del texto */
.single-perro .entry-content .perro-cta {
    margin-top: 4rem;
    text-align: center;
}

/* Navegación entre perros */
.perro-navegacion {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 3rem 0;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.perro-navegacion a {
    color: #004a83;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.perro-navegacion a:hover {
    color: #007732;
}

.perro-nav-todos a {
    background: #f8f9fa;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.perro-nav-todos a:hover {
    background: #004a83;
    color: #fff;
}

.perro-nav-anterior,
.perro-nav-siguiente {
    max-width: 30%;
}

/* Responsive ficha individual */
@media only screen and (max-width: 990px) {
    .perro-ficha {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }

    .perro-nombre {
        font-size: 3.5rem;
    }
}

@media only screen and (max-width: 544px) {
    .perro-nombre {
        font-size: 2.8rem;
    }

    .perro-datos {
        grid-template-columns: 1fr;
    }

    .perro-navegacion {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .perro-nav-anterior,
    .perro-nav-siguiente {
        max-width: 100%;
    }
}


/* --------------------------------------------------------------------------
   2. LISTADO / ARCHIVO DE PERROS (archive-perro.php)
   -------------------------------------------------------------------------- */

.perros-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Cabecera del listado */
.perros-header {
    text-align: center;
    padding: 4rem 0 3rem;
}

.perros-archive-title {
    font-size: 4rem;
    font-weight: 700;
    color: #004a83;
    margin: 0 0 1.5rem;
    position: relative;
    display: inline-block;
}

.perros-archive-title::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #004a83, #007732);
    border-radius: 2px;
}

.perros-archive-subtitle {
    font-size: 1.8rem;
    color: #666;
    font-weight: 300;
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.6;
}

/* Filtros */
.perros-filtros {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.perros-filtros-form {
    display: inline-flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.perros-filtros-form select {
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    width: auto;
    min-width: 180px;
}

.perros-filtros-form select:focus {
    border-color: #004a83;
    outline: none;
}

.perros-filtro-limpiar {
    color: #e74c3c;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
}

.perros-filtro-limpiar:hover {
    text-decoration: underline;
    color: #c0392b;
}

/* Grid de tarjetas */
.perros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Tarjeta individual */
.perro-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.perro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 74, 131, 0.15);
}

.perro-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Imagen de la tarjeta */
.perro-card-imagen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.perro-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.perro-card:hover .perro-card-imagen img {
    transform: scale(1.05);
}

/* Sin foto */
.perro-card-sin-foto {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4f0, #dde8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #004a83;
    opacity: 0.3;
}

/* Info en la tarjeta */
.perro-card-info {
    padding: 2rem 2.5rem;
}

.perro-card-nombre {
    font-size: 2.2rem;
    font-weight: 700;
    color: #004a83;
    margin: 0 0 1rem;
    text-align: left;
}

.perro-card-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.perro-card-dato {
    font-size: 1.3rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
}

.perro-card-dato .fa {
    color: #004a83;
    margin-right: 0.3rem;
}

/* Paginación */
.perros-paginacion {
    text-align: center;
    padding: 3rem 0 5rem;
}

.perros-paginacion .page-numbers {
    display: inline-block;
    padding: 1rem 1.5rem;
    margin: 0 0.3rem;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #004a83;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.perros-paginacion .page-numbers.current {
    background: #004a83;
    color: #fff;
}

.perros-paginacion .page-numbers:hover:not(.current) {
    background: #e8f4f0;
}

/* No encontrados */
.perros-no-encontrados {
    text-align: center;
    padding: 8rem 2rem;
    color: #888;
}

.perros-no-encontrados .fa {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 2rem;
    display: block;
}

.perros-no-encontrados h2 {
    color: #555;
    font-weight: 600;
    margin-bottom: 1rem;
}

.perros-no-encontrados .button {
    margin-top: 2rem;
}

/* Responsive listado */
@media only screen and (max-width: 990px) {
    .perros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .perros-archive-title {
        font-size: 3.2rem;
    }
}

@media only screen and (max-width: 544px) {
    .perros-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .perros-archive-title {
        font-size: 2.6rem;
    }

    .perros-archive-subtitle {
        font-size: 1.6rem;
    }

    .perros-header {
        padding: 3rem 0 2rem;
    }

    .perros-filtros-form select {
        min-width: 140px;
    }
}
