/* ============================================================
   style.css — Estilos de Ashes to Assets
   Versión con imágenes completas y fondo blanco en contenedores
   ============================================================ */

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Open Sans', Arial, sans-serif; font-size: 13px; color: #333; background: #f0f0f0; }

/* ------------------------------------------------------------
   TOP BAR
   ------------------------------------------------------------ */
.top-bar { background: #1a1a1a; color: #ccc; font-size: 11px; padding: 5px 0; }
.top-bar .inner { max-width: 1200px; margin: auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; text-decoration: none; margin-left: 12px; }
.top-bar a:hover { color: #fff; }

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
header { background: #e30613; padding: 0; width: 100%; }
.header-top { max-width: 1200px; margin: auto; padding: 10px 15px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-box { background: #fff; color: #e30613; font-size: 36px; font-weight: 900; padding: 2px 12px; letter-spacing: -2px; border-radius: 3px; line-height: 1.1; }
.logo-tag { color: #fff; font-size: 10px; font-weight: 600; margin-left: 8px; line-height: 1.3; max-width: 80px; }

.search-bar { flex: 1; display: flex; position: relative; }
.search-bar input { flex: 1; padding: 10px 14px; font-size: 14px; border: none; outline: none; border-radius: 3px 0 0 3px; }
.search-bar button { background: #b00010; color: #fff; border: none; padding: 10px 18px; font-size: 14px; cursor: pointer; border-radius: 0 3px 3px 0; font-weight: 700; }
.search-bar button:hover { background: #8a000c; }

.search-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 48px; background: #fff; border: 1px solid #ddd; border-top: none; border-radius: 0 0 4px 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; max-height: 280px; overflow-y: auto; }
.search-dropdown.open { display: block; }
.search-dropdown-item { padding: 9px 14px; cursor: pointer; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: #f5f5f5; }
.search-dropdown-item .sd-platform { font-size: 10px; font-weight: 700; color: #999; text-transform: uppercase; margin-left: auto; }
.search-dropdown-item .sd-price { color: #e30613; font-weight: 800; }

.header-actions { display: flex; gap: 5px; flex-shrink: 0; }
.header-actions a { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 3px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.header-actions a:hover { background: rgba(255,255,255,0.25); }
.cart-badge { background: #e30613; color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
nav { background: #c0000f; width: 100%; }
nav .inner { max-width: 1200px; margin: auto; padding: 0 15px; display: flex; flex-wrap: wrap; }
nav a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; padding: 10px 14px; display: inline-block; text-transform: uppercase; letter-spacing: 0.3px; }
nav a:hover, nav a.active { background: #a00008; }

/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */
.breadcrumb { background: #fff; border-bottom: 1px solid #e5e5e5; }
.breadcrumb .inner { max-width: 1200px; margin: auto; padding: 8px 15px; font-size: 12px; color: #666; }
.breadcrumb a { color: #e30613; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   BANNER
   ------------------------------------------------------------ */
.banner-section { max-width: 1200px; margin: 15px auto; padding: 0 15px; display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.banner-main { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); border-radius: 4px; overflow: hidden; position: relative; padding: 40px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; }
.banner-main::before { content: ''; position: absolute; right: -30px; top: -30px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(227,6,19,0.3) 0%, transparent 70%); }
.banner-main h2 { color: #fff; font-size: 30px; font-weight: 900; line-height: 1.1; z-index: 1; }
.banner-main h2 span { color: #e30613; }
.banner-main p { color: #ccc; font-size: 14px; margin: 10px 0 20px; z-index: 1; }
.banner-main .btn-red { background: #e30613; color: #fff; padding: 8px 20px; border-radius: 3px; font-weight: 700; text-decoration: none; display: inline-block; font-size: 13px; z-index: 1; width: auto; max-width: 180px; white-space: nowrap; } /* Botón más pequeño */
.banner-main .btn-red:hover { background: #b00010; }
.banner-main .console-icons { position: absolute; right: 30px; bottom: 20px; display: flex; gap: 15px; z-index: 1; }
.console-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 10px 16px; text-align: center; color: #fff; font-size: 11px; font-weight: 700; }
.console-badge .icon { font-size: 28px; display: block; margin-bottom: 4px; }
.banner-side { display: flex; flex-direction: column; gap: 10px; }
.banner-side-item { border-radius: 4px; padding: 18px 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.banner-side-item.sell { background: linear-gradient(135deg, #2d5a27, #4a8c40); }
.banner-side-item.trade { background: linear-gradient(135deg, #1a3a6e, #2a5ca8); }
.banner-side-item h3 { color: #fff; font-size: 18px; font-weight: 800; }
.banner-side-item p { color: rgba(255,255,255,0.85); font-size: 12px; margin: 6px 0 12px; }
.banner-side-item a { background: rgba(255,255,255,0.9); color: #333; padding: 7px 16px; border-radius: 3px; font-weight: 700; text-decoration: none; font-size: 12px; display: inline-block; }
.banner-side-item a:hover { background: #fff; }
.banner-side-item .big-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 50px; opacity: 0.25; }

/* ------------------------------------------------------------
   SECCIONES
   ------------------------------------------------------------ */
.section { max-width: 1200px; margin: 0 auto 20px; padding: 0 15px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; border-bottom: 3px solid #e30613; padding-bottom: 8px; }
.section-header h2 { font-size: 18px; font-weight: 800; color: #1a1a1a; text-transform: uppercase; letter-spacing: 0.5px; }
.section-header a { color: #e30613; font-size: 12px; font-weight: 700; text-decoration: none; }
.section-header a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   PLATAFORMAS
   ------------------------------------------------------------ */
.platform-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.platform-card { border-radius: 6px; padding: 25px 20px; text-align: center; text-decoration: none; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.platform-card.ps4    { background: linear-gradient(135deg, #00278f, #003ec2); }
.platform-card.xbox   { background: linear-gradient(135deg, #0a5a08, #107C10); }
.platform-card.switch { background: linear-gradient(135deg, #c00010, #e4000f); }
.platform-card .p-icon { font-size: 48px; display: block; margin-bottom: 10px; }
.platform-card h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 5px; }
.platform-card p { color: rgba(255,255,255,0.8); font-size: 12px; margin-bottom: 15px; }
.platform-card .btn { background: rgba(255,255,255,0.9); color: #333; padding: 8px 18px; border-radius: 3px; font-weight: 700; font-size: 12px; display: inline-block; }
.platform-card .btn:hover { background: #fff; }

/* ------------------------------------------------------------
   GRID DE PRODUCTOS (index, catálogo, plataforma)
   ------------------------------------------------------------ */
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.product-card { background: #fff; border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; border: 1px solid #e5e5e5; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translateY(-2px); }

/* --- Contenedores de imagen - TAMAÑO GRANDE Y FONDO BLANCO --- */
.product-img,
.cat-card-img,
.prod-img {
    height: 240px;
    background: #ffffff;   /* Fondo blanco */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-img img,
.cat-card-img img,
.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
}
.product-img .condition,
.cat-cond {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.product-img .condition.b { background: #f57c00; }
.product-img .condition.c { background: #666; }
.cat-cond.A { background: #16a34a; }
.cat-cond.B { background: #d97706; }
.cat-cond.C { background: #dc2626; }

.product-info { padding: 10px; }
.product-info h4 { font-size: 12px; font-weight: 600; color: #1a1a1a; line-height: 1.3; margin-bottom: 6px; min-height: 32px; }
.product-platform { font-size: 10px; color: #999; margin-bottom: 4px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.product-prices { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.buy-price { font-size: 16px; font-weight: 800; color: #e30613; }
.sell-price { font-size: 11px; color: #666; }
.sell-price span { font-weight: 700; color: #2d7a27; }
.btn-comprar { width: 100%; background: #e30613; color: #fff; border: none; padding: 7px 0; border-radius: 3px; font-size: 12px; font-weight: 700; cursor: pointer; margin-top: 2px; transition: background 0.2s; text-align: center; display: block; text-decoration: none; }
.btn-comprar:hover { background: #b00010; }

/* ------------------------------------------------------------
   CATÁLOGO COMPLETO (catalogo.php)
   ------------------------------------------------------------ */
.catalogo-page { max-width: 1200px; margin: 0 auto; padding: 20px 15px 60px; }
.catalogo-titulo { font-size: 1.5rem; font-weight: 900; margin: 0 0 4px; color: #1a1a1a; }
.catalogo-sub    { font-size: 13px; color: #888; margin: 0 0 20px; }
.filtros-bar { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filtros-bar label { font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .4px; }
.filtros-bar select, .filtros-bar input { padding: 7px 12px; border: 1.5px solid #ddd; border-radius: 6px; font-size: 13px; background: #fff; cursor: pointer; font-family: inherit; }
.filtros-bar input[type="text"] { flex: 1; min-width: 180px; cursor: text; }
.btn-limpiar { padding: 7px 14px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-limpiar:hover { background: #e30613; color: #fff; border-color: #e30613; }
.conteo { font-size: 13px; color: #888; margin-bottom: 12px; }
.catalogo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-card { background: #fff; border-radius: 8px; border: 1px solid #e5e5e5; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.cat-card-img { height: 240px; background: #ffffff; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-card-body { padding: 10px; }
.cat-plat  { font-size: 10px; font-weight: 700; color: #999; text-transform: uppercase; margin-bottom: 3px; }
.cat-nombre { font-size: 12px; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin-bottom: 4px; min-height: 32px; }
.cat-genero { font-size: 10px; color: #888; margin-bottom: 8px; }
.cat-precios { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cat-precio { font-size: 16px; font-weight: 900; color: #e30613; }
.btn-ver { display: block; width: 100%; padding: 7px; background: #e30613; color: #fff; border: none; border-radius: 5px; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn-ver:hover { background: #b00010; }
.sin-res { text-align: center; padding: 60px 20px; color: #aaa; grid-column: 1/-1; display: none; }
@media (max-width: 900px) { .catalogo-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .catalogo-grid { grid-template-columns: repeat(2,1fr); } }

/* ------------------------------------------------------------
   PLATAFORMA (plataforma.php)
   ------------------------------------------------------------ */
.plat-hero { padding: 40px 20px; display: flex; align-items: center; gap: 20px; width: 100%; box-sizing: border-box; }
.plat-hero-emoji { font-size: 64px; line-height:1; }
.plat-hero h1 { font-size: 2rem; font-weight:900; margin:0 0 6px; }
.plat-hero p  { opacity:.85; margin:0; font-size:14px; }
.catalogo-header { padding:24px 20px 12px; max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.catalogo-header h2 { font-size:1.2rem; font-weight:900; margin:0; }
.catalogo-filtros { display:flex; gap:8px; }
.filtro-sel { padding:7px 14px; border:1px solid #ddd; border-radius:6px; font-size:13px; background:#fff; cursor:pointer; }
.productos-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:18px; padding:0 20px 40px; max-width:1200px; margin:0 auto; }
.prod-card { background:#fff; border-radius:10px; overflow:hidden; transition:transform .2s,box-shadow .2s; box-shadow:0 2px 8px rgba(0,0,0,.07); }
.prod-card:hover { transform:translateY(-3px); box-shadow:0 6px 18px rgba(0,0,0,.12); }
.prod-img { height: 240px; background:#ffffff; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.prod-img img { width:100%; height:100%; object-fit:contain; }
.prod-body { padding:12px; }
.prod-nombre { font-size:13px; font-weight:700; color:#1a1a1a; margin-bottom:6px; }
.prod-cond { display:inline-block; font-size:10px; font-weight:700; padding:2px 8px; border-radius:4px; margin-bottom:8px; }
.prod-precios { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.prod-precio { font-size:17px; font-weight:900; color:#e30613; }
.plat-search-bar { display:flex; gap:10px; padding:20px 20px 0; max-width:1200px; margin:0 auto; flex-wrap:wrap; }
.plat-search-bar input { flex:1; min-width:200px; padding:10px 14px; border:2px solid #ddd; border-radius:6px; font-size:14px; outline:none; }
.plat-search-bar input:focus { border-color:#e30613; }
.plat-search-bar button { padding:10px 20px; background:#e30613; color:#fff; border:none; border-radius:6px; font-size:13px; font-weight:700; cursor:pointer; }
.sin-resultados { text-align:center; padding:40px; color:#999; font-size:15px; display:none; grid-column:1/-1; }

/* ------------------------------------------------------------
   PRODUCTO (producto.php) - Imagen principal
   ------------------------------------------------------------ */
.prod-detalle-wrap { max-width:1100px; margin:24px auto; padding:0 16px 60px; display:grid; grid-template-columns:380px 1fr; gap:32px; align-items:start; }
.pd-galeria { position:sticky; top:20px; }
.pd-img-principal { height: 450px; background:#f5f5f5; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:12px; }
.pd-img-principal img { width:100%; height:100%; object-fit:contain; border-radius:12px; }
.pd-miniaturas { display:flex; gap:8px; margin-top:12px; }
.pd-mini { background:#f7f7f7; border:2px solid #e5e5e5; border-radius:8px; width:64px; height:64px; display:flex; align-items:center; justify-content:center; font-size:28px; cursor:pointer; transition:border-color .2s; }
.pd-mini:hover, .pd-mini.activa { border-color:#e30613; }
.pd-info { }
.pd-plataforma { font-size:12px; font-weight:700; color:#999; text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.pd-titulo { font-size:26px; font-weight:900; color:#1a1a1a; margin-bottom:14px; line-height:1.2; }
.pd-precio-box { display:flex; align-items:baseline; gap:16px; margin-bottom:18px; padding:16px; background:#fff; border:1px solid #e5e5e5; border-radius:10px; }
.pd-precio-compra { font-size:32px; font-weight:900; color:#e30613; }
.pd-precio-label  { font-size:11px; color:#999; font-weight:600; text-transform:uppercase; }
.pd-meta { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.pd-meta-row { display:flex; align-items:center; gap:10px; font-size:13px; }
.pd-meta-label { font-weight:700; color:#555; min-width:110px; }
.pd-condicion-badge { display:inline-block; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:700; color:#fff; }
.pd-clasificacion { display:inline-flex; align-items:center; gap:6px; background:#1a1a1a; color:#fff; padding:4px 10px; border-radius:6px; font-size:12px; font-weight:700; }
.pd-descripcion-title { font-size:15px; font-weight:800; color:#1a1a1a; margin-bottom:8px; border-bottom:2px solid #e30613; padding-bottom:6px; }
.pd-descripcion { font-size:14px; color:#555; line-height:1.7; margin-bottom:24px; }
.pd-botones { display:flex; flex-direction:column; gap:10px; }
.btn-agregar { width:100%; padding:14px; background:#e30613; color:#fff; border:none; border-radius:8px; font-size:15px; font-weight:800; cursor:pointer; transition:background .2s; }
.btn-agregar:hover { background:#b00010; }
.btn-volver  { width:100%; padding:12px; background:#f5f5f5; color:#333; border:1px solid #ddd; border-radius:8px; font-size:14px; font-weight:700; cursor:pointer; text-decoration:none; text-align:center; display:block; }
.btn-volver:hover { background:#e5e5e5; }
.toast { position:fixed; bottom:24px; right:24px; background:#1a1a1a; color:#fff; padding:14px 20px; border-radius:8px; font-size:14px; font-weight:600; box-shadow:0 4px 20px rgba(0,0,0,.3); transform:translateY(80px); opacity:0; transition:all .3s; z-index:9999; }
.toast.show { transform:translateY(0); opacity:1; }
@media (max-width:768px) { .prod-detalle-wrap { grid-template-columns:1fr; } .pd-galeria { position:static; } }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer { background: #1a1a1a; margin-top: 40px; width: 100%; }
.footer-top { padding: 48px 20px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-brand h3 { color: #fff; font-size: 22px; font-weight: 900; margin: 0 0 12px; }
.footer-brand p  { color: #888; font-size: 13px; line-height: 1.7; }
.footer-col h4   { color: #e30613; font-size: 12px; font-weight: 700; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-col ul   { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2e2e2e; }
.footer-bottom .inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom span { color: #555; font-size: 12px; }
.footer-legal a { color: #555; text-decoration: none; font-size: 12px; }
.footer-legal a:hover { color: #aaa; }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 16px; } .footer-bottom .inner { flex-direction: column; text-align: center; } }

/* ------------------------------------------------------------
   MODALES DE PERFIL (incluidos desde header.php)
   ------------------------------------------------------------ */
.perfil-wrapper { position:relative; }
.perfil-btn { background:rgba(255,255,255,.15); border:none; color:#fff; padding:5px 10px; border-radius:3px; cursor:pointer; display:flex; align-items:center; gap:7px; font-size:12px; font-weight:600; font-family:inherit; transition:background .2s; }
.perfil-btn:hover { background:rgba(255,255,255,.28); }
.perfil-avatar { width:28px; height:28px; border-radius:50%; background:#fff; color:#e30613; font-size:13px; font-weight:900; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
.perfil-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.perfil-nombre { max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.perfil-dropdown { display:none; position:absolute; top:calc(100% + 8px); right:0; background:#fff; border-radius:10px; box-shadow:0 8px 32px rgba(0,0,0,.18); min-width:225px; z-index:9999; overflow:hidden; animation:dropIn .15s ease; }
.perfil-dropdown.open { display:block; }
@keyframes dropIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

.pd-head { display:flex; align-items:center; gap:12px; padding:14px 16px; background:#f9f9f9; border-bottom:1px solid #f0f0f0; }
.pd-avatar-lg { width:40px; height:40px; border-radius:50%; background:#e30613; color:#fff; font-size:17px; font-weight:900; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
.pd-avatar-lg img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.pd-uname { font-size:13px; font-weight:700; color:#1a1a1a !important; }
.pd-uemail { font-size:11px; color:#888 !important; margin-top:1px; word-break:break-all; }
.pd-sep { border:none; border-top:1px solid #f0f0f0; margin:0; }
.pd-item { display:flex; align-items:center; gap:10px; padding:11px 16px; font-size:13px; color:#333 !important; text-decoration:none; transition:background .15s; }
.pd-item:hover { background:#f5f5f5; }
.pd-item span { font-size:16px; width:20px; text-align:center; }
.pd-danger { color:#e30613 !important; }
.pd-danger:hover { background:#fff0f0 !important; }

.mp-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:99999; align-items:center; justify-content:center; }
.mp-overlay.open { display:flex; }
.mp-box { background:#fff; border-radius:12px; width:100%; max-width:390px; margin:16px; box-shadow:0 20px 60px rgba(0,0,0,.25); overflow:hidden; animation:modalIn .2s ease; }
@keyframes modalIn { from{opacity:0;transform:translateY(-14px)} to{opacity:1;transform:translateY(0)} }
.mp-hdr { background:#e30613; color:#fff; padding:13px 18px; display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:700; }
.mp-hdr button { background:none; border:none; color:#fff; font-size:20px; cursor:pointer; line-height:1; }
.mp-hdr button:hover { opacity:.8; }
.mp-body { padding:20px; }
.mp-group { margin-bottom:14px; }
.mp-group label { display:block; font-size:12px; font-weight:700; color:#555; margin-bottom:5px; }
.mp-group label small { font-weight:400; color:#aaa; }
.mp-group input { width:100%; padding:10px 12px; border:1.5px solid #ddd; border-radius:7px; font-size:14px; font-family:inherit; box-sizing:border-box; outline:none; transition:border-color .2s; }
.mp-group input:focus { border-color:#e30613; }
.mp-save { width:100%; padding:12px; background:#e30613; color:#fff; border:none; border-radius:7px; font-size:14px; font-weight:700; cursor:pointer; transition:background .2s; }
.mp-save:hover { background:#b00010; }
.mp-msg { font-size:13px; text-align:center; margin-top:10px; min-height:16px; }
.mp-msg.ok { color:#16a34a; } .mp-msg.error { color:#e30613; }
.mp-section-label { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.8px; color:#bbb; margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.mp-section-label::after { content:''; flex:1; border-top:1px solid #f0f0f0; }
.mp-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.foto-prev { width:88px; height:88px; border-radius:50%; background:#e30613; color:#fff; font-size:34px; font-weight:900; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; overflow:hidden; }
.foto-prev img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.foto-btn { display:inline-block; padding:9px 18px; background:#f5f5f5; border:1.5px solid #ddd; border-radius:7px; font-size:13px; font-weight:700; cursor:pointer; color:#333; transition:background .2s; }
.foto-btn:hover { background:#e5e5e5; }

/* ------------------------------------------------------------
   SIN RESULTADOS
   ------------------------------------------------------------ */
#no-results { display: none; max-width: 1200px; margin: 40px auto; padding: 0 15px; text-align: center; }
#no-results .no-results-box { background: #fff; border-radius: 6px; padding: 50px 20px; border: 1px solid #e5e5e5; }
#no-results .no-results-box .nr-icon { font-size: 60px; margin-bottom: 16px; }
#no-results .no-results-box h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
#no-results .no-results-box p { color: #666; font-size: 14px; }