/* =========================================================
   LA CASA DEL FERRETERO — Styles
   ========================================================= */

:root {
  /* ===== Paleta oficial Herramientas Total ===== */
  --teal: #006066;
  --teal-light: #108474;
  --teal-dark: #024a4f;
  --red: #c70c11;
  --red-bright: #e40e13;
  --carbon: #1d1d1d;
  --mint: #9ff3e8;
  /* Aliases (nombres históricos del tema) */
  --navy: #1d1d1d;
  --navy-2: #333333;
  --amber: #9ff3e8;
  --amber-2: #5fd6c5;
  --orange: #e40e13;
  --orange-ink: #c70c11;
  --green-ink: #0e6b62;
  --green: #25d366;
  --green-dark: #128c7e;
  --paper: #f7f8fa;
  --white: #ffffff;
  --muted: #5b6472;
  --line: #e5e8ee;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(16, 24, 40, .10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .18);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

.btn-wa {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}
.btn-wa:hover { box-shadow: 0 16px 32px rgba(37, 211, 102, .45); }

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); box-shadow: var(--shadow); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: .82rem;
  padding: .5rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar i { color: var(--amber); margin-right: .35rem; }
.topbar-right { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar a { color: var(--green); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: var(--navy);
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(16, 132, 116, .40);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: .5px;
  line-height: 1;
  color: var(--navy);
}
.logo-text b { color: var(--orange); font-weight: 400; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  padding: .5rem .75rem;
  border-radius: 999px;
  transition: .2s;
}
.nav-link:hover { color: var(--navy); background: var(--paper); }
.nav-link.active { color: var(--navy); background: #e6f4f2; }
.nav-wa { margin-left: .5rem; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.burger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: .25s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1000px 500px at 85% -10%, #0a7a80 0%, transparent 60%),
              linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 85%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(159, 243, 232, .50);
  color: #ffffff;
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: .98;
  letter-spacing: 1.5px;
  margin-bottom: 1.1rem;
}
.hero-title span {
  color: transparent;
  background: linear-gradient(90deg, var(--mint), var(--amber-2));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-sub {
  color: #c7d0dd;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 560px;
  margin-bottom: 1.8rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 1.4rem;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--amber); letter-spacing: 1px; }
.hero-stats span { font-size: .82rem; color: #cfd8e3; }

/* Hero visual */
.hero-visual { position: relative; min-height: 380px; }
.hero-shape {
  position: absolute;
  inset: 8% 6%;
  background: linear-gradient(135deg, rgba(159,243,232,.20), rgba(16,132,116,.08));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 40px;
  transform: rotate(-6deg);
  backdrop-filter: blur(4px);
}
.hero-emoji {
  position: absolute;
  font-size: clamp(3rem, 6vw, 4.6rem);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.4));
  animation: float 5s ease-in-out infinite;
}
.e1 { top: 6%; left: 12%; }
.e2 { top: 16%; right: 10%; animation-delay: .8s; font-size: clamp(3.6rem, 7vw, 5.6rem); }
.e3 { bottom: 30%; left: 6%; animation-delay: 1.6s; }
.e4 { bottom: 36%; right: 18%; animation-delay: 2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}

.hero-card {
  position: absolute;
  bottom: 8%;
  left: 4%;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.15rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-card i { color: var(--green); font-size: 1.5rem; }
.hero-card b { display: block; font-size: .95rem; }
.hero-card span { font-size: .78rem; color: var(--muted); }
.hero-card-2 { bottom: auto; top: 44%; left: auto; right: 2%; animation-delay: 1.2s; }
.hero-card-2 i { color: var(--red); }

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--paper);
  clip-path: polygon(0 55%, 12% 70%, 28% 48%, 45% 68%, 62% 45%, 80% 66%, 100% 42%, 100% 100%, 0 100%);
}

