/**
 * ============================================================
 * Landing: PointSeller para Restaurantes (sala + cocina + caja)
 * Muestra mockups reales de PointSeller (POS), PS Restaurant (Android) y PS KDS.
 * Reutiliza variables de modern-theme.css. Prefijo .rest-
 * ============================================================
 */

/* ===== Marcos de dispositivo ===== */
.device { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200); background: var(--white); }
.device img { display: block; width: 100%; height: auto; }
.device--browser { position: relative; }
.device--browser .device__bar {
    display: flex; align-items: center; gap: 6px; padding: 9px 12px;
    background: #e9edf3; border-bottom: 1px solid var(--gray-200);
}
.device--browser .device__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.device--browser .device__bar span:nth-child(1){ background:#f87171; }
.device--browser .device__bar span:nth-child(2){ background:#fbbf24; }
.device--browser .device__bar span:nth-child(3){ background:#34d399; }

.device--phone {
    max-width: 280px; margin: 0 auto; border: 9px solid #111827; border-radius: 30px;
    box-shadow: var(--shadow-2xl); background: #111827;
}
.device--phone img { border-radius: 21px; }

/* ===== Pilares (3 productos) ===== */
.rest-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.75rem; }
.rest-pillar {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--rounded-2xl);
    padding: 2rem; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.rest-pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.rest-pillar__icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: var(--rounded-xl);
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--white);
    background: var(--gradient-primary);
}
.rest-pillar__icon--dark { background: var(--gradient-dark); }
.rest-pillar__icon--green { background: linear-gradient(135deg,#10b981,#059669); }
.rest-pillar h3 { font-size: 1.2rem; margin: 0 0 0.25rem; color: var(--gray-900); }
.rest-pillar .rest-pillar__tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.rest-pillar p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; margin: 0.75rem 0 0; }

/* ===== Flujo ===== */
.rest-flow { display: flex; align-items: stretch; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.rest-flow__step {
    flex: 1 1 190px; max-width: 240px; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--rounded-xl); padding: 1.5rem; text-align: center; position: relative;
}
.rest-flow__num { width: 40px; height: 40px; margin: 0 auto 0.75rem; border-radius: 50%; background: var(--gradient-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.rest-flow__step h4 { font-size: 1.02rem; margin: 0 0 0.35rem; color: var(--gray-900); }
.rest-flow__step p { font-size: 0.88rem; color: var(--gray-500); margin: 0; }
.rest-flow__step .rest-flow__app { display:inline-block; margin-top:0.6rem; font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--primary); background:var(--primary-50); padding:0.2rem 0.6rem; border-radius:var(--rounded-full); }

/* ===== Módulo showcase (texto + imágenes) ===== */
.rest-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.rest-split.reverse > .rest-split__media { order: -1; }
.rest-split__badge { display:inline-block; font-size:0.78rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:var(--primary); background:var(--primary-50); padding:0.4rem 1rem; border-radius:var(--rounded-full); margin-bottom:1rem; }
.rest-split h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gray-900); margin: 0 0 1rem; }
.rest-split p.lead { color: var(--gray-600); font-size: 1.05rem; line-height: 1.75; }
.rest-split__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1.5rem; margin-top: 1.25rem; }
.rest-split__list li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--gray-700); font-size: 0.95rem; }
.rest-split__list li i { color: var(--success); margin-top: 0.25rem; }

/* ===== Galerías ===== */
.rest-gallery { display: grid; gap: 1.25rem; }
.rest-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.rest-gallery--phones { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start; }
.rest-shot figcaption { text-align: center; font-size: 0.82rem; color: var(--gray-500); margin-top: 0.6rem; }

/* Sección KDS (oscura) */
.rest-kds-section { background: var(--gradient-hero); color: var(--white); }
.rest-kds-section .rest-split h2 { color: var(--white); }
.rest-kds-section .rest-split p.lead { color: rgba(255,255,255,0.85); }
.rest-kds-section .rest-split__list li { color: rgba(255,255,255,0.9); }
.rest-kds-section .rest-split__badge { background: rgba(255,255,255,0.12); color: #93c5fd; }
.rest-kds-section .device { border-color: rgba(255,255,255,0.12); }
.rest-kds-section .rest-shot figcaption { color: rgba(255,255,255,0.6); }

/* Galería full con caption debajo (una franja de capturas) */
.rest-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }

@media (max-width: 900px) {
    .rest-split { grid-template-columns: 1fr; }
    .rest-split.reverse > .rest-split__media { order: 0; }
    .rest-split__list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .rest-gallery--2, .rest-gallery--phones { grid-template-columns: 1fr; }
}
