/* ─────────────────────────────────────────────────────────────────
   ABERTURAS PREMIUM - HOJA DE ESTILOS PRINCIPAL
   ───────────────────────────────────────────────────────────────── */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --success-color: #16a34a;
  --danger-color: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --border-radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─────────────────────────────────────────────────────────────────
   NAVEGACIÓN
   ───────────────────────────────────────────────────────────────── */

.navbar {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  position: relative;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-color);
  transition: var(--transition);
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  transition: var(--transition);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-title {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-800);
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-toggle {
    display: block;
  }
}

/* ─────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--gray-50);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   SECCIONES PRINCIPALES
   ───────────────────────────────────────────────────────────────── */

section {
  padding: 80px 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: var(--gray-900);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 40px;
}

/* ─────────────────────────────────────────────────────────────────
   SOBRE NOSOTROS
   ───────────────────────────────────────────────────────────────── */

.about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.about-card {
  background: var(--gray-50);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.about-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.about-card p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   SERVICIOS
   ───────────────────────────────────────────────────────────────── */

.services {
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.service-item {
  background: white;
  padding: 35px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

.service-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.service-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.service-item p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   SECCIÓN CALCULADOR
   ───────────────────────────────────────────────────────────────── */

.calculator-section {
  background: white;
}

/* ─────────────────────────────────────────────────────────────────
   CARD PRINCIPAL
   ───────────────────────────────────────────────────────────────── */

.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 35px;
  max-width: 700px;
  margin: 40px auto;
}

/* ─────────────────────────────────────────────────────────────────
   DÓLAR BANNER
   ───────────────────────────────────────────────────────────────── */

.dolar-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 2px solid #fbbf24;
  border-radius: var(--border-radius);
  padding: 18px 22px;
  margin-bottom: 30px;
  font-size: 16px;
  color: var(--gray-900);
}

.dolar-banner span {
  font-weight: 600;
}

.dolar-banner strong {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────
   CAMPOS DEL FORMULARIO
   ───────────────────────────────────────────────────────────────── */

.field {
  margin-bottom: 22px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: white;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: #fafbfc;
}

input[type="text"]:disabled,
input[type="number"]:disabled,
select:disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  border-color: var(--gray-200);
}

/* ─────────────────────────────────────────────────────────────────
   GRID DE MEDIDAS
   ───────────────────────────────────────────────────────────────── */

.measures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .measures-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────
   SLIDERS
   ───────────────────────────────────────────────────────────────── */

.slider-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--fill, 0%), var(--gray-200) var(--fill, 0%), var(--gray-200) 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 0 6px var(--primary-light);
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

input[type="range"]::-moz-range-thumb:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 0 6px var(--primary-light);
  transform: scale(1.1);
}

input[type="range"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-value {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────
   BADGE DE ALTO FIJO
   ───────────────────────────────────────────────────────────────── */

.alto-fixed-badge {
  display: inline-block;
  background: #dcfce7;
  color: var(--success-color);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.alto-fixed-badge span {
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────
   BOTONES
   ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-900);
}

.btn-secondary:hover {
  background: var(--gray-300);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 12px;
}

button#calcBtn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin: 28px 0;
}

button#calcBtn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

button#calcBtn:active:not(:disabled) {
  transform: translateY(0);
}

button#calcBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
}

/* ─────────────────────────────────────────────────────────────────
   MENSAJES DE ERROR
   ───────────────────────────────────────────────────────────────── */

#error-msg {
  background: #fee2e2;
  color: var(--danger-color);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

#error-msg.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────────
   PANEL DE RESULTADO
   ───────────────────────────────────────────────────────────────── */

#result-panel {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 28px;
  margin-top: 30px;
  display: none;
  animation: slideDown 0.4s ease;
}

#result-panel.show {
  display: block;
}

#result-panel h2 {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 22px;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gray-200);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-row span:first-child {
  font-weight: 700;
  color: var(--gray-600);
}

.result-row span:last-child {
  color: var(--gray-900);
  font-weight: 600;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-top: 20px;
}

/* ─────────────────────────────────────────────────────────────────
   NOTA DE ESTIMATIVO
   ───────────────────────────────────────────────────────────────── */

.estimate-note {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary-color);
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin: 22px 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────
   BOTÓN DE WHATSAPP
   ───────────────────────────────────────────────────────────────── */

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #25d366 0%, #20ba5e 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin-top: 18px;
}

