/* ============================================================
   ALBOMY — one-page site
   Tokens: ink #17140F, paper #F3F0EA, steel #D8D3C9,
           red #E23325, orange #F2A22B, safety #FFC633
   Display: Anton / Body: Barlow / Utility: IBM Plex Mono
   ============================================================ */

:root {
  --ink: #17140f;
  --ink-soft: #2a251d;
  --paper: #f3f0ea;
  --paper-dim: #e8e3d9;
  --steel: #d8d3c9;
  --steel-line: #c7c1b3;
  --red: #e23325;
  --red-dim: #b8281d;
  --orange: #f2a22b;
  --safety: #ffc633;
  --white: #ffffff;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 2px;
}

/* ---------- Eyebrows / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.eyebrow--light { color: var(--orange); }

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 20px;
}
.section-title--light { color: var(--paper); }

.section-lead {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: -8px 0 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover { background: var(--red-dim); }
.btn--ghost {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn--whatsapp:hover { background: #1fb857; }
.btn--whatsapp svg { flex-shrink: 0; }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 234, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--steel-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}
.nav {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transition: right 0.2s ease;
}
.nav a:hover::after { right: 0; }

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--ink);
  border-left: 1px solid var(--steel-line);
  padding-left: 20px;
}
.phone-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23,20,15,0.55) 0%, rgba(23,20,15,0.25) 35%, rgba(23,20,15,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
  padding-top: 120px;
  color: var(--white);
}
.hero-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 0.88;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.hero-title span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.05em 0.03em;
}
.hero-title::before {
  content: "";
  position: absolute;
  left: -8vw;
  right: -8vw;
  top: 10%;
  bottom: 10%;
  background: var(--red);
  transform: skewY(-3deg);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.hero-sub {
  max-width: 52ch;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 34px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Hero entrance animation ---------- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim {
  opacity: 0;
  animation: heroUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-1 { animation-delay: 0.15s; }
.anim-2 { animation-delay: 0.28s; }
.anim-3 { animation-delay: 0.46s; }
.anim-4 { animation-delay: 0.62s; }

/* ---------- Ken Burns hero image ---------- */
@keyframes kenBurns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-media img { animation: kenBurns 8s ease-out forwards; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.values-grid .reveal:nth-child(2), .stream .reveal:nth-child(2) { transition-delay: 0.08s; }
.values-grid .reveal:nth-child(3), .stream .reveal:nth-child(3) { transition-delay: 0.16s; }
.values-grid .reveal:nth-child(4), .stream .reveal:nth-child(4) { transition-delay: 0.24s; }
.stream .reveal:nth-child(5) { transition-delay: 0.32s; }
.filmstrip .reveal:nth-child(2) { transition-delay: 0.08s; }
.filmstrip .reveal:nth-child(3) { transition-delay: 0.16s; }
.filmstrip .reveal:nth-child(4) { transition-delay: 0.24s; }
.two-col .reveal:nth-child(2), .mv-grid .reveal:nth-child(2) { transition-delay: 0.12s; }

/* ================= SECTION SPACING ================= */
.section { padding: 100px 0; }
.section--tight { padding: 90px 0 100px; }
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .section-lead { color: rgba(243,240,234,0.72); }

/* ---------- Diagonal cut divider (signature motif) ---------- */
.cut {
  height: 46px;
  width: 100%;
  clip-path: polygon(0 0, 100% 55%, 100% 100%, 0 45%);
}
.cut--ink { background: var(--ink); }
.cut--red { background: var(--red); }

/* ================= NOSOTROS (two-col) ================= */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.two-col__text p { color: var(--ink-soft); font-size: 1.06rem; }
.two-col__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}
.two-col__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ================= MISION / VISION ================= */
.mv { background: var(--ink); color: var(--paper); padding: 90px 0 100px; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(243,240,234,0.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.mv-card {
  background: var(--ink-soft);
  padding: 48px 44px;
}
.mv-card--accent { background: #211c15; border-left: 3px solid var(--orange); }
.mv-card h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2.1rem;
  font-weight: 400;
  margin: 0 0 18px;
}
.mv-card p { color: rgba(243,240,234,0.82); margin: 0; }

/* ================= VALORES ================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--orange);
  margin-bottom: 18px;
}
.value-icon svg { width: 28px; height: 28px; }
.value-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.value-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ================= ESPECIALIZACION (stenciled tags) ================= */
.stream {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tag-card {
  position: relative;
  background: var(--ink-soft);
  border: 1px dashed rgba(243,240,234,0.28);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
}
.tag-card:nth-child(odd) { border-top: 3px solid var(--red); }
.tag-card:nth-child(even) { border-top: 3px solid var(--orange); }
.tag-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(243,240,234,0.4);
}
.tag-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: var(--orange);
  margin-bottom: 16px;
}
.tag-card:nth-child(odd) .tag-card__icon { color: var(--red); }
.tag-card__icon svg { width: 100%; height: 100%; }
.tag-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.12rem;
  margin: 0 0 10px;
  color: var(--paper);
}
.tag-card p { margin: 0; color: rgba(243,240,234,0.68); font-size: 0.95rem; }

/* ================= FILMSTRIP (planta) ================= */
.filmstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.filmstrip figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(70%);
  transform: scale(1.02);
  transition: filter 0.35s ease, transform 0.5s ease;
}
.filmstrip figure:hover img { filter: grayscale(0%); transform: scale(1.08); }
.filmstrip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(0deg, rgba(23,20,15,0.88), transparent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

/* ================= CONTACTO ================= */
.section--contact { padding-top: 100px; padding-bottom: 110px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.contact-lead {
  color: rgba(243,240,234,0.78);
  font-size: 1.08rem;
  max-width: 48ch;
}
.contact-card {
  background: var(--ink-soft);
  border: 1px solid rgba(243,240,234,0.16);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(243,240,234,0.12);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--paper);
  transition: color 0.2s ease;
}
.contact-row:hover { color: var(--orange); }
.contact-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(243,240,234,0.3);
  color: var(--paper);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-cta-row { display: flex; gap: 12px; margin-top: 18px; }
.contact-cta { flex: 1; justify-content: center; }

/* ================= WHATSAPP FAB ================= */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  z-index: 200;
  animation: fabPulse 2.8s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,0.28), 0 0 0 0 rgba(37,211,102,0.45); }
  50% { box-shadow: 0 12px 28px rgba(0,0,0,0.28), 0 0 0 10px rgba(37,211,102,0); }
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--ink);
  color: rgba(243,240,234,0.6);
  border-top: 1px solid rgba(243,240,234,0.12);
}
.footer-inner {
  padding: 34px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.brand--footer .brand-name { font-size: 1.05rem; color: var(--paper); }
.footer-tag { font-size: 0.88rem; margin: 0; flex: 1 1 260px; }
.footer-meta { font-family: var(--font-mono); font-size: 0.78rem; margin: 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col__media img { aspect-ratio: 16/10; }
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stream { grid-template-columns: repeat(2, 1fr); }
  .filmstrip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 940px) {
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--steel-line);
    padding: 8px 24px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: normal;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--steel-line); display: block; }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .hero-content { padding-top: 96px; padding-bottom: 56px; }
  .values-grid { grid-template-columns: 1fr; }
  .stream { grid-template-columns: 1fr; }
  .filmstrip { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .contact-cta-row { flex-direction: column; }
  .whatsapp-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}
