/* ========================================================
   PEDRINO ELECTRICISTAS — SISTEMA VISUAL HIGH-TECH BENTO
   Arquitectura Modular de Alto Rendimiento
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-deep: #070b14;
  --bg-surface: #0d1527;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(22, 33, 62, 0.95);
  
  --border-subtle: rgba(250, 204, 21, 0.18);
  --border-glow: rgba(250, 204, 21, 0.55);
  --border-glass: rgba(255, 255, 255, 0.08);

  --accent-voltage: #facc15;       /* Amarillo Alta Tensión */
  --accent-secondary: #eab308;
  --accent-alert: #f97316;         /* Naranja Seguridad */
  --accent-cyan: #38bdf8;          /* Azul Circuito */
  --status-ok: #10b981;
  --status-live: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-sm: 10px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1260px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(250, 204, 21, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- BARRA DE NAVEGACIÓN HIGH-TECH --- */
.pedrino-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 32px));
  height: 72px;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 200;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-voltage), var(--accent-alert));
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #070b14;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.brand-sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--accent-voltage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-item a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-item a:hover {
  color: var(--accent-voltage);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.85); }
}

.btn-cart-toggle {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-cart-toggle:hover {
  border-color: var(--accent-voltage);
  background: rgba(250, 204, 21, 0.1);
}

.cart-pill {
  background: var(--accent-voltage);
  color: #070b14;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 99px;
}

/* --- HERO BENTO GRID (RADICALMENTE DISTINTO) --- */
.bento-hero-section {
  padding-top: 130px;
  padding-bottom: 80px;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-main-card {
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(11, 17, 32, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.bento-main-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15), transparent 70%);
  pointer-events: none;
}

.live-dispatch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fca5a5;
  width: fit-content;
  margin-bottom: 24px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-main-title span {
  color: var(--accent-voltage);
  text-shadow: 0 0 24px rgba(250, 204, 21, 0.3);
}

.hero-main-p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-bento-primary {
  height: 56px;
  padding: 0 30px;
  background: linear-gradient(135deg, var(--accent-voltage), var(--accent-secondary));
  color: #070b14;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3);
}

.btn-bento-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 14px 40px rgba(250, 204, 21, 0.45);
}

.btn-bento-outline {
  height: 56px;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-bento-outline:hover {
  border-color: var(--accent-voltage);
  background: rgba(255, 255, 255, 0.08);
}

/* --- BENTO WIDGET 1: CALCULADORA RÁPIDA RETIE EN VIVO --- */
.bento-card-calc {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calc-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(7, 11, 20, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.calc-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

.calc-option-row:hover {
  background: rgba(250, 204, 21, 0.08);
}

.calc-live-total {
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-price-big {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-voltage);
}

/* --- BENTO WIDGET 2: TELEMETRÍA TÉCNICA EN VIVO --- */
.bento-card-telemetry {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tele-node {
  border-left: 2px solid var(--accent-voltage);
  padding-left: 12px;
}

.tele-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.tele-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.tele-status {
  font-size: 0.7rem;
  color: var(--status-ok);
  font-weight: 600;
}

/* --- SECCIONES Y CONTENEDOR --- */
.pedrino-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 20px;
}

.section-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-voltage);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
}

/* --- TARJETAS BENTO DE SERVICIOS / PRODUCTOS --- */
.cards-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.service-bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.service-bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.card-top-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.9);
}

.card-retie-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid var(--accent-voltage);
  color: var(--accent-voltage);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.card-content-box {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.card-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.spec-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--accent-cyan);
}

.card-desc-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-bottom-action {
  border-top: 1px solid var(--border-glass);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-tag-cop {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-voltage);
}

.btn-add-retie {
  background: var(--accent-voltage);
  color: #070b14;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-retie:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* --- ACORDEÓN INTERACTIVO FAQ --- */
.faq-accordion {
  max-width: 860px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.faq-trigger:hover {
  color: var(--accent-voltage);
}

.faq-body-content {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-card-item.active .faq-body-content {
  display: block;
}

.faq-card-item.active {
  border-color: var(--border-subtle);
}

/* --- DRAWER CARRITO MEJORADO CON CONTROLES (+ / -) --- */
.cart-drawer-pro {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(28px);
  border-left: 1px solid var(--border-subtle);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
}

.cart-drawer-pro.open {
  right: 0;
}

.cart-head-pro {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-body-pro {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-row-pro {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.cart-row-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.cart-row-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.qty-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.qty-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.cart-footer-pro {
  border-top: 1px solid var(--border-glass);
  padding: 24px 28px;
  background: rgba(7, 11, 20, 0.95);
}

/* --- FOOTER TÉCNICO --- */
.pedrino-footer {
  border-top: 1px solid var(--border-glass);
  background: #04070d;
  padding: 80px 20px 40px;
  margin-top: 80px;
}

.footer-grid-pro {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 990px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-main-card { grid-row: auto; }
  .footer-grid-pro { grid-template-columns: 1fr; gap: 30px; }
  .nav-menu { display: none; }
}