.wa-btn:hover {
  background: linear-gradient(135deg, #20ba5e 0%, #1da952 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}

.wa-btn:active {
  transform: translateY(0);
}

.wa-btn svg {
  width: 20px;
  height: 20px;
}

/* ─────────────────────────────────────────────────────────────────
   CONTACTO
   ───────────────────────────────────────────────────────────────── */

.contact {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.contact .section-title {
  color: white;
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.contact-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 14px;
  opacity: 0.95;
  margin-bottom: 15px;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 30px 20px;
  text-align: center;
}

.footer-content p {
  font-size: 14px;
  margin: 5px 0;
}

.footer-content p:first-child {
  font-weight: 600;
  color: white;
}

/* ─────────────────────────────────────────────────────────────────
   ADMIN
   ───────────────────────────────────────────────────────────────── */

button#btn-admin-open {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
}

button#btn-admin-open:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

#admin-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

#admin-overlay.show {
  display: flex;
}

#admin-login,
#admin-panel {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

#admin-login {
  text-align: center;
}

#admin-login h2 {
  margin-bottom: 20px;
  color: var(--gray-900);
}

#admin-login input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
}

#admin-login button {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

#admin-login button:hover {
  background: var(--primary-dark);
}

#admin-login-err {
  display: none;
  color: var(--danger-color);
  font-size: 12px;
  margin-top: -10px;
  margin-bottom: 10px;
}

#admin-login-err.show {
  display: block;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gray-200);
}

.admin-header h2 {
  color: var(--gray-900);
  margin: 0;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-save {
  background: var(--success-color);
  color: white;
}

.btn-save:hover {
  background: #15803d;
}

.btn-reset {
  background: var(--gray-200);
  color: var(--gray-900);
}

.btn-reset:hover {
  background: var(--gray-300);
}

.btn-close-admin {
  background: var(--danger-color);
  color: white;
}

.btn-close-admin:hover {
  background: #b91c1c;
}

.admin-table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table thead {
  background: var(--gray-100);
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

table th {
  font-weight: 700;
  color: var(--gray-900);
}

table input {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 12px;
}

#admin-toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--success-color);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2100;
  pointer-events: none;
}

#admin-toast.show {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  section {
    padding: 50px 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .card {
    padding: 20px;
    margin: 30px 0;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .admin-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-actions button {
    flex: 1;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  section {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .card {
    padding: 15px;
  }

  .dolar-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 14px;
  }

  .slider-row {
    flex-direction: column;
    gap: 10px;
  }

  .slider-value {
    width: 100%;
  }

  .total-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  button#btn-admin-open {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    font-size: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   UTILIDADES
   ───────────────────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

/* ─────────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────────── */

header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

header img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

header > div {
  flex: 1;
}

header h1 {
  font-size: 28px;
  color: var(--gray-900);
  margin-bottom: 8px;
  font-weight: 700;
}

header p {
  font-size: 14px;
  color: var(--gray-500);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────
   CARD PRINCIPAL
   ───────────────────────────────────────────────────────────────── */

.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
   DÓLAR BANNER
   ───────────────────────────────────────────────────────────────── */

.dolar-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 2px solid #fbbf24;
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 25px;
  font-size: 16px;
  color: var(--gray-900);
}

.dolar-banner span {
  font-weight: 600;
}

.dolar-banner strong {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────
   CAMPOS DEL FORMULARIO
   ───────────────────────────────────────────────────────────────── */

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: white;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: #fafbfc;
}

input[type="text"]:disabled,
input[type="number"]:disabled,
select:disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  border-color: var(--gray-200);
}

/* ─────────────────────────────────────────────────────────────────
   GRID DE MEDIDAS
   ───────────────────────────────────────────────────────────────── */

.measures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .measures-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────
   SLIDERS
   ───────────────────────────────────────────────────────────────── */

.slider-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--fill, 0%), var(--gray-200) var(--fill, 0%), var(--gray-200) 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 0 6px var(--primary-light);
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

input[type="range"]::-moz-range-thumb:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 0 6px var(--primary-light);
  transform: scale(1.1);
}

