/* ============================================================
   CIASALT HN — Hoja de estilos principal
   ============================================================ */

:root {
  --navy-900: #0A1F33;
  --navy-800: #0F2B44;
  --navy-700: #153B5B;
  --ocean-600: #146C94;
  --ocean-500: #1B85B3;
  --ocean-100: #E4F1F6;
  --gold-500: #F5C518;
  --gold-600: #AD8109;
  --gold-100: #FCF0C4;
  --sand-50: #F7F5F0;
  --white: #FFFFFF;
  --slate-900: #1F2937;
  --slate-700: #3F4A57;
  --slate-600: #5A6572;
  --slate-400: #94A0AC;
  --slate-200: #E2E6EA;
  --slate-100: #F1F3F5;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(10, 31, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 51, 0.10);
  --shadow-lg: 0 16px 48px rgba(10, 31, 51, 0.16);

  --container: 1180px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--sand-50);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-600);
  margin: 0 0 12px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 16px;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--slate-600); }

.lead {
  font-size: 1.15rem;
  color: var(--slate-700);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--gold-600); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

.btn--outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--slate-200);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
}
.topbar a { color: var(--slate-200); }
.topbar-info { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-info a:hover { color: var(--gold-500); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.15s ease;
}
.topbar-social a:hover { background: var(--gold-500); color: var(--navy-900); }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-900);
}
.logo small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ocean-600);
}

.logo-img {
  height: 34px;
  width: auto;
}
.logo-img--dark {
  filter: brightness(0);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-700);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.2s ease;
}
.nav a:hover { color: var(--navy-900); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(10,31,51,0.92) 0%, rgba(10,31,51,0.78) 40%, rgba(15,43,68,0.45) 75%, rgba(15,43,68,0.25) 100%),
    url('../assets/1767715203619.jpg') center 55%/cover no-repeat;
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero .container {
  position: relative;
}
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 540px; }
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--navy-900);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -1px;
}
.stat {
  text-align: center;
  padding: 40px 20px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.stat:first-child { border-left: none; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-500);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  font-weight: 600;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  background: url('../assets/1774886240728.jpg') center/cover no-repeat;
  padding: 32px;
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: flex-end;
}
.about-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(10,31,51,0.85) 0%, rgba(10,31,51,0.2) 55%, transparent 78%);
  pointer-events: none;
}
.about-art > * {
  position: relative;
  z-index: 1;
  width: 100%;
}
.about-badges { display: grid; gap: 16px; margin-top: 28px; }
.about-badge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.about-badge .icon-circle { flex-shrink: 0; }
.about-badge strong { display: block; color: var(--navy-900); font-size: 0.95rem; }
.about-badge span { font-size: 0.85rem; color: var(--slate-600); }

.icon-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ocean-100);
  color: var(--ocean-600);
  display: flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 22px; height: 22px; }
.icon-circle--gold { background: var(--gold-100); color: var(--gold-600); }

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.product-image {
  height: 240px;
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.product-image--placeholder {
  background: var(--sand-50);
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-image--placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--slate-400);
}
.product-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
}
.badge--imported { background: var(--ocean-100); color: var(--ocean-600); }
.badge--national { background: var(--gold-100); color: var(--gold-600); }

.product-card h3 { margin-bottom: 4px; }
.product-origin {
  font-size: 0.85rem;
  color: var(--slate-400);
  font-weight: 600;
  margin-bottom: 14px;
}
.product-weight {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Values ---------- */
.values-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.values-band h2, .values-band .lead { color: var(--white); }
.values-band .section-head .lead { color: rgba(255,255,255,0.75); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}
.value-card .icon-circle {
  margin: 0 auto 16px;
  background: rgba(217,164,65,0.15);
  color: var(--gold-500);
}
.value-card h3 { color: var(--white); font-size: 1.05rem; }
.value-card p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-line .icon-circle { background: rgba(217,164,65,0.15); color: var(--gold-500); }
.contact-line strong { display: block; font-size: 0.95rem; }
.contact-line span, .contact-line a { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.contact-line a:hover { color: var(--gold-500); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hours-table td { padding: 4px 0; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.hours-table td:last-child { text-align: right; font-weight: 600; }

.contact-social { display: flex; gap: 12px; margin-top: 28px; }
.contact-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.contact-social a:hover { background: var(--gold-500); color: var(--navy-900); }

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--slate-900);
  background: var(--sand-50);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean-500);
  box-shadow: 0 0 0 3px rgba(27,133,179,0.15);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--slate-400); margin-top: 12px; text-align: center; }
.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--ocean-100);
  color: var(--ocean-600);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-feedback.is-visible { display: block; }
.form-feedback.form-feedback--error { background: #FBE4E4; color: #B42318; }

.phone-field { display: flex; gap: 8px; }
.phone-field select { flex: 0 0 84px; }
.phone-field input { flex: 1; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gold-500);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { color: var(--navy-800); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 320px; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--gold-500); }
.footer-credit {
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.footer-credit a {
  color: var(--gold-500);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-credit a:hover { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--ocean-600); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .hero .container { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .topbar-info span:not(:first-child) { display: none; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--slate-200); transform: translateY(-130%); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--slate-100); width: 100%; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
