/* =========================================================
   DETALLE MASCOTA - Hoja de estilos de la vista de perfil de mascota
   ========================================================= */

/* Contenedor limitado en ancho */
.wrapper-pet-detail {
    max-width: 1000px;
    margin: 40px auto;
}

/* Tarjeta principal unificada */
.pet-premium-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
}

/* Columna izquierda: imagen */
.pet-visual-side {
    width: 40%;
    position: relative;
    min-height: 450px;
}

@media (max-width: 768px) {
    .pet-visual-side { width: 100%; min-height: 400px; }
    .pet-info-side   { width: 100% !important; }
}

/* Imagen que ocupa todo el lado visual */
.pet-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

/* Gradiente inferior sobre la imagen */
.pet-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: #fff;
}

/* Nombre grande de la mascota */
.pet-name-main {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

/* Fila de pills de características */
.pet-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

/* Pill translúcido sobre la imagen */
.glass-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 500;
}

/* Columna derecha: datos de la mascota */
.pet-info-side {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* Encabezado de sección con línea separadora */
.info-heading {
    color: #1a5276;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-heading::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #f0f0f0;
}

/* Grid de datos de la mascota */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.data-item .label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.data-item .value {
    color: #1e293b;
    font-weight: 500;
    font-size: 1.05rem;
}

/* Panel de historia médica */
.medical-container {
    background: #fff;
    border: 1.5px solid #edf2f7;
    border-radius: 20px;
    padding: 24px;
    margin-top: 10px;
    position: relative;
}

/* Badge de fecha en la historia médica */
.medical-date-badge {
    background: #eef2ff;
    color: #6366f1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 24px; right: 24px;
    display: flex; align-items: center; gap: 5px;
}

.medical-item { margin-bottom: 15px; }
.medical-item .label { color: #cbd5e1; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.medical-item .text  { color: #334155; font-size: 0.95rem; line-height: 1.5; }

/* Panel de información del veterinario */
.vet-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

/* Avatar circular del veterinario */
.vet-avatar-circle {
    width: 40px; height: 40px;
    background: #1a5276; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

.vet-details  { line-height: 1.2; }
.vet-name     { color: #1e293b; font-weight: 600; font-size: 0.9rem; margin: 0; }
.vet-id       { color: #94a3b8; font-size: 0.75rem; margin: 0; }

/* Fila de botones de acción */
.actions-pet {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Botón Volver */
.btn-modern-back {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-modern-back:hover { background: #f8fafc; color: #1e293b; }

/* Botón Solicitar Adopción */
.btn-modern-adopt {
    flex-grow: 1;
    background: #1d70b8;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 35px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(29, 112, 184, 0.3);
}

.btn-modern-adopt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 112, 184, 0.4);
    background: #1a5276;
}

/* Botón Solicitar Adopción (Deshabilitado Visualmente) */
.btn-modern-adopt-disabled {
    flex-grow: 1;
    background: #cbd5e1; /* Gris elegante apagado */
    color: #64748b !important; /* Letra oscura contrastante */
    border: none;
    border-radius: 50px;
    padding: 10px 35px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
    cursor: not-allowed;
    width: 100%;
    display: block;
    user-select: none;
}

/* Pill de estado superpuesto en el nombre */
.status-pill-absolute {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.75rem;
    vertical-align: middle;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
}

/* Estado Reservado (dorado) */
.bg-custom-gold {
    background: rgba(255, 166, 0, 0.9);
    color: #000;
}
