/* Contenedor principal */
.gato-detalle {
    padding: 2rem 0;
    background: #ffffff;
}

.container-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 3rem;
}

/* Galería de fotos */
.galeria-principal {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.foto-principal {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e8ecef;
}

.fotos-adicionales {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.foto-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid #e8ecef;
}

.foto-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Información del gato */
.info-gato h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.estado-badge {
    margin-bottom: 2rem;
}

.datos-basicos {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e8ecef;
}

.dato {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.dato:last-child {
    border-bottom: none;
}

.dato .label {
    font-weight: 600;
    color: #7f8c8d;
}

.dato .valor {
    color: #2c3e50;
    font-weight: 500;
}

.descripcion, .personalidad {
    margin-bottom: 2rem;
}

.descripcion h3, .personalidad h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.descripcion p, .personalidad p {
    color: #7f8c8d;
    line-height: 1.8;
}

/* Botón adoptar */
.btn-adoptar {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-adoptar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.login-mensaje {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ffeaa7;
}

.login-mensaje p {
    color: #856404;
    margin: 0;
}

.login-mensaje a {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.login-mensaje a:hover {
    text-decoration: underline;
}

/* Bitácora */
.container-bitacora {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 20px;
}

.container-bitacora h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 700;
}

.bitacora-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.bitacora-entrada {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8ecef;
}

.entrada-fecha {
    min-width: 150px;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.entrada-contenido {
    flex: 1;
}

.tipo-icono {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.entrada-contenido p {
    color: #2c3e50;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.entrada-contenido strong {
    color: #3498db;
}

.bitacora-foto {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #e8ecef;
}

/* Bitácora bloqueada */
.bloqueo-mensaje {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e8ecef;
    max-width: 700px;
    margin: 0 auto;
}

.bloqueo-mensaje p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #7f8c8d;
    line-height: 1.8;
}

.bloqueo-mensaje p:first-child {
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 600;
}

.mensaje-vacio {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

/* Botón volver */
.btn-volver {
    display: inline-block;
    margin: 2rem auto;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-volver:hover {
    background: #ecf0f1;
    text-decoration: none;
}

.container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container-detalle {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .galeria-principal {
        position: static;
    }
    
    .foto-principal {
        height: 300px;
    }
    
    .info-gato h1 {
        font-size: 2rem;
    }
    
    .bitacora-entrada {
        flex-direction: column;
        gap: 1rem;
    }
    
    .entrada-fecha {
        min-width: auto;
    }
    
    .container-bitacora h2 {
        font-size: 1.5rem;
    }
}
