:root {
  --color-bg: #060708;
  --color-bg-alt: #0d1014;
  --color-surface: #151a21;
  --color-border: #252b35;
  --color-primary: #ffb347;
  --color-primary-soft: rgba(255, 179, 71, 0.12);
  --color-text: #f5f7fb;
  --color-muted: #a5acba;
  --color-danger: #f56565;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
  --container-width: 1120px;
}

/* Reset sencillo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #151b26 0, #050608 50%, #020204 100%);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #1a222f 0, #050608 55%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.85));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  height: 40px;   /* perfecto para navbar */
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* NAV */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #ffb347, #ff6b6b);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* CTA Header */

.header-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ff6b6b);
  color: #201414;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.header-cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* HERO */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(3, 4, 6, 0.3), rgba(3, 4, 7, 1)),
    url("../img/HeroShot.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.25), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 3.5rem 1.25rem 4.5rem;
}

.hero-text {
  max-width: 540px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb347, #ff6b6b);
  color: #201414;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-text);
  background: rgba(5, 7, 11, 0.6);
}

.btn-outline:hover {
  background: rgba(5, 7, 11, 0.85);
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* GRID */

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards generales */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
}

/* SERVICIOS */

.service-grid .card {
  position: relative;
  overflow: hidden;
}

.service-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 179, 71, 0.22), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.service-grid .card:hover::before {
  opacity: 1;
}

/* PRODUCTOS */

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(15, 19, 27, 0.9);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--color-muted);
}

.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-text);
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  background: rgba(13, 16, 22, 0.98);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

/* Header dentro de la tarjeta de producto */
.product-header {
  padding: 1.2rem 1.4rem 0.4rem;
}

.product-header h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.product-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Galería dentro de cada categoría */

.product-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1.4rem 0.6rem;
  scroll-snap-type: x mandatory;
}

.product-gallery::-webkit-scrollbar {
  height: 6px;
}

.product-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.product-gallery a {
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.product-gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.product-gallery a:hover img {
  transform: scale(1.05);
}

.product-body {
  padding: 0.7rem 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.product-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.product-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-tags li {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-muted);
}

.product-cta {
  margin-top: 0.2rem;
  align-self: flex-start;
  border-radius: 999px;
  border: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: rgba(255, 179, 71, 0.14);
  color: var(--color-primary);
}

.product-cta:hover {
  background: rgba(255, 179, 71, 0.25);
}

/* CUSTOM SECTION */

.custom-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.custom-text p {
  color: var(--color-muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--color-primary);
}

.custom-highlight {
  background: radial-gradient(circle at top left, #202739, #10151e);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.custom-highlight h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-muted);
}

/* TIMELINE */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 680px;
  margin-inline: auto;
}

.timeline-item {
  padding-left: 1.5rem;
  margin-bottom: 1.8rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.2rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.18);
}

.timeline-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* TESTIMONIOS */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  margin: 0;
  padding: 1.5rem 1.6rem;
  background: radial-gradient(circle at top left, #1c2434, #0f141c);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.testimonial-name {
  display: block;
  font-weight: 500;
}

.testimonial-role {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* CONTACTO */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info p {
  color: var(--color-muted);
}

.contact-block {
  margin-top: 1.5rem;
}

.contact-block h3 {
  margin: 0 0 0.35rem;
}

.contact-block a {
  color: var(--color-primary);
}

.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-form-card h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 0.7rem;
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #05070b;
  color: var(--color-text);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #656f82;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 1px solid var(--color-primary);
  border-color: var(--color-primary);
}

.form-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2.5rem 0 2rem;
  background: #040509;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-brand p {
  color: var(--color-muted);
  max-width: 360px;
  font-size: 0.9rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-columns h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-columns li {
  margin-bottom: 0.25rem;
}

.footer-columns a {
  color: var(--color-muted);
}

.footer-columns a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* MODAL (Micromodal) */

.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  background: rgba(0, 0, 0, 0.75);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal__container {
  background: #06070b;
  border-radius: 18px;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  padding: 0.75rem 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
}

.modal__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.modal__close {
  background: transparent;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.modal__close::before {
  content: "✕";
}

.modal__content img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom-section,
  .contact-layout,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    text-align: left;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.65rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(4, 6, 10, 0.98);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      max-height 0.18s ease,
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .nav-links.is-open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding-top: 4.2rem;
    padding-bottom: 3rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery {
    padding-inline: 1.1rem;
  }

  .footer-bottom {
    text-align: center;
  }
}
