/* =========================================================
   NIKABRIK — Paleta del logo
   ========================================================= */
:root {
  --gray-logo: #b3b3b3; /* RGB 179,179,179 — gris exacto del fondo del logo */
  --gray-dark: #5c6163;
  --gray-deep: #2a2d2e;
  --orange: #ff7f00;
  --orange-dark: #d35400;
  --red: #a90000;
  --black: #000000;
  --white: #ffffff;
  --surface: #eceeef;
  --surface-alt: #e2e5e6;
  --text: #1a1c1d;
  --text-muted: #4a4e50;

  --width-bar: 90%;
  --width-body: 80%;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255, 127, 0, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(169, 0, 0, 0.06), transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, #f4f5f5 40%, var(--surface-alt) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Anchos ---------- */
.toolbar__inner,
.header__inner {
  width: var(--width-bar);
  margin-inline: auto;
}

.container,
.footer__inner,
.footer__copy-inner {
  width: var(--width-body);
  margin-inline: auto;
}

/* ---------- Toolbar ---------- */
.toolbar {
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  border-bottom: 3px solid var(--orange);
}

.toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.toolbar__location,
.toolbar__contact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.toolbar__contact {
  gap: 1.25rem;
  flex-wrap: wrap;
}

.toolbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  transition: color 0.2s var(--ease);
}

.toolbar__contact a:hover {
  color: var(--orange);
}

/* ---------- Header ---------- */
.header {
  background: var(--gray-logo);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--black);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 0.85rem 0;
}

.header__logo {
  height: clamp(72px, 11vw, 110px);
  width: auto;
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.65rem;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  letter-spacing: 0.08em;
  color: var(--white);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  padding: 0.45rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--black);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--black);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.78) 0%, rgba(42, 45, 46, 0.62) 45%, rgba(169, 0, 0, 0.45) 100%),
    url("../assets/foto-hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__gear {
  position: absolute;
  border-radius: 50%;
  border: 10px dashed rgba(255, 127, 0, 0.35);
  box-shadow: inset 0 0 0 18px rgba(0, 0, 0, 0.25);
}

.hero__gear--lg {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  right: -8%;
  top: 8%;
  animation: spin 28s linear infinite;
  opacity: 0.55;
}

.hero__gear--sm {
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  right: 18%;
  bottom: 12%;
  border-color: rgba(169, 0, 0, 0.45);
  animation: spin-rev 18s linear infinite;
  opacity: 0.4;
}

.hero__stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 40%, var(--red) 100%);
  animation: stripe-pulse 3.5s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--width-body);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  animation: hero-rise 1s var(--ease) both;
}

.hero__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  letter-spacing: 0.12em;
  color: var(--orange);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  line-height: 0.9;
}

.hero__title {
  font-size: clamp(1.6rem, 3.8vw, 2.65rem);
  max-width: 16ch;
  margin-bottom: 0.85rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn--block {
  width: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(157, 161, 162, 0.28), rgba(157, 161, 162, 0.12));
  border-block: 1px solid rgba(0, 0, 0, 0.08);
}

.section--contact {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(42, 45, 46, 0.95) 55%, rgba(169, 0, 0, 0.35)),
    var(--black);
  color: var(--white);
}

.section--legal {
  padding-top: 3rem;
}

.section__head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__head--left {
  text-align: left;
}

.section__head h1,
.section__head h2 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--red);
}

.section--contact .section__head h2 {
  color: var(--orange);
}

.section__head p {
  margin: 0.4rem auto 0;
  max-width: 48ch;
  color: var(--text-muted);
}

.section--contact .section__head p {
  color: rgba(255, 255, 255, 0.8);
}

.section__head--left p {
  margin-inline: 0;
}

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.75rem;
}

.service {
  padding: 0 0 0 1rem;
  border-left: 4px solid var(--orange);
}

.service:nth-child(even) {
  border-left-color: var(--red);
}

.service__accent {
  display: none;
}

.service h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
  color: var(--black);
}

.service p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Productos ---------- */
.products {
  display: grid;
  gap: 0;
}

.products li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.products li:first-child {
  border-top: 2px solid rgba(0, 0, 0, 0.12);
}

.products__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
  letter-spacing: 0.04em;
}

.products h3 {
  font-size: 1.7rem;
  color: var(--black);
}

.products p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}

.about__text > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.about__list {
  display: grid;
  gap: 0.65rem;
}

.about__list li {
  padding-left: 1.1rem;
  position: relative;
  font-weight: 600;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
}

.about__panel {
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.55) 0%, rgba(211, 84, 0, 0.55) 55%, rgba(169, 0, 0, 0.65) 100%),
    url("../assets/foto-001.jpg") center / cover no-repeat;
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  box-shadow: 8px 8px 0 var(--black);
}

.about__panel-label {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.about__panel-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.about__panel > p:last-child {
  margin: 0;
  max-width: 28ch;
}

/* ---------- Formulario ---------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 700;
  font-size: 0.95rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-row select {
  cursor: pointer;
}

.form-row select option {
  color: var(--black);
  background: var(--white);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.12);
}

.form-row input.is-invalid,
.form-row select.is-invalid,
.form-row textarea.is-invalid {
  border-color: #ff6b6b;
}

.form-note {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.95rem;
  color: var(--orange);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-deep);
  color: rgba(255, 255, 255, 0.88);
  border-top: 6px solid var(--orange);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  padding: 3rem 0 2.25rem;
}

.footer__col h3 {
  font-size: 1.45rem;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.footer__col p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer__col ul {
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.footer__menu {
  list-style: disc;
  padding-left: 1.15rem;
}

.footer__menu li::marker {
  color: var(--orange);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer__contact .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  color: var(--orange);
  flex-shrink: 0;
}

.footer__col a:hover {
  color: var(--orange);
}

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--black);
}

.footer__copy-inner {
  padding: 1rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__copy p {
  margin: 0;
}

/* ---------- Legal page ---------- */
.legal {
  max-width: 70ch;
}

.legal h2 {
  font-size: 1.6rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--black);
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.legal a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .btn {
  text-decoration: none;
  margin-top: 0.5rem;
}

.legal__date {
  margin-top: 2rem;
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Flotantes: WhatsApp + scroll-up ---------- */
.float-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}

.float-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.float-btn--wa {
  background: #25d366;
  color: var(--white);
}

.float-btn--wa:hover {
  background: #1ebe57;
  color: var(--white);
}

.float-btn--up {
  background: var(--orange);
  color: var(--black);
}

.float-btn--up:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.float-btn--up[hidden] {
  display: none;
}

/* ---------- Animations ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-rev {
  to { transform: rotate(-360deg); }
}

@keyframes stripe-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.85; filter: brightness(1.15); }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --width-bar: 92%;
    --width-body: 90%;
  }

  .toolbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gray-logo);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 5%;
    border-bottom: 4px solid var(--black);
    gap: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .header {
    position: sticky;
  }

  .header__inner {
    position: relative;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero__gear--sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__gear--lg,
  .hero__gear--sm,
  .hero__stripe,
  .hero__content {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
