/* ════════════════════════════════════════════════════════════
   G3M — Stylesheet principal
   Diseño: Corporativo-Industrial | Mobile First
   Fuentes: Bebas Neue (display) + Barlow (body)
════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Colores */
  --yellow:       #F5C000;
  --yellow-dark:  #C99900;
  --yellow-light: #FFD740;
  --black:        #0A0A0A;
  --grey-950:     #111111;
  --grey-900:     #1C1C1C;
  --grey-800:     #2A2A2A;
  --grey-700:     #3D3D3D;
  --grey-500:     #6B6B6B;
  --grey-300:     #AAAAAA;
  --grey-100:     #E8E8E8;
  --grey-50:      #F5F5F5;
  --white:        #FFFFFF;

  /* Tipografía */
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Tamaños */
  --nav-h:        70px;
  --radius:       4px;
  --radius-lg:    12px;

  /* Transiciones */
  --ease:         cubic-bezier(.25, .46, .45, .94);
  --ease-out:     cubic-bezier(0, 0, .2, 1);

  /* Espaciado */
  --section-py:   clamp(60px, 8vw, 120px);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

.section { padding: var(--section-py) 0; }
.section--dark { background: var(--grey-900); }

/* ── Tipografía global ─────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: .03em;
  line-height: 1;
  color: var(--grey-900);
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-500);
  max-width: 560px;
  line-height: 1.7;
}
.section-subtitle--light { color: var(--grey-300); }

.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-header .section-subtitle { margin: 0 auto; }

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(245,192,0,.25);
}
.btn--primary:hover {
  background: var(--yellow-light);
  box-shadow: 0 8px 30px rgba(245,192,0,.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn--outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn--full { width: 100%; }

/* ── Navegación ─────────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-header.scrolled {
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo { display: flex; align-items: center; }
.logo-g3m {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: .06em;
  color: var(--white);
}
.logo-accent { color: var(--yellow); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-300);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color .2s;
}
.nav-link:hover { color: var(--yellow); }
.nav-link--cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 8px 20px;
  transition: background .2s;
}
.nav-link--cta:hover { background: var(--yellow-light); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grey-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245,192,0,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(245,192,0,.04) 0%, transparent 50%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-cond);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 24px;
  animation: fadeDown .8s var(--ease-out) both;
}
.eyebrow-bar {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--yellow);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--white);
  max-width: 10ch;
  margin-bottom: 28px;
  animation: fadeUp .9s .15s var(--ease-out) both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--grey-300);
  max-width: 44ch;
  line-height: 1.65;
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeUp .9s .3s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp .9s .45s var(--ease-out) both;
}

.hero-badge {
  position: absolute;
  right: clamp(24px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateBadge 20s linear infinite;
}
.badge-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  opacity: .3;
}
.badge-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
  text-align: center;
  line-height: 1;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── About / Stats ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-content .section-title { margin-bottom: 20px; }
.about-text {
  color: var(--grey-500);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.stats-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border-left: 4px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.stat-card:hover { transform: translateX(6px); box-shadow: -4px 0 0 var(--yellow); }
.stat-card--accent {
  background: var(--grey-900);
  border-left-color: var(--yellow);
}
.stat-card--accent .stat-number,
.stat-card--accent .stat-label { color: var(--white); }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--grey-900);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .9rem;
  color: var(--grey-500);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ── Precios ────────────────────────────────────────────────── */
.precios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}

.precio-card {
  background: var(--grey-800);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.precio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.precio-card--featured {
  background: var(--grey-900);
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow), 0 20px 60px rgba(245,192,0,.15);
  transform: scale(1.03);
}
.precio-card--featured:hover { transform: scale(1.03) translateY(-6px); }

.precio-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 50px;
}

.precio-header { margin-bottom: 24px; }
.precio-nombre {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: .05em;
}
.precio-desc {
  font-size: .85rem;
  color: var(--grey-300);
  margin-top: 6px;
  line-height: 1.5;
}

.precio-amount {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.precio-currency {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  color: var(--yellow);
  font-weight: 700;
  align-self: flex-start;
  padding-top: 8px;
}
.precio-valor {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--white);
}
.precio-periodo {
  font-size: .85rem;
  color: var(--grey-300);
  padding-bottom: 8px;
}
.precio-consulta {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
}

.precio-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.precio-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--grey-100);
  line-height: 1.4;
}
.feat-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(245,192,0,.15);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 1px;
}

/* ── Galería ────────────────────────────────────────────────── */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--grey-100);
}

.galeria-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.galeria-item:hover .galeria-img { transform: scale(1.08); }

.galeria-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 40px 16px 16px;
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.galeria-item:hover .galeria-overlay { transform: translateY(0); }
.galeria-overlay span {
  color: var(--white);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
}

.galeria-placeholder {
  text-align: center;
  padding: 60px 20px;
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  color: var(--grey-500);
}
.galeria-placeholder a { color: var(--yellow-dark); text-decoration: underline; }

/* ── Contacto ───────────────────────────────────────────────── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 7vw, 80px);
  align-items: start;
}

.contacto-info .section-title { margin-bottom: 16px; }

.info-items { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,192,0,.1);
  border: 1px solid rgba(245,192,0,.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.info-item strong { display: block; color: var(--white); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--grey-300); font-size: .95rem; }
.info-item a:hover { color: var(--yellow); }

/* Formulario */
.contacto-form-wrap {
  background: var(--grey-800);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.06);
}

.contacto-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-cond);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.form-group input,
.form-group textarea {
  background: var(--grey-900);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey-700); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,192,0,.15);
}
.form-group input.error { border-color: #ff6b6b; }

.form-feedback {
  min-height: 20px;
  font-size: .9rem;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(34,197,94,.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.2);
}
.form-feedback.error {
  display: block;
  background: rgba(239,68,68,.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.2);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { font-size: 1.6rem; }
.footer-copy { font-size: .82rem; color: var(--grey-500); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-family: var(--font-cond);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-500);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--yellow); }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  transform: scale(.95);
  transition: transform .3s var(--ease);
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2rem;
  color: var(--white);
  opacity: .6;
  transition: opacity .2s;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

/* ── Reveal animation ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rotateBadge {
  to { transform: translateY(-50%) rotate(360deg); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: .4; transform: scaleY(.7); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .hero-badge    { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 32px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 14px 16px; font-size: 1rem; }
  .nav-link--cta { text-align: center; margin-top: 8px; }
  .nav-burger { display: flex; }

  .precios-grid { grid-template-columns: 1fr; }
  .precio-card--featured { transform: none; }
  .precio-card--featured:hover { transform: translateY(-6px); }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .galeria-grid { grid-template-columns: 1fr 1fr; }
}
