:root {
    --gold: #b8972e;
    --dark: #222;
    --white: #ffffff;
    --bg: #f0f2f5;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding-top: 70px;
}

/* Menú Fijo */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.nav-item { color: #ccc; font-size: 11px; text-transform: uppercase; font-weight: bold; text-decoration: none; }
.nav-item:hover { color: white; }

/* Grid Responsivo */
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.header { text-align: center; margin-bottom: 30px; }

.peseta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (min-width: 600px) { .peseta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .peseta-grid { grid-template-columns: repeat(4, 1fr); } }

/* Tarjetas */
.peseta-card {
    background: var(--white);
    padding: 25px 15px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    transition: 0.3s ease;
    cursor: pointer;
}
.peseta-card span { display: block; font-size: 1.8rem; color: var(--gold); margin-bottom: 5px; }
.peseta-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }

/* =====================================================
   ESTILOS MODAL DE PRECIOS (centralizados desde get_precios.php)
   ===================================================== */
.titulo-principal {
    color: #002d72; font-family: sans-serif; font-size: 22px;
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 3px solid #d4af37; font-weight: bold;
}
.contenedor-imagenes {
    display: flex; gap: 15px; margin-bottom: 25px; justify-content: center;
    background: #f9f9f9; padding: 15px; border-radius: 8px; border: 1px solid #eee;
}
.wrapper-foto { width: 48%; text-align: center; }
.foto-ficha { max-width: 100%; height: auto; border-radius: 5px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border: 1px solid #ddd; background: white; }
.label-foto { display: block; font-size: 11px; color: #777; text-transform: uppercase; margin-top: 8px; font-weight: bold; }

.ficha-tecnica { background: #fff; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 25px; overflow: hidden; font-family: sans-serif; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.ficha-header { background: #002d72; color: white; padding: 12px 15px; font-weight: bold; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ficha-item { padding: 12px 15px; border-bottom: 1px solid #f0f0f0; border-right: 1px solid #f0f0f0; font-size: 14px; }
.ficha-item strong { color: #555; display: block; font-size: 11px; text-transform: uppercase; margin-bottom: 3px; }
.ficha-desc { padding: 15px; background: #fdfdfd; font-size: 14px; line-height: 1.6; color: #333; border-top: 1px solid #eee; }

.tabla-precios { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-family: sans-serif; table-layout: fixed; }
.tabla-precios th { background: #f8f9fa; color: #666; font-size: 12px; text-transform: uppercase; padding: 12px; border: 1px solid #eee; }
.tabla-precios td { padding: 12px; border: 1px solid #eee; font-size: 14px; vertical-align: middle; }

.linea-separadora { border-top: 2px solid #002d72 !important; }
.serie-texto { font-weight: bold; color: #444; }

.col-serie     { width: 20%; }
.col-grado     { width: 26%; }
.col-valor     { width: 32%; text-align: center; }
.col-pob       { width: 9%;  text-align: center; font-size: 12px; color: #888; }
.pob-num       { font-weight: bold; color: #6a9fd8; }
.pob-vacio     { color: #ddd; }
.col-coleccion { width: 13%; text-align: center; }

.seccion-titulo { margin-top: 25px; margin-bottom: 10px; color: #333; font-size: 18px; font-weight: bold; border-left: 5px solid #002d72; padding-left: 10px; }
.valor-celda { color: #002d72; font-weight: bold; background: #f0f7ff; text-align: center; font-size: 16px; }

/* =====================================================
   BOTONES DE COLECCIÓN
   ===================================================== */
.btn-col {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    white-space: nowrap;
}

/* Sin ejemplar: gris con borde punteado */
.btn-anadir, .btn-añadir {
    background: #f5f5f5;
    color: #888;
    border: 1.5px dashed #bbb;
}
.btn-anadir:hover, .btn-añadir:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Con ejemplares: verde suave + tick */
.btn-tiene {
    background: #eaffea;
    color: #217a3a;
    border: 1.5px solid #82c996;
}
.btn-tiene:hover { background: #28a745; color: white; border-color: #28a745; }

/* Badge numérico dentro del botón */
.badge-col {
    display: inline-block;
    background: #217a3a;
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}
.btn-tiene:hover .badge-col { background: rgba(255,255,255,0.3); }