/* =============================================
   MOONLY — CLOUD DEDICATED (dedicados.css)
   Layout de listado horizontal (filas), deliberadamente
   distinto al grid de tarjetas de planes.css (Minecraft).
   Inspirado en el formato de listado de proveedores bare-metal:
   specs en columnas, precio + CTA a la derecha.
   ============================================= */

body.dedicados-body {
    background-image:
        linear-gradient(var(--bg-page-overlay), var(--bg-page-overlay)),
        url('../images/home/fondo.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Contenedor propio para el listado: el .container global topa en 1160px,
   y estas filas necesitan más ancho para que precio+botón queden lado a
   lado sin apretar las columnas de specs. */
.dedi-wide-container {
    width: 100%;
    padding: 0 24px;
    margin: 0 auto;
}

/* ── RESULTS BAR ── */
.dedi-results-bar {
    max-width: 1340px;
    margin: 0 auto 18px;
    padding: 0 4px;
    display: flex;
    justify-content: flex-end;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
}

/* ── LISTADO (filas en vez de grid) ── */
.dedi-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1340px; /* Más ancho que el resto del sitio (1160px) para que la fila respire mejor */
    margin: 0 auto;
}

.dedi-row {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 26px 32px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.dedi-row:hover { transform: translateY(-2px); border-color: var(--border); box-shadow: 0 16px 36px var(--shadow-color); }

/* Fila destacada (la oferta más potente: Ryzen 9900X) */
.dedi-row.featured {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan), 0 16px 36px rgba(122,221,255,.12);
}

/* ── BLOQUE CPU (marca + modelo + badge) ── */
.dedi-cpu-block {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dedi-cpu-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: .3px;
}
.dedi-cpu-brand i { font-size: .95rem; color: var(--cyan); }
.dedi-cpu-name { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.25; }
.dedi-rapid-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    font-weight: 700;
    color: var(--yellow);
    margin-top: 4px;
}
.dedi-rapid-badge i { font-size: .72rem; }

/* ── SPECS (columnas centrales) ── */
.dedi-specs {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.dedi-spec { display: flex; flex-direction: column; gap: 6px; }
.dedi-spec-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
}
.dedi-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 6px;
    background: rgba(122,221,255,.12);
    color: var(--cyan);
    font-size: .68rem;
    flex-shrink: 0;
}
.dedi-spec-value { font-size: .95rem; font-weight: 700; color: var(--text); }

/* ── PRECIO + CTA ── */
.dedi-price-block {
    flex: 0 0 auto;
    display: flex;
    align-items: center; /* Precio y botón centrados en la misma línea horizontal */
    gap: 22px;
    margin-left: auto; /* Empuja todo el bloque hacia el extremo derecho de la fila */
}
.dedi-price-row { text-align: right; white-space: nowrap; }
.dedi-price { font-size: 1.9rem; font-weight: 800; color: var(--yellow); letter-spacing: -.5px; line-height: 1; }
.dedi-price-period { display: block; font-size: .74rem; color: var(--muted); margin-top: 3px; }

.dedi-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px; /* Ya no depende de width:100% de una columna angosta, define su propio tamaño */
    border-radius: 10px;
    background: var(--yellow);
    border: 1px solid var(--yellow);
    color: #04101a;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: filter .2s ease, box-shadow .2s ease;
}
.dedi-order-btn:hover { filter: brightness(1.08); box-shadow: 0 0 18px rgba(250,204,21,.35); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .dedi-specs { grid-template-columns: repeat(3, 1fr); }
    .dedi-row { flex-wrap: wrap; }
    .dedi-price-block { flex: 1 1 100%; justify-content: space-between; margin-top: 10px; margin-left: 0; padding-top: 16px; border-top: 1px solid var(--border-faint); }
}

@media (max-width: 720px) {
    .dedi-row { padding: 20px; gap: 18px; }
    .dedi-cpu-block { flex: 1 1 100%; }
    .dedi-specs { grid-template-columns: repeat(2, 1fr); flex: 1 1 100%; }
    .dedi-results-bar { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .dedi-specs { grid-template-columns: 1fr 1fr; }
    .dedi-price-block { flex-direction: column; align-items: stretch; gap: 10px; }
    .dedi-price-row { text-align: left; }
}