* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ================= MODALES GENERALES ================= */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-box{
  background: #ffffff;
  border-radius: 18px;
  padding: 26px;
  max-width: 1100px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  position: relative;
}

.modal-large{
  max-width: 1200px;
}

/* Botón cerrar */

.modal-close{
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #1e293b;
  cursor: pointer;
  transition: transform .2s ease;
}

.modal-close:hover{
  transform: scale(1.2);
}

/* ================= MODAL BASE ================= */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-box {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 28px 32px 32px;
}

/* botón cerrar */

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #c1121f;
}

/* ================= CALCULADORA ================= */

.calc-wrap {
  max-width: 100%;
}

.calc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.calc-logo {
  height: 64px;
}

.calc-header h2 {
  margin: 0;
  font-size: 22px;
  color: #003f88;
}

.calc-header p {
  margin: 4px 0 0;
  color: #6b7280;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-card {
  background: #f6f8fb;
  border-radius: 14px;
  padding: 18px;
}

.calc-card label {
  display: block;
  margin: 10px 0 4px;
  font-weight: 600;
  color: #003f88;
}

.calc-card select,
.calc-card input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

.calc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.calc-btn {
  margin-top: 14px;
  background: linear-gradient(90deg,#003f88,#c1121f);
  border: none;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.calc-btn.green {
  background: linear-gradient(90deg,#16a34a,#22c55e);
}

.calc-result {
  display: none;
  margin-top: 14px;
}

.calc-msg {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.product-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.summary {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.product-img {
  width: 160px;
  height: 160px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.product-img img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.calc-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.calc-aside {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.calc-aside h3 {
  margin-top: 0;
  color: #003f88;
}

/* ================= ZONA 1B - MARCAS ================= */

.brands {
  background: #ffffff;
  padding: 40px 0 50px;
}

.brands-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  flex-wrap: wrap;
}

.brands-container img {
  max-height: 42px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.25s ease;
}

.brands-container img:hover {
  opacity: 0.85;
}

section {
  margin: 0;
  padding: 0;
}

/* ================= MODAL INSTALAR ================= */

.instalar-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:15px;
}

@media(max-width:600px){
  .instalar-grid{
    grid-template-columns:1fr;
  }
}

.instalar-card{
  display:block;
  padding:16px;
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
  text-decoration:none;
  transition:.2s;
}

.instalar-card strong{
  display:block;
  font-size:16px;
  color:#0f172a;
  margin-bottom:4px;
}

.instalar-card span{
  font-size:13px;
  color:#6b7280;
}

.instalar-card:hover{
  transform:translateY(-3px);
  background:#fff;
  box-shadow:0 12px 22px rgba(0,0,0,0.12);
}

/* ================= KIT RECOMENDADO ================= */

.kit-select{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #d1d5db;
  margin-top:10px;
  font-size:15px;
}

.kit-resultado{
  margin-top:18px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:16px;
}

.kit-resultado ul{
  margin:0;
  padding-left:18px;
}

.kit-resultado li{
  margin:8px 0;
  font-size:14px;
  color:#0f172a;
}

.kit-resultado strong{
  color:#003f88;
}

/* ================= MARCO NEGRO CLIENTE ================= */

.page-frame{
  max-width:1280px;
  margin:0 auto;
  border:3px solid #000;
  background:#fff;
  padding:10px;
}/* ================= MODAL HERRAMIENTAS ================= */

.tool-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  z-index:9999;
  justify-content:center;
  align-items:center;
}

.tool-modal.active{
  display:flex;
}

.tool-modal-content{
  background:#fff;
  padding:24px;
  border-radius:16px;
  max-width:1000px;
  width:90%;
  max-height:90vh;
  overflow:auto;
  position:relative;
}