/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:    #F5C800;
  --yellow-dk: #D9AE00;
  --black:     #111111;
  --dark:      #161616;
  --dark2:     #1E1E1E;
  --gray-700:  #444444;
  --gray-400:  #888888;
  --gray-100:  #F4F4F4;
  --white:     #FFFFFF;

  --font: 'Inter', system-ui, sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-lg: 0 8px 48px rgba(0,0,0,.18);
  --nav-h:     70px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ===========================
   UTILITY
=========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--black);
  letter-spacing: -.02em;
}
.section-sub {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--gray-700);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.section-header--light h2 { color: var(--white); }
.section-header--light .section-tag {
  color: var(--yellow);
  border-color: rgba(245,200,0,.3);
  background: rgba(245,200,0,.07);
}

.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid #E0E0E0;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

/* ===========================
   BUTTONS + RIPPLE
=========================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm   { font-size: .8rem;  padding: 9px 20px; }
.btn--lg   { font-size: 1rem;   padding: 15px 34px; }

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: var(--yellow-dk);
  border-color: var(--yellow-dk);
}
/* Nav button: no glow — just a clean inset ring */
.nav .btn--primary:hover {
  background: var(--yellow-dk);
  border-color: var(--yellow-dk);
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* Ripple */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,.35);
  animation: ripple-anim .55s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
.nav.scrolled {
  background: rgba(17,17,17,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

.nav__logo {
  margin-right: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 64px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 4px;
}
.nav__links a {
  position: relative;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 13px; right: 13px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: left;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.active { color: var(--white); }
.nav__links a.active::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.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); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(17,17,17,.97);
  padding: 12px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile-link:hover { color: var(--yellow); }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  background: var(--dark);
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Diagonal checker accent */
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(245,200,0,.028) 0px, rgba(245,200,0,.028) 1px,
    transparent 1px, transparent 44px
  );
  pointer-events: none;
}

/* Mouse-following glow */
.hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,0,.14) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  top: 30%; right: -10%;
  pointer-events: none;
  transition: left .08s linear, top .08s linear;
  will-change: transform;
}

.hero__inner {
  position: relative;
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(245,200,0,.1);
  border: 1px solid rgba(245,200,0,.28);
  border-radius: 999px;
  padding: 5px 16px;
  width: fit-content;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.04;
  color: var(--white);
  letter-spacing: -.035em;
}
.hero__title-accent {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.6);
  max-width: 500px;
  line-height: 1.7;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 12px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat__num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ===========================
   TICKER STRIP
=========================== */
.ticker {
  background: var(--yellow);
  overflow: hidden;
  padding: 14px 0;
}
.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: 28px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}
.ticker__item::after {
  content: '●';
  color: var(--black);
  opacity: .4;
  font-size: .55rem;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================
   PITCH STRIP
=========================== */
.pitch {
  background: var(--dark2);
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pitch__text {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  text-align: center;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}
.pitch__text strong { color: var(--yellow); }

/* ===========================
   VENTAJAS
=========================== */
.ventajas {
  padding: 100px 0;
  background: var(--white);
}
.ventajas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 20px;
}

.ventaja-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #EAEAEA;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  cursor: default;
}
.ventaja-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--yellow);
}

.ventaja-card__icon {
  width: 50px; height: 50px;
  background: var(--yellow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s;
}
.ventaja-card:hover .ventaja-card__icon { transform: rotate(-6deg) scale(1.1); }
.ventaja-card__icon svg { width: 22px; height: 22px; stroke: var(--black); }

.ventaja-card h3 { font-size: 1.05rem; font-weight: 700; }
.ventaja-card p  { font-size: .88rem; color: var(--gray-700); line-height: 1.65; }

/* ===========================
   SERVICIOS
=========================== */
.servicios {
  padding: 100px 0;
  background: var(--dark);
}
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.servicio-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.servicio-card:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(245,200,0,.2);
}

/* Image area */
.servicio-card__img {
  position: relative;
  height: 200px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.servicio-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.servicio-card:hover .servicio-card__img img { transform: scale(1.06); }

/* Fallback when no image */
.servicio-card__img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .2s;
}
.servicio-card__img.no-img img { display: none; }
.servicio-card__img.no-img .servicio-card__img-fallback { opacity: 1; }
.servicio-card__img-fallback svg { width: 40px; height: 40px; stroke: rgba(245,200,0,.5); }


.servicio-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.servicio-card__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--yellow);
  opacity: .3;
  line-height: 1;
}
.servicio-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.servicio-card p  { font-size: .88rem; color: rgba(255,255,255,.58); line-height: 1.7; flex: 1; }

.servicio-card__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.servicio-card__specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.servicio-card__specs li span {
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
}

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
  background: var(--yellow);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0,0,0,.04) 0px, rgba(0,0,0,.04) 1px,
    transparent 1px, transparent 36px
  );
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta-banner h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.cta-banner p { font-size: 1.05rem; color: rgba(0,0,0,.6); max-width: 460px; }
.cta-banner .btn--primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow);
}
.cta-banner .btn--primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}


/* ===========================
   CONTACTO
=========================== */
.contacto {
  padding: 80px 0;
  background: var(--white);
}
.contacto__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.contacto__intro {
  font-size: .93rem;
  color: var(--gray-700);
  line-height: 1.7;
  padding-bottom: 4px;
}

/* Cards row */
.contacto__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: var(--gray-100);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.info-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.info-item__icon {
  width: 44px; height: 44px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.info-item:hover .info-item__icon { transform: scale(1.1) rotate(-5deg); }
.info-item__icon svg { width: 20px; height: 20px; stroke: var(--black); }
.info-item strong { display: block; font-weight: 700; margin-bottom: 2px; font-size: .9rem; }
.info-item p { font-size: .88rem; color: var(--gray-700); line-height: 1.65; }

.contacto__cta {
  text-align: center;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--black);
  padding: 30px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__logo {
  display: flex;
  align-items: center;
}
.footer__logo img {
  height: 109px;
  width: auto;
  display: block;
}

.footer__copy {
  font-size: .78rem;
  color: var(--gray-400);
  line-height: 1.6;
}
.footer__top {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.footer__top:hover { background: var(--yellow); transform: translateY(-2px); }
.footer__top svg { width: 18px; height: 18px; stroke: var(--white); }
.footer__top:hover svg { stroke: var(--black); }

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 720px) {
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__logo img { height: 36px; }

  .hero__inner { padding-block: 56px 48px; }

  .ventajas__grid,
  .servicios__grid,
  .contacto__info { grid-template-columns: 1fr; }

  .footer__copy  { margin: 0; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 24px; }
  .stat__num   { font-size: 1.8rem; }
  .hero__cta   { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