input[type="range"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-value {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  min-width: 70px;
  text-align: center;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────
   BADGE DE ALTO FIJO
   ───────────────────────────────────────────────────────────────── */

.alto-fixed-badge {
  display: inline-block;
  background: var(--success-light);
  color: var(--success-color);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.alto-fixed-badge span {
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────
   BOTÓN DE CALCULAR
   ───────────────────────────────────────────────────────────────── */

button#calcBtn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin: 25px 0;
}

button#calcBtn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

button#calcBtn:active:not(:disabled) {
  transform: translateY(0);
}

button#calcBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
}

/* ─────────────────────────────────────────────────────────────────
   MENSAJES DE ERROR
   ───────────────────────────────────────────────────────────────── */

#error-msg {
  background: #fee2e2;
  color: var(--danger-color);
  border: 1px solid #fecaca;
  border-radius: var(--border-radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

#error-msg.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────────
   PANEL DE RESULTADO
   ───────────────────────────────────────────────────────────────── */

#result-panel {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-top: 30px;
  display: none;
  animation: slideDown 0.4s ease;
}

#result-panel.show {
  display: block;
}

#result-panel h2 {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 20px;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gray-200);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-row span:first-child {
  font-weight: 600;
  color: var(--gray-600);
}

.result-row span:last-child {
  color: var(--gray-900);
  font-weight: 500;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--border-radius);
  font-size: 18px;
  font-weight: 700;
  margin-top: 20px;
}

/* ─────────────────────────────────────────────────────────────────
   NOTA DE ESTIMATIVO
   ───────────────────────────────────────────────────────────────── */

.estimate-note {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary-color);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin: 20px 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────
   BOTÓN DE WHATSAPP
   ───────────────────────────────────────────────────────────────── */

.wa-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #25d366 0%, #20ba5e 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin-top: 15px;
}

.wa-btn:hover {
  background: linear-gradient(135deg, #20ba5e 0%, #1da952 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}

.wa-btn:active {
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  header h1 {
    font-size: 22px;
  }

  .card {
    padding: 20px;
  }

  #result-panel {
    padding: 18px;
  }

  .total-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  header {
    padding: 15px;
  }

  header img {
    width: 60px;
    height: 60px;
  }

  header h1 {
    font-size: 18px;
  }

  header p {
    font-size: 12px;
  }

  .card {
    padding: 15px;
  }

  button#calcBtn {
    padding: 12px 18px;
    font-size: 14px;
  }

  .dolar-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .slider-row {
    flex-direction: column;
    gap: 10px;
  }

  .slider-value {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────
   UTILIDADES
   ───────────────────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}


/* ─────────────────────────────────────────────────────────────────
   PANEL DE ADMINISTRACIÓN
   ───────────────────────────────────────────────────────────────── */

#btn-admin-open {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

#btn-admin-open:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

#admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#admin-overlay.active {
  display: flex;
}

/* ── Login ── */
#admin-login {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-xl);
}

#admin-login h2 {
  font-size: 20px;
  color: var(--gray-900);
  text-align: center;
}

#admin-pwd {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

#admin-pwd:focus {
  border-color: var(--primary-color);
}

#admin-login-err {
  display: none;
  color: var(--danger-color);
  font-size: 13px;
  text-align: center;
}

#btn-admin-login {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

#btn-admin-login:hover {
  background: var(--primary-dark);
}

