/* Solofibra - Hoja de estilos moderna
   Reemplaza includes/styles.css del sitio legacy (tablas, floats, Dreamweaver) */

:root {
  --azul: #185FA5;
  --azul-light: #E6F1FB;
  --azul-dark: #0C447C;
  --coral: #D85A30;
  --coral-light: #FAECE7;
  --gris: #5F5E5A;
  --gris-light: #F1EFE8;
  --texto: #1a1a1a;
  --texto-muted: #5F5E5A;
  --borde: rgba(0,0,0,0.1);
  --radio-md: 8px;
  --radio-lg: 12px;
  --max-width: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* NAV */
.navbar {
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--azul);
}
.logo img { height: 40px; width: auto; }
.logo span { color: var(--coral); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--texto-muted);
  border-radius: var(--radio-md);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--gris-light); color: var(--texto); }
.nav-links a.active { color: var(--azul); font-weight: 600; background: var(--azul-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--borde);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* HERO */
.hero {
  background: var(--azul-light);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--borde);
}
.hero-inner { max-width: 640px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--azul);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--azul-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p { font-size: 16px; color: var(--gris); max-width: 540px; }
.hero-btns { display: flex; gap: 12px; margin-top: 1.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radio-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-dark); }
.btn-outline { background: transparent; color: var(--azul); border: 1.5px solid var(--azul); }
.btn-outline:hover { background: var(--azul-light); }
.btn-block { width: 100%; justify-content: center; padding: 13px; }

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--borde);
  max-width: var(--max-width);
  margin: 0 auto;
}
.stat { padding: 1.5rem; border-right: 1px solid var(--borde); text-align: left; }
.stat:last-child { border-right: none; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--azul); }
.stat-label { font-size: 13px; color: var(--texto-muted); margin-top: 4px; }

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--borde); }
}

/* SECTION */
.section { padding: 3rem 0; border-bottom: 1px solid var(--borde); }
.section:last-of-type { border-bottom: none; }
.section-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--texto-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 1.5rem;
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--azul-light);
  border-radius: var(--radio-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--azul); font-size: 22px;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--texto-muted); }

.line-card {
  border-left: 3px solid var(--azul);
  border-radius: 0 var(--radio-lg) var(--radio-lg) 0;
}
.line-card.coral { border-left-color: var(--coral); }
.line-card.green { border-left-color: #1D9E75; }

/* PRODUCT GRID (catalog page) */
.cat-tabs { display: flex; gap: 10px; margin-bottom: 2rem; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--borde);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.cat-tab.active, .cat-tab:hover { background: var(--azul); color: #fff; border-color: var(--azul); }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }

.prod-card {
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.prod-card:hover { border-color: var(--azul); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.prod-img-wrap { aspect-ratio: 1; background: var(--gris-light); overflow: hidden; }
.prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 12px 14px; }
.prod-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.prod-cat-label { font-size: 12px; color: var(--texto-muted); }
.color-dots { display: flex; gap: 5px; margin-top: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); }

/* PRODUCT DETAIL PAGE */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) { .prod-detail { grid-template-columns: 1fr; } }

.detail-img-container {
  position: relative;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: var(--gris-light);
  aspect-ratio: 1;
}
.detail-img-container img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s; }

.color-selector { margin-top: 16px; }
.color-label { font-size: 12px; color: var(--texto-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 600; }
.color-btns { display: flex; gap: 10px; }
.color-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  padding: 0;
}
.color-btn:hover { transform: scale(1.08); }
.color-btn.selected { border-color: var(--azul); }

.breadcrumb { font-size: 13px; color: var(--texto-muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--azul); }
.prod-title-lg { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.prod-cat-badge {
  display: inline-block;
  font-size: 12px; padding: 4px 12px;
  border-radius: 100px;
  background: var(--azul-light); color: var(--azul);
  font-weight: 600; margin-bottom: 1.5rem;
}
.specs-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-muted); font-weight: 600; margin: 1.5rem 0 0.75rem; }
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--borde); font-size: 14px; }
.spec-key { color: var(--texto-muted); }
.spec-val { font-weight: 600; }
.action-btns { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 10px; }

.ficha-panel { margin-top: 2rem; border: 1px solid var(--borde); border-radius: var(--radio-lg); overflow: hidden; max-width: 600px; }
.ficha-panel img { width: 100%; }

/* CONTACT FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--texto-muted); }
.form-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-md);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--azul); }
.form-textarea { min-height: 110px; resize: vertical; }

/* CONTACT INFO GRID (ubicacion page) */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 2rem; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-lg); padding: 1.25rem 1.5rem; }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-muted); margin-bottom: 10px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.contact-val { font-size: 14px; line-height: 1.8; }
.contact-val a { color: var(--azul); }
.contact-val a:hover { text-decoration: underline; }

.map-embed { border-radius: var(--radio-lg); overflow: hidden; border: 1px solid var(--borde); }
.map-embed iframe { width: 100%; height: 320px; border: none; display: block; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.25rem; }
.social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radio-md);
  border: 1px solid var(--borde);
  font-size: 13px;
  color: var(--texto);
  background: #fff;
  transition: border-color 0.15s;
}
.social-btn:hover { border-color: var(--azul); color: var(--azul); }
.social-btn img { width: 18px; height: 18px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--borde);
  padding: 1.5rem 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 12px; color: var(--texto-muted); }
.footer-links { display: flex; gap: 16px; font-size: 12px; }
.footer-links a:hover { color: var(--azul); }

/* ICONS (simple inline, no icon font dependency) */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

/* UTILITY */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--texto-muted); }
