/* =========================================================
   ARSENAL DISEÑO Y CONFECCIÓN — HOJA DE ESTILOS
   Sistema de diseño: tema oscuro corporativo premium
   ========================================================= */

/* ---------- Variables de marca ---------- */
:root {
  --red-primary: #991113;
  --red-hover: #C41E22;
  --red-deep: #7A0E10;

  --bg: #121212;
  --surface: #1A1A1A;
  --surface-2: #222222;
  --border: #2E2E2E;

  --text: #F5F5F5;
  --text-muted: #A8A8A8;
  --white: #FFFFFF;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 8px;
  --radius-sm: 6px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);

  --container-w: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
* ,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--white);
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

/* Anchor scroll offset for sticky header */
section[id],
main [id] {
  scroll-margin-top: var(--header-h);
}

/* Visible focus for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-hover);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red-primary);
  color: var(--white);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
}

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

.btn-primary {
  background: var(--red-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--red-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(245, 245, 245, 0.35);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(245, 245, 245, 0.06);
}

.btn-outline {
  background: rgba(18, 18, 18, 0.35);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
}

.btn-light {
  background: var(--white);
  color: var(--red-deep);
}

.btn-light:hover {
  background: var(--text);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.8rem;
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--red-hover);
  margin-bottom: 0.75em;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  border-color: var(--red-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   SECCIONES GENÉRICAS
   ========================================================= */
.section {
  padding: 80px 0;
}

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

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase;
  font-weight: 800;
}

.section-sub {
  margin-top: 12px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.hero-inner > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 24px;
}

.trust-line {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.trust-line strong {
  color: var(--red-hover);
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  max-width: 320px;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.accent-tri {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border-style: solid;
}

.accent-tri--top {
  top: -18px;
  right: -22px;
  border-width: 0 60px 60px 0;
  border-color: transparent var(--red-primary) transparent transparent;
  opacity: 0.9;
}

.accent-tri--bottom {
  bottom: -20px;
  left: -24px;
  border-width: 70px 70px 0 0;
  border-color: var(--red-deep) transparent transparent transparent;
  opacity: 0.85;
}

/* =========================================================
   FRANJA DE CONFIANZA
   ========================================================= */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--red-hover);
  opacity: 0.9;
}

/* =========================================================
   CATEGORÍAS
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0) 40%, rgba(18, 18, 18, 0.92) 100%);
}

.category-overlay h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 0;
}

.category-overlay .btn {
  align-self: flex-start;
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.about-inner > * {
  min-width: 0;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  text-transform: uppercase;
  font-weight: 800;
}

.why-title {
  margin-top: 32px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.why-list li:last-child {
  border-bottom: none;
}

.why-mark {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--red-primary);
  transform: rotate(45deg);
}

/* =========================================================
   PROCESO DE PERSONALIZACIÓN
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.process-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--red-hover);
  margin-bottom: 12px;
}

.process-step h3 {
  text-transform: uppercase;
  font-size: 1.05rem;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--red-primary);
  transform: translateY(-3px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--red-hover);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin: 0;
}

/* =========================================================
   CATÁLOGO / PORTAFOLIO
   ========================================================= */
.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.portfolio-cover {
  flex-shrink: 0;
  width: 200px;
  max-width: 62%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.portfolio-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0;
}

.portfolio-desc {
  margin: 0;
  max-width: 44ch;
}

.portfolio-meta {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portfolio-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.portfolio-actions .btn {
  width: 100%;
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red-primary) 60%, var(--red-hover) 100%);
  padding: 72px 0;
}

.cta-final-inner {
  text-align: center;
  max-width: 640px;
}

.cta-final h2 {
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.cta-final p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0D0D0D;
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-col h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-hover);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  color: var(--white);
  border-color: var(--red-hover);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 0.82rem;
  margin: 0;
  color: var(--text-muted);
  text-align: center;
}

/* =========================================================
   RESPONSIVE — TABLET (>= 768px)
   ========================================================= */
@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* =========================================================
   RESPONSIVE — DESKTOP (>= 1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }

  .hero-frame {
    max-width: 360px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 36px;
    padding: 36px;
  }

  .portfolio-cover {
    width: 210px;
    max-width: 210px;
  }

  .portfolio-info {
    align-items: flex-start;
  }

  .portfolio-desc {
    max-width: none;
  }

  .portfolio-actions {
    flex-direction: row;
    width: auto;
    max-width: none;
  }

  .portfolio-actions .btn {
    flex: 1;
  }
}

@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* =========================================================
   RESPONSIVE — MÓVIL (< 1024px): menú hamburguesa
   ========================================================= */
@media (max-width: 1023px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 12px 20px 24px;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav .nav-link {
    display: block;
    padding: 16px 4px;
  }

  .header-actions .whatsapp-btn.btn-sm {
    padding: 10px 14px;
    font-size: 0.72rem;
  }
}