/* ── Panel principal ── */
#admin-panel {
  display: none;
  background: white;
  border-radius: var(--border-radius);
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  flex-direction: column;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.admin-header h2 {
  font-size: 18px;
  color: var(--gray-900);
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-save, .btn-reset, .btn-close-admin {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-save        { background: var(--success-color); color: white; }
.btn-save:hover  { opacity: 0.85; }
.btn-reset       { background: var(--accent-color); color: white; }
.btn-reset:hover { opacity: 0.85; }
.btn-close-admin        { background: var(--gray-200); color: var(--gray-800); }
.btn-close-admin:hover  { background: var(--gray-300); }

/* ── Tabla ── */
.admin-table-wrapper {
  padding: 20px 24px;
  overflow-x: auto;
}

.admin-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table-wrapper th {
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.admin-table-wrapper td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.admin-table-wrapper tr:hover td {
  background: var(--gray-50);
}

.admin-table-wrapper input[type="text"],
.admin-table-wrapper input[type="number"] {
  padding: 6px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.admin-table-wrapper input:focus {
  border-color: var(--primary-color);
}

.fixed-badge {
  background: var(--gray-200);
  color: var(--gray-600);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ── Toast ── */
#admin-toast {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: var(--gray-900);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3000;
}

#admin-toast.show {
  opacity: 1;
}

@media (max-width: 600px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #admin-panel {
    max-height: 95vh;
  }
}

/* ─────────────────────────────────────────────────────────────────
   ADMIN — TABS
   ───────────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────────
   ADMIN — CALCULADORA DE COSTOS
   ───────────────────────────────────────────────────────────────── */

.costos-admin-wrap { display: flex; flex-direction: column; gap: 16px; }

.costos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.costos-group {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 16px;
}

.costos-group h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.costos-group .field { margin-bottom: 10px; }
.costos-group .field:last-child { margin-bottom: 0; }

.costos-group .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.costos-group .field input[type="number"] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.costos-group .field input[type="number"]:focus { border-color: var(--primary-color); }

#c-btn-calcular {
  width: 100%;
  padding: 11px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
#c-btn-calcular:hover { background: var(--primary-dark); }

/* Tabla accesorios dentro del admin */
.acc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acc-table th {
  background: var(--gray-200);
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
}
.acc-table td { padding: 6px 10px; border-bottom: 1px solid var(--gray-100); }
.acc-table input[type="number"] {
  padding: 4px 7px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
}

/* Resultados de costos */
.costos-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .costos-result-grid { grid-template-columns: 1fr; } }

.costos-result-card {
  border-radius: 10px;
  padding: 18px;
}
.costos-result-card.natural { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-top: 3px solid #0ea5e9; }
.costos-result-card.color   { background: linear-gradient(135deg, #fefce8, #fef9c3); border-top: 3px solid var(--accent-color); }

.costos-result-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--gray-900); }

.c-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--gray-700);
}
.c-row.sub   { font-weight: 700; color: var(--gray-800); }
.c-row.total { font-size: 15px; font-weight: 800; color: var(--gray-900); border-bottom: none; padding-top: 8px; }

/* ─────────────────────────────────────────────────────────────────
   COTIZADOR PÚBLICO
   ───────────────────────────────────────────────────────────────── */

.cotizador-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.cotizador-card {
  max-width: 780px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cotizador-inputs {
  padding: 36px 36px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.cotizador-dim {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 560px) {
  .cotizador-dim { grid-template-columns: 1fr 1fr; }
  .cotizador-dim button { grid-column: 1 / -1; }
}

.cotizador-dim .field { margin-bottom: 0; }

.cotizador-dim .field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: block;
}

.cotizador-dim .field input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  transition: border-color 0.2s;
  outline: none;
}

.cotizador-dim .field input:focus { border-color: var(--primary-color); }

.cotizador-dim button {
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cotizador-dim button:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.cotizador-nota {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 14px;
}

/* ── Resultado ── */
.cotizador-resultado { padding: 28px 36px 36px; }

.cotizador-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 560px) { .cotizador-cards { grid-template-columns: 1fr; } }

.precio-card {
  border-radius: 12px;
  padding: 22px 20px;
}

.precio-card.natural {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-top: 4px solid #0ea5e9;
}

.precio-card.color {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border-top: 4px solid var(--accent-color);
}

.precio-card-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.precio-card-total {
  font-size: 30px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1;
}

.det-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-600);
  padding: 3px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.det-row.sub {
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 4px;
  border-bottom: none;
}

.det-row span:last-child { font-weight: 600; }

/* ── Cotizador: selector de tipo y rango badge ── */
.rango-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.cotizador-dim {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.cotizador-dim .field { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────────
   GALERÍA DE ABERTURAS
   ───────────────────────────────────────────────────────────────── */

.galeria-section {
  background: white;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.galeria-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background: white;
  border: 1px solid var(--gray-100);
}

.galeria-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.galeria-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray-100);
}

.galeria-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.galeria-item:hover .galeria-img-wrap img {
  transform: scale(1.05);
}

/* Placeholder cuando no hay imagen */
.galeria-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.galeria-img-wrap.no-img img       { display: none; }
.galeria-img-wrap.no-img .galeria-placeholder { display: flex; }

.galeria-info {
  padding: 20px;
}

.galeria-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.galeria-info p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .galeria-img-wrap { height: 140px; }
  .galeria-placeholder { font-size: 48px; }
}

@media (max-width: 400px) {
  .galeria-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
   COTIZADOR — PREVIEW DE IMAGEN AL COSTADO
   ───────────────────────────────────────────────────────────────── */

.cotizador-con-preview {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .cotizador-con-preview {
    grid-template-columns: 1fr;
  }
}

.cotizador-preview {
  text-align: center;
}

.cotizador-preview img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-light);
}

.cotizador-preview p {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cotizador-sliders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cotizador-sliders .field { margin-bottom: 0; }