/* ---------- Ticker ---------- */
.ticker {
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  color: #ffffff;
  overflow: hidden;
  padding: .75rem 0;
  border-block: 3px solid var(--carbon);
}
.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: scroll 28s linear infinite;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--paper); }
.section-alt { background: #fff; }
.section-dark {
  background: linear-gradient(160deg, var(--carbon), #111111);
  color: #fff;
}
.section-dark .section-sub { color: #b6c0cc; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--orange-ink);
  margin-bottom: .6rem;
}
.section-head h2, .split-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 1px;
}
.section-head h2 span, .split-content h2 span { color: var(--orange-ink); }
.section-dark .section-head h2 span { color: var(--mint); }
.section-dark .eyebrow { color: var(--mint); }
.section-sub { color: var(--muted); margin-top: .9rem; font-size: 1.02rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards de producto ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  color: #fff;
}
.i1 { background: linear-gradient(135deg, #006066, #108474); }
.i2 { background: linear-gradient(135deg, #c70c11, #e40e13); }
.i3 { background: linear-gradient(135deg, #1d1d1d, #3a3a3a); }
.i4 { background: linear-gradient(135deg, #108474, #006066); }
.i5 { background: linear-gradient(135deg, #e40e13, #c70c11); }
.i6 { background: linear-gradient(135deg, #3a3a3a, #1d1d1d); }
.i7 { background: linear-gradient(135deg, #006066, #1d1d1d); }
.i8 { background: linear-gradient(135deg, #c70c11, #1d1d1d); }

.card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.card a {
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  color: var(--orange-ink);
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}
.card a i { transition: transform .2s; }
.card a:hover i { transform: translateX(5px); }

/* ---------- CTA intermedio ---------- */
.mid-cta {
  margin-top: 2.6rem;
  background: linear-gradient(120deg, #eaf6f5, #d4ecea);
  border: 2px dashed var(--teal);
  border-radius: var(--radius);
  padding: 1.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.mid-cta h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .8px; }
.mid-cta p { color: var(--muted); }

/* ---------- Ventajas ---------- */
.feature {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: .25s;
  position: relative;
}
.feature:hover { background: rgba(255, 255, 255, .11); transform: translateY(-6px); border-color: rgba(159,243,232,.5); }
.feature-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--mint);
  opacity: .95;
  letter-spacing: 2px;
  margin-bottom: .4rem;
}
.feature h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.feature p { color: #b6c0cc; font-size: .92rem; }

/* ---------- Split / Nosotros ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-reverse .split-content { order: 2; }

.about-frame {
  background: linear-gradient(140deg, var(--teal-dark), var(--carbon));
  border-radius: 26px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-frame::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(16,132,116,.45), transparent 70%);
  top: -60px; right: -60px;
}
.about-emoji { font-size: clamp(4.5rem, 9vw, 7rem); filter: drop-shadow(0 16px 26px rgba(0,0,0,.45)); }
.about-badges { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.about-badges span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 999px;
}
.about-badges i { color: var(--mint); margin-right: .35rem; }

.split-content p { color: var(--muted); margin-top: .9rem; }
.split-content .eyebrow { margin-top: 0; }

.check-list { list-style: none; margin: 1.3rem 0 1.8rem; display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
.check-list i { color: var(--green); }

/* ---------- Testimonios ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: 0 6px 18px rgba(16,24,40,.05);
  transition: .25s;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stars { color: #f5b301; letter-spacing: 3px; font-size: 1.05rem; margin-bottom: .8rem; }
.testimonial blockquote { color: var(--navy-2); font-size: .96rem; font-style: italic; }
.testimonial figcaption { margin-top: 1rem; font-weight: 700; font-size: .85rem; color: var(--orange-ink); }

/* ---------- Ubicación ---------- */
.info-list { list-style: none; display: grid; gap: 1.1rem; margin: 1.6rem 0 2rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list > li > i {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  display: grid; place-items: center;
  background: #e6f4f2;
  color: var(--teal);
  border-radius: 12px;
  font-size: 1.1rem;
}
.info-list b { display: block; font-size: .95rem; }
.info-list span { color: var(--muted); font-size: .92rem; }
.info-list a { color: var(--green-ink); font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  min-height: 380px;
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

/* ---------- CTA final ---------- */
.cta-final {
  background:
    linear-gradient(120deg, rgba(2,74,79,.94), rgba(29,29,29,.94)),
    repeating-linear-gradient(45deg, var(--teal-light) 0 14px, var(--carbon) 14px 28px);
  color: #fff;
  padding: clamp(3.2rem, 6vw, 4.5rem) 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 1px; }
.cta-inner p { color: #d3dde2; margin-top: .5rem; }
.cta-buttons { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #036066; color: #cfe0e2; padding-top: 3.2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
}
.footer .logo-text { color: #fff; }
.footer .logo-text b { color: var(--mint); }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1.5px; }
.footer a, .footer p { display: block; font-size: .9rem; text-decoration: none; margin-bottom: .55rem; }
.footer a:hover { color: var(--mint); }
.footer a i { color: var(--mint); width: 20px; }
.footer-tag { margin-top: .9rem !important; color: var(--mint); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  padding-right: 84px;
}

/* Crédito SURBYTECH */
.footer .footer-credit {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #cfe0e2;
  font-size: .8rem;
  margin-bottom: 0;
  transition: transform .2s ease;
}
.footer .footer-credit:hover { transform: translateY(-2px); color: var(--mint); }
.footer-credit-logo {
  width: 140px;
  height: auto;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  background: #0a1a3a;
}
.footer-credit-text b { color: var(--mint); font-weight: 700; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  z-index: 999;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .5);
  animation: pulse 2.4s infinite;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-tooltip {
  position: absolute;
  right: 74px;
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: .25s;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 5% 1.6rem;
    gap: .3rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: .8rem 1rem; font-size: 1rem; }
  .nav-wa { margin: .6rem 0 0; justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-content { order: 0; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-buttons { justify-content: center; }
}

@media (max-width: 640px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.5rem; }
  .mid-cta { flex-direction: column; text-align: center; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}
