/* =========================================================
   Estampa Creativa — Landing
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

/* ---------- Variables ---------- */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-soft: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e5e5;
  --line-strong: #c9c9c9;
  --bg-alt: #f7f7f7;
  --accent: #009DFF;
  --accent-dark: #003CC7;
  --accent-soft: rgba(0, 157, 255, 0.1);
  --header-h: 104px;
  --container: 1200px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.06);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

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

#nosotros {
  background: #000 url('../assets/fondo_sobrenosotros.svg') center / cover no-repeat;
  color: #fff;
}

#nosotros .section-head h2,
#nosotros .value h3 {
  color: #fff;
}

#nosotros .section-lead,
#nosotros .value p {
  color: rgba(255, 255, 255, 0.7);
}

.section-head {
  text-align: left;
  max-width: 800px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 12px 0 16px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-light {
  color: #66c4ff;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--fg);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--fg);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
}

.brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand img {
  height: 56px;
  width: auto;
  filter: invert(1);
}

.menu-toggle,
.cart {
  background: transparent;
  border: 0;
  color: #fff;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.menu-toggle:hover,
.cart:hover {
  background: rgba(255,255,255,0.08);
}

.cart {
  grid-column: 3;
  justify-self: end;
}
.cart svg {
  width: 34px;
  height: 34px;
}

.menu-toggle {
  grid-column: 1;
  justify-self: start;
  flex-direction: column;
  gap: 7px;
}
.menu-toggle-bar {
  display: block;
  width: 30px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--fg);
  color: #fff;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu a {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover {
  color: var(--accent);
}
.mobile-menu li:last-child a {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
}
.hero-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.hero-content {
  align-self: center;
  min-width: 0;
}
.hero-logo {
  margin-bottom: 28px;
}
.hero-logo img {
  width: min(480px, 100%);
  height: auto;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-visual {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hero-sector {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  min-height: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.hero-sector.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.divider {
  border: 0;
  height: 1px;
  background: var(--line-strong);
  width: 100%;
  max-width: 400px;
  margin: 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
}
.cta-row > * {
  min-width: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-secondary:hover {
  background: var(--fg);
  color: #fff;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 1rem;
}

/* ---------- Cards / grids ---------- */
.cards-grid {
  display: grid;
  gap: 20px;
}
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.service-card {
  text-align: center;
}
.service-icon {
  color: var(--accent);
  display: inline-flex;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.value {
  text-align: center;
  padding: 0 8px;
}
.value-mark {
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 12px;
}
.value h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.value p {
  color: var(--muted);
}

/* ---------- Markets ---------- */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.market {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.market:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.market h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  padding-right: 64px;
}
.market p {
  color: var(--muted);
  font-size: 0.95rem;
}
.market-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f0f0f0;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item:hover::after {
  opacity: 1;
}

/* ---------- CTA final ---------- */
.contacto-wrapper {
  background: var(--fg) url("../assets/fondo_contacto.png") center / cover no-repeat;
}
.cta-final {
  color: #fff;
}
.cta-final-inner {
  text-align: center;
}
.cta-final h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 12px 0 16px;
}
.cta-final p {
  color: #b9b9b9;
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: transparent;
  color: #b9b9b9;
  padding: 36px 0 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-logo {
  height: 28px;
  width: auto;
  filter: invert(1);
  opacity: 0.85;
}
.footer-copy {
  font-size: 0.85rem;
}
.footer-wa {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-wa:hover {
  color: #fff;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 720px) {
  :root {
    --header-h: 76px;
  }
  .section {
    padding: 56px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .hero {
    padding: 16px 0 36px;
    text-align: center;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-visual {
    order: -1;
    min-height: 180px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    margin-top: -64px;
    position: relative;
    z-index: 2;
  }
  .hero-logo img {
    width: 78vw;
  }
  .hero-tagline {
    margin: 0 auto 16px;
  }
  .hero-cta {
    align-items: center;
  }
  .divider {
    max-width: 80%;
  }
  .cta-row {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    justify-content: center;
  }
  .cta-row .btn {
    flex: 1;
    justify-content: center;
  }
  .btn {
    padding: 13px 22px;
    font-size: 0.9rem;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 18px;
  }
  .hero-layout {
    padding: 0 18px;
  }
  .hero-logo img {
    width: 85vw;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .hero-cta {
    width: 100%;
  }
  .cta-row {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
    flex: 1;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .section-head h2 {
    font-size: 1.6rem;
  }
}

@media (min-width: 900px) {
  .site-header {
    padding: 0 40px;
  }

}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
