/* ============ Berpalux — hoja de estilos ============ */
:root {
  --orange: #f1500a;
  --orange-soft: #ff8f7b;
  --orange-dark: #c73f05;
  --ink: #101010;
  --ink-soft: #3c3c3c;
  --gray: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #faf7f5;
  --line: #ececec;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 16, 16, .08);
  --grad: linear-gradient(135deg, var(--orange) 0%, var(--orange-soft) 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }

.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 56ch; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: .6rem;
}

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(241, 80, 10, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(241, 80, 10, .45); }
.btn-small { padding: .55rem 1.2rem; font-size: .9rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange); }
.btn-light { background: #fff; color: var(--orange-dark); box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { height: 46px; width: auto; }
.brand-name { font-weight: 900; letter-spacing: .04em; font-size: 1.25rem; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s;
}
.nav a:hover { color: var(--orange); }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(255, 143, 123, .18), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(241, 80, 10, .10), transparent 60%),
    var(--bg-alt);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 2rem;
  padding-block: 5.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-text .lead { margin-top: 1rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 600;
}

.hero-visual { display: grid; place-items: center; }
.hero-logo {
  width: min(280px, 55%);
  filter: drop-shadow(0 20px 40px rgba(241, 80, 10, .30));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Secciones ---------- */
.section { padding-block: 5rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .lead { margin: .8rem auto 0; }

.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark .lead { color: #cfcfcf; }
.section-dark h2 { color: #fff; }

/* ---------- Cards ---------- */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(241, 80, 10, .35);
}
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241,80,10,.12), rgba(255,143,123,.18));
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--gray); font-size: .95rem; }

/* ---------- Split / nosotros ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: center;
}
.split .lead { margin-block: 1rem 1.4rem; }

.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { padding-left: 1.9rem; position: relative; font-weight: 600; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--orange-soft);
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: .85rem; color: #cfcfcf; }

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  counter-reset: step;
}
.step {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.step p { color: var(--gray); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--grad);
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.cta-inner p { margin: .6rem 0 1.6rem; opacity: .92; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; }
.contact-list a { color: var(--orange); text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}
.contact-form label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
  font-size: .9rem;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--orange); }
.form-note { font-size: .78rem; color: var(--gray); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #cfcfcf;
  padding-block: 2.2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer .brand { color: #fff; }
.footer .brand-logo { height: 34px; }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { color: #cfcfcf; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--orange-soft); }
.footer-copy { font-size: .82rem; width: 100%; text-align: center; margin-top: .6rem; opacity: .7; }

/* ---------- Animación reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-block: 3.5rem; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo { width: 180px; }
  .grid.cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .grid.cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 4%;
    gap: 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: .3rem; }
  .nav-toggle { display: flex; }
}
