/* ==========================================================================
   TITANIUM SPORTS NUTRITION — LANDING PAGE
   Mobile-first. Paleta basada en el logo: dorado + gris titanio + negro.
   ========================================================================== */

:root {
  /* Paleta de marca */
  --gold: #e8a33c;
  --gold-light: #f5c463;
  --gold-dark: #c9821f;
  --black: #0d0d0d;
  --black-soft: #161616;
  --steel: #9ca0a6;
  --steel-light: #c7cacd;
  --off-white: #f2f2f2;
  --white: #ffffff;

  /* Tipografía */
  --font-display: 'Archivo Black', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container-width: 1180px;
  --header-height: 68px;
  --radius: 14px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }

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

.text-gold { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--black);
}
.btn--primary:hover { filter: brightness(1.08); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); }

.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover { background: var(--black-soft); }

.btn--small { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Eyebrow / etiquetas ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.eyebrow--gold { color: var(--gold); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.is-scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header__row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img { height: 40px; width: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.nav.is-open { transform: translateX(0); }

.nav__link {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}
.nav__link:hover { color: var(--gold); }
.nav__link.is-active { color: var(--gold); }

.nav__cta { margin-top: 10px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.35) 35%, rgba(13,13,13,0.92) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 90px;
  padding-top: calc(var(--header-height) + 40px);
  color: var(--white);
}

.hero__title {
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: 1.05rem;
  max-width: 480px;
  color: var(--steel-light);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 24px; opacity: 0.3; }
  100% { top: 24px; opacity: 0; }
}

/* ==========================================================================
   PAGE HEADER (Nosotros / Blog / Contacto — páginas sin hero a pantalla completa)
   ========================================================================== */
.page-header {
  background: var(--black);
  padding: calc(var(--header-height) + 56px) 0 56px;
}
.page-header__title {
  color: var(--white);
  font-size: clamp(1.9rem, 8vw, 3rem);
  margin-bottom: 0;
}
.page-header__intro {
  color: var(--steel-light);
  max-width: 560px;
  font-size: 1.02rem;
  margin: 16px 0 0;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding: 80px 0;
}
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--light {
  background: var(--off-white);
  color: var(--black-soft);
}

.section__title {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: var(--white);
}
.section__title--dark { color: var(--black-soft); }

.section__intro {
  max-width: 640px;
  font-size: 1rem;
  color: #555;
}
.section--dark .section__intro,
.section--dark .eyebrow + .section__intro { color: var(--steel-light); }

.section__cta {
  margin-top: 36px;
  text-align: center;
}

/* ---------- Quiénes somos ---------- */
.about-grid {
  display: grid;
  gap: 40px;
}

.about-grid__text p { color: var(--steel-light); }
.about-grid__text strong { color: var(--white); }

.about-grid__media {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-grid__photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.about-grid__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
}
.stat-card__number, .stat-card__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: var(--gold);
}
.stat-card__label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Por qué Titanium ---------- */
.cards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: none;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  color: #555;
  margin: 0;
}

/* ---------- Video / Conócenos ---------- */
.video-grid {
  display: grid;
  gap: 36px;
}
.video-grid__text { color: var(--steel-light); }

.video-player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: var(--black-soft);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-player__btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(232, 163, 60, 0.92);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.video-player__btn svg { width: 26px; height: 26px; margin-left: 3px; }
.video-player.is-playing .video-player__btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

/* ---------- Galería ---------- */
.section--gallery { padding-top: 60px; padding-bottom: 60px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.gallery-grid__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery-grid__img--tall {
  grid-column: span 2;
  height: 260px;
}

/* ---------- Respaldo de marca ---------- */
.brand-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.brand-proof-card { text-align: center; }
.brand-proof-card .video-player {
  max-width: 100%;
  aspect-ratio: 3 / 4;
}
.brand-proof-card__caption {
  font-size: 0.85rem;
  color: #555;
  margin: 12px 0 0;
}
.brand-proof-card__caption strong { color: var(--black-soft); }

/* ---------- Blog ---------- */
.blog-block {
  display: grid;
  gap: 36px;
}
.blog-block__text p { color: var(--steel-light); }
.section--light .blog-block__text p { color: #555; }
.blog-block__q {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-transform: none;
  margin-bottom: 6px;
}
.section--dark .blog-block__q { color: var(--white); }
.blog-block__video .video-player {
  max-width: 320px;
}
.blog-block + .blog-block,
.section + .section .blog-block { margin-top: 0; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  gap: 40px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--black-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--steel-light);
  font-weight: 600;
}
.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--black);
  color: var(--white);
  resize: vertical;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form__note {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin: 0;
  min-height: 1.2em;
}

/* ---------- Tiendas ---------- */
.locations-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.location-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 24px;
}
.location-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(232, 163, 60, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.location-card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: none;
  margin-bottom: 6px;
}
.location-card p { font-size: 0.9rem; color: #555; margin: 0 0 14px; }
.location-card__link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.location-card__link:hover { text-decoration: underline; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  padding: 64px 0;
  text-align: center;
}
.cta-final__content h2 {
  color: var(--black);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
}
.cta-final__content p {
  color: rgba(13,13,13,0.75);
  font-weight: 500;
}
/* En este bloque el fondo ya es dorado, así que "Titanes" necesita
   contraste distinto al de .text-gold (que se perdería aquí). */
.cta-final__content .text-gold {
  color: var(--white);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  padding: 32px 0;
}
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer__logo { height: 34px; width: auto; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.footer__nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-light);
}
.footer__nav a:hover { color: var(--gold); }
.footer__copy {
  font-size: 0.78rem;
  color: var(--steel);
  margin: 0;
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 90;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   TABLET / DESKTOP (mobile-first: se agranda desde aquí)
   ========================================================================== */
@media (min-width: 720px) {
  .nav-toggle { display: none; }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    transform: none;
    gap: 32px;
  }

  .hero__actions { flex-direction: row; }

  .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }

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

  .video-grid { grid-template-columns: 1fr 1fr; align-items: center; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid__img { height: 220px; }
  .gallery-grid__img--tall { grid-column: auto; height: 220px; }

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

  .footer__row { flex-direction: row; justify-content: space-between; text-align: left; }

  .brand-proof-grid { grid-template-columns: repeat(4, 1fr); }

  .blog-block { grid-template-columns: 1fr 1fr; align-items: center; }
  .blog-block--reverse .blog-block__text { order: 2; }
  .blog-block--reverse .blog-block__video { order: 1; }

  .contact-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 1024px) {
  .section { padding: 110px 0; }

  .brand-proof-grid { gap: 28px; }
}
