@import url('https://fonts.googleapis.com/css2?family=Anton&family=Karla:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
    --hp-corcho:#E8DCC3;
    --hp-tinta:#241F1A;
    --hp-tinta-suave:#4a4038;
    --hp-rojo:#C0392B;
    --hp-verde:#3F6B3A;
    --hp-cinta:#E8B34E;
    --hp-papel:#FBF6EA;
}

.hp-detalle {
    max-width: 880px;
    margin: 0 auto;
    font-family: 'Karla', sans-serif;
    color: var(--hp-tinta);
}

/* ---------- Tarjeta principal tipo póster ---------- */
.hp-detalle-poster {
    position: relative;
    background: var(--hp-papel);
    padding: 40px 40px 34px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
    border-radius: 2px;
}

.hp-detalle-poster::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff6b5b, var(--hp-rojo));
    box-shadow: 0 3px 4px rgba(0,0,0,0.4);
    z-index: 3;
}

.hp-detalle-cabecera {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 720px) {
    .hp-detalle-cabecera {
        grid-template-columns: 1fr;
    }
    .hp-detalle-poster {
        padding: 30px 22px 26px;
    }
}

.hp-detalle-imagen-principal {
    position: relative;
}

.hp-detalle-foto {
    width: 100%;
    border-radius: 2px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3.4;
    filter: sepia(8%) contrast(1.02);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.hp-detalle-foto-placeholder {
    background: linear-gradient(135deg, #ddd3ba, #e9e0cb);
}

.hp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 2px;
    color: var(--hp-papel);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hp-badge-medicacion { background: var(--hp-tinta); }
.hp-badge-perdido    { background: var(--hp-rojo); }
.hp-badge-encontrado { background: var(--hp-verde); }

.hp-detalle-eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--hp-papel);
    background: var(--hp-rojo);
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transform: rotate(-1.5deg);
    margin-bottom: 12px;
}

.hp-detalle-nombre {
    margin: 0 0 18px;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 2.6rem;
    line-height: 1;
}

.hp-detalle-ficha {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hp-detalle-ficha li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #cabf9f;
    font-size: 0.95rem;
}

.hp-detalle-ficha li span {
    color: var(--hp-tinta-suave);
}

.hp-detalle-ficha li strong {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    text-align: right;
}

.hp-detalle-texto {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px dashed #cabf9f;
}

.hp-detalle-texto h3 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.hp-detalle-texto p {
    line-height: 1.65;
    color: var(--hp-tinta-suave);
    margin: 0 0 22px;
}

.hp-detalle-galeria {
    margin-top: 30px;
}

.hp-detalle-galeria h3 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.hp-detalle-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.hp-detalle-galeria-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    transition: opacity 0.2s ease;
}

.hp-detalle-galeria-item:hover img { opacity: 0.85; }

/* ---------- Botones de acción ---------- */
.hp-detalle-acciones {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px dashed #cabf9f;
}

.hp-boton {
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 22px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.hp-boton:hover { transform: translateY(-2px); }

.hp-boton-visto {
    background: var(--hp-verde);
    color: var(--hp-papel);
    flex: 1;
    justify-content: center;
    min-width: 220px;
}

.hp-boton-compartir {
    background: var(--hp-tinta);
    color: var(--hp-papel);
    flex: 1;
    justify-content: center;
    min-width: 220px;
}

.hp-boton-activo { box-shadow: inset 0 0 0 2px var(--hp-cinta); }

.hp-boton-enviar {
    background: var(--hp-rojo);
    color: var(--hp-papel);
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

/* ---------- Panel "he visto a esta mascota" ---------- */
.hp-panel {
    margin-top: 18px;
    background: #f2ecd9;
    border-radius: 4px;
    padding: 22px;
}

.hp-mini-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hp-mini-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .hp-mini-fila { grid-template-columns: 1fr; }
}

.hp-mini-campo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hp-mini-campo label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hp-tinta-suave);
}

.hp-mini-campo input,
.hp-mini-campo textarea {
    font-family: 'Karla', sans-serif;
    padding: 9px 11px;
    border: 1.5px solid var(--hp-tinta);
    border-radius: 3px;
    font-size: 0.9rem;
    background: #fff;
}

.hp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; opacity: 0;
}

/* ---------- Panel "compartir" ---------- */
.hp-compartir-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-compartir-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 16px;
    background: var(--hp-papel);
    border: 1.5px solid var(--hp-tinta);
    border-radius: 3px;
    color: var(--hp-tinta);
    text-decoration: none;
    cursor: pointer;
}

.hp-compartir-item:hover {
    background: var(--hp-tinta);
    color: var(--hp-papel);
}

/* ---------- Mensajes de estado ---------- */
.hp-form-mensaje {
    max-width: 880px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 0.92rem;
    font-family: 'Karla', sans-serif;
}

.hp-form-ok {
    background: #e6f0e3;
    color: #294a25;
    border: 1px solid #b9d4b0;
}

.hp-form-error {
    background: #fbe6e3;
    color: #7a1f16;
    border: 1px solid #edb7ae;
}

.hp-detalle-error {
    text-align: center;
    padding: 40px 0;
    color: var(--hp-tinta-suave);
}
