/* ============================================
   RAM Instalaciones e Infraestructuras
   Landing Page — Estilos Premium
   ============================================ */

:root {
  --orange: #E85D04;
  --orange-dark: #D45203;
  --orange-light: #FF7B29;
  --orange-glow: rgba(232, 93, 4, 0.25);
  --white: #FFFFFF;
  --off-white: #F8F9FB;
  --gray-50: #F4F5F7;
  --gray-100: #E8EAED;
  --gray-200: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-600: #6B7280;
  --gray-800: #1F2937;
  --dark: #111827;
  --dark-card: #1A2332;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Oswald', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-orange: 0 8px 30px var(--orange-glow);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
  --header-height-expanded: 104px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--gray { background: var(--off-white); }
.section--dark { background: var(--dark); }

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section__tag--light { color: var(--orange-light); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section__title--light { color: var(--white); }

.section__desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}

.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--orange-glow);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.35);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn--xl {
  padding: 14px 28px;
  font-size: 0.95rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height-expanded);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.header.scrolled {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav__logo-img {
  height: 76px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--transition);
}

.header.scrolled .nav__logo-img {
  height: 48px;
  max-width: 120px;
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.03);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.header.scrolled .nav__link { color: var(--gray-800); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__link:hover { color: var(--orange); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--whatsapp);
  color: var(--white) !important;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

.nav__cta::after { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.header.scrolled .nav__toggle span { background: var(--dark); }

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) { opacity: 0; }

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height-expanded);
  box-sizing: border-box;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 14, 20, 0.94) 0%, rgba(17, 24, 39, 0.82) 45%, rgba(17, 24, 39, 0.45) 70%, rgba(232, 93, 4, 0.2) 100%),
    linear-gradient(180deg, transparent 60%, rgba(10, 14, 20, 0.85) 100%);
}

.hero__watermark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 13rem);
  font-weight: 700;
  color: rgba(232, 93, 4, 0.05);
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.hero__accent-line {
  position: absolute;
  left: 0;
  top: 32%;
  width: 4px;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--orange), var(--orange-light), transparent);
  z-index: 1;
  box-shadow: 0 0 16px var(--orange-glow);
}

.hero__content.container {
  max-width: 1200px;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 8px 24px 52px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.hero__main {
  max-width: 620px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(232, 93, 4, 0.18);
  border: 1px solid rgba(232, 93, 4, 0.45);
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero__title-line {
  display: block;
  font-size: clamp(1.65rem, 2.8vw, 2.75rem);
}

.hero__title-line--accent {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero__highlight {
  font-style: normal;
  color: var(--orange-light);
  text-shadow: 0 0 40px rgba(232, 93, 4, 0.45);
}

.hero__subtitle {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 520px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__chip {
  padding: 5px 14px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  transition: all var(--transition);
}

.hero__chip:hover {
  color: var(--white);
  background: rgba(232, 93, 4, 0.25);
  border-color: rgba(232, 93, 4, 0.5);
  transform: translateY(-2px);
}

.hero__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__stat-card {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  border-left: 4px solid rgba(232, 93, 4, 0.5);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.hero__stat-card:hover {
  transform: translateX(8px);
  border-left-color: var(--orange);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero__stat-card--accent {
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.2) 0%, rgba(232, 93, 4, 0.06) 100%);
  border-color: rgba(232, 93, 4, 0.35);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--orange-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  line-height: 1.4;
}

.hero__trust {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(232, 93, 4, 0.25);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.hero__trust-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.15);
  border-radius: 12px;
  color: var(--orange-light);
}

.hero__trust p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

.hero__trust strong {
  color: var(--orange-light);
}

.hero__scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about__image .parallax-img {
  height: 115%;
  margin-top: -7.5%;
  will-change: transform;
}

.about__experience {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--orange);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-orange);
}

.about__experience-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about__experience-text {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about__text {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about__text strong { color: var(--dark); }

.about__features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.1);
  color: var(--orange);
  border-radius: 12px;
}

.about__features strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.about__features p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Services — Showcase interactivo */
.services {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.services__container {
  position: relative;
  z-index: 1;
}

/* Luces naranjas en movimiento detrás de la grilla */
.services__light {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.7;
  will-change: transform;
}

.services__light--1 {
  width: 55%;
  height: 45%;
  top: -10%;
  left: -15%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.55) 0%, rgba(255, 123, 41, 0.2) 40%, transparent 70%);
  animation: servicesLight1 16s ease-in-out infinite;
}

.services__light--2 {
  width: 50%;
  height: 40%;
  bottom: -5%;
  right: -10%;
  background: radial-gradient(circle, rgba(255, 123, 41, 0.5) 0%, rgba(212, 82, 3, 0.18) 45%, transparent 70%);
  animation: servicesLight2 20s ease-in-out infinite;
}

.services__light--3 {
  width: 40%;
  height: 35%;
  top: 40%;
  left: 35%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.4) 0%, rgba(255, 160, 60, 0.15) 50%, transparent 75%);
  animation: servicesLight3 13s ease-in-out infinite;
}

@keyframes servicesLight1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(40vw, 25vh) scale(1.15); }
  50%       { transform: translate(25vw, 55vh) scale(0.9); }
  75%       { transform: translate(55vw, 15vh) scale(1.1); }
}

@keyframes servicesLight2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%       { transform: translate(-35vw, -30vh) scale(1.2); }
  60%       { transform: translate(-15vw, -50vh) scale(0.85); }
  80%       { transform: translate(-45vw, -10vh) scale(1.05); }
}

@keyframes servicesLight3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20%       { transform: translate(-30vw, 20vh) scale(1.25); }
  45%       { transform: translate(20vw, -25vh) scale(0.95); }
  70%       { transform: translate(-20vw, -35vh) scale(1.15); }
}

/* Grilla con brillo naranja animado en diagonal */
.services__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(232, 93, 4, 0.03) 20%,
      rgba(255, 123, 41, 0.18) 42%,
      rgba(232, 93, 4, 0.28) 50%,
      rgba(255, 123, 41, 0.18) 58%,
      rgba(232, 93, 4, 0.03) 80%,
      transparent 100%
    ),
    linear-gradient(rgba(232, 93, 4, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 93, 4, 0.07) 1px, transparent 1px);
  background-size: 300% 300%, 48px 48px, 48px 48px;
  background-position: 0% 50%, 0 0, 0 0;
  animation: servicesGridShine 10s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 85%);
  mix-blend-mode: screen;
}

@keyframes servicesGridShine {
  0%   { background-position: 0% 30%, 0 0, 0 0; }
  25%  { background-position: 50% 0%, 0 0, 0 0; }
  50%  { background-position: 100% 70%, 0 0, 0 0; }
  75%  { background-position: 50% 100%, 0 0, 0 0; }
  100% { background-position: 0% 30%, 0 0, 0 0; }
}

.section__desc--light {
  color: rgba(255, 255, 255, 0.65);
}

.services-showcase {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
}

.services-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.services-nav__indicator {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 0;
  background: linear-gradient(90deg, rgba(232, 93, 4, 0.25), rgba(255, 123, 41, 0.1));
  border: 1px solid rgba(232, 93, 4, 0.35);
  border-radius: var(--radius);
  transition: top 0.45s cubic-bezier(0.23, 1, 0.32, 1), height 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 0;
}

.services-nav__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.3s ease, transform 0.3s ease;
}

.services-nav__item:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(6px);
}

.services-nav__item.active {
  color: var(--white);
}

.services-nav__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-light);
  opacity: 0.7;
  min-width: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.services-nav__item.active .services-nav__num,
.services-nav__item:hover .services-nav__num {
  opacity: 1;
  transform: scale(1.1);
}

.services-nav__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.services-nav__text strong {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.services-nav__text small {
  font-size: 0.75rem;
  opacity: 0.65;
}

.services-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--dark-card);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.services-panel__glow {
  position: absolute;
  inset: -1px;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(232, 93, 4, 0.18), transparent 40%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.services-panel:hover .services-panel__glow { opacity: 1; }

.services-panel__media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.services-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
  opacity: 0;
  transform: scale(1.08);
}

.services-panel__img--active {
  opacity: 1;
  transform: scale(1);
}

.services-panel__img--exit {
  opacity: 0;
  transform: scale(1.04);
}

.services-panel__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(232, 93, 4, 0.08) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: serviceScan 4s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes serviceScan {
  0%, 100% { background-position: 0 -100%; }
  50% { background-position: 0 200%; }
}

.services-panel__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(26, 35, 50, 0.95) 100%);
  pointer-events: none;
}

.services-panel__body {
  position: relative;
  z-index: 1;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-panel__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.services-panel__index {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(232, 93, 4, 0.35);
}

.services-panel__tag {
  padding: 6px 14px;
  background: rgba(232, 93, 4, 0.15);
  border: 1px solid rgba(232, 93, 4, 0.3);
  color: var(--orange-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
}

.services-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.services-panel__title.is-animating {
  opacity: 0;
  transform: translateY(12px);
}

.services-panel__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 20px;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.services-panel__desc.is-animating {
  opacity: 0;
  transform: translateY(10px);
}

.services-panel__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.services-panel__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 4px;
  transition: width 0.05s linear;
}

.services-panel__features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-panel__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateX(-12px);
  animation: featureSlideIn 0.5s ease forwards;
}

.services-panel__features li:nth-child(1) { animation-delay: 0.1s; }
.services-panel__features li:nth-child(2) { animation-delay: 0.15s; }
.services-panel__features li:nth-child(3) { animation-delay: 0.2s; }
.services-panel__features li:nth-child(4) { animation-delay: 0.25s; }
.services-panel__features li:nth-child(5) { animation-delay: 0.3s; }
.services-panel__features li:nth-child(6) { animation-delay: 0.35s; }
.services-panel__features li:nth-child(7) { animation-delay: 0.4s; }
.services-panel__features li:nth-child(8) { animation-delay: 0.45s; }

.services-panel__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--orange-glow);
}

@keyframes featureSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.services-panel__cta {
  align-self: flex-start;
}

/* Marquee decorativo */
.services-marquee {
  margin-top: 48px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.services-marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.services-marquee__track span:nth-child(odd) {
  color: rgba(232, 93, 4, 0.25);
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* Stagger entrada nav al scroll */
.services-nav__item.reveal-stagger {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.services-nav__item.reveal-stagger.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Portfolio */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.portfolio__filter {
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.portfolio__filter:hover,
.portfolio__filter.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.portfolio__item.hidden {
  display: none;
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio__item:hover img { transform: scale(1.08); }

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio__item:hover .portfolio__overlay { opacity: 1; }

.portfolio__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 8px;
}

.portfolio__overlay h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.portfolio__overlay p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Why */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why__card {
  padding: 32px;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.why__card:hover {
  border-color: rgba(232, 93, 4, 0.3);
  transform: translateY(-4px);
}

.why__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.15);
  color: var(--orange-light);
  border-radius: 12px;
  margin-bottom: 20px;
}

.why__card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.why__card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* CTA — Widget estilo WhatsApp */
.cta {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__bg .parallax-img {
  height: 120%;
  margin-top: -10%;
  will-change: transform;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(232, 93, 4, 0.75) 100%);
}

.cta__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
}

.cta__copy {
  max-width: 560px;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.12;
}

.cta__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cta__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.cta__benefits li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange-glow);
  flex-shrink: 0;
}

/* Widget WhatsApp */
.wa-widget {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 400px;
  width: 100%;
  margin-left: auto;
  animation: waWidgetFloat 4s ease-in-out infinite;
}

@keyframes waWidgetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.wa-widget__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #1a3355;
}

.wa-widget__avatar {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.wa-widget__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.wa-widget__online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--whatsapp);
  border: 2px solid #1a3355;
  border-radius: 50%;
}

.wa-widget__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-widget__info strong {
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}

.wa-widget__info span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.wa-widget__body {
  position: relative;
  padding: 20px 16px 16px;
  min-height: 220px;
  background-color: #f0ede8;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cfc6' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa-widget__time {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
}

.wa-widget__bubble {
  max-width: 85%;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px 16px 16px 16px;
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.45;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(12px);
  animation: waBubbleIn 0.5s ease forwards;
}

.wa-widget__bubble--1 { animation-delay: 0.3s; }
.wa-widget__bubble--2 { animation-delay: 0.7s; }
.wa-widget__bubble--3 { animation-delay: 1.1s; }

@keyframes waBubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-widget__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f0f0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-widget__input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wa-widget__input::placeholder {
  color: var(--gray-400);
}

.wa-widget__input:focus {
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.35);
}

.wa-widget__send {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.wa-widget__send:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.08);
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__desc {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

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

.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.1);
  color: var(--orange);
  border-radius: 12px;
}

.contact__icon--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp);
}

.contact__list strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact__list a {
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
}

.contact__list a:hover { color: var(--orange); }

.contact__list span {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact__card {
  background: var(--off-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.contact__card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact__card > p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.contact__quick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.contact__quick-btn:hover {
  border-color: var(--whatsapp);
  color: var(--whatsapp);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact__quick-btn svg { flex-shrink: 0; }

/* Footer */
.footer {
  position: relative;
  background: linear-gradient(180deg, #0f1419 0%, var(--dark) 40%, #0a0e14 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0 0;
  overflow: hidden;
}

.footer__top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--orange-light), var(--orange), var(--orange-dark));
  background-size: 200% 100%;
  animation: footerBarShine 6s linear infinite;
}

@keyframes footerBarShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.footer__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

.footer__glow--left {
  width: 320px;
  height: 320px;
  top: 20%;
  left: -8%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.5) 0%, transparent 70%);
}

.footer__glow--right {
  width: 280px;
  height: 280px;
  bottom: 10%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 123, 41, 0.4) 0%, transparent 70%);
}

.footer__container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(232, 93, 4, 0.2);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__logo:hover { color: var(--orange-light); }

.footer__logo-img {
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(232, 93, 4, 0.25);
  box-shadow: 0 0 20px rgba(232, 93, 4, 0.15);
}

.footer__brand {
  padding-left: 16px;
  border-left: 3px solid var(--orange);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.footer__heading-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  margin-right: 10px;
  box-shadow: 0 0 10px var(--orange-glow);
  vertical-align: middle;
  transform: rotate(45deg);
}

.footer__links h4,
.footer__contact h4 {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(232, 93, 4, 0.35);
}

.footer__links ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links li {
  position: relative;
  padding-left: 14px;
}

.footer__links li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.footer__links li:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--orange);
}

.footer__links a,
.footer__contact a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition), padding-left var(--transition);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--orange-light);
  padding-left: 4px;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.3);
  border-radius: 8px;
  color: var(--orange-light);
  transition: all var(--transition);
}

.footer__contact-icon--wa {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.35);
  color: var(--whatsapp);
}

.footer__contact li:hover .footer__contact-icon {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 0 16px var(--orange-glow);
}

.footer__contact li:hover .footer__contact-icon--wa {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 0 28px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(232, 93, 4, 0.15);
}

.footer__bottom > p:first-child {
  justify-self: start;
}

.footer__bottom > p:last-child {
  justify-self: end;
}

.footer__bottom p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__bottom-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange);
  flex-shrink: 0;
}

.footer__bottom-line {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  flex-shrink: 0;
}

.footer__credit {
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer__credit a {
  color: var(--orange-light);
  font-weight: 600;
  transition: color var(--transition), text-shadow var(--transition);
}

.footer__credit a:hover {
  color: var(--white);
  text-shadow: 0 0 12px var(--orange-glow);
}

/* WhatsApp Float — siempre visible abajo a la izquierda */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  right: auto;
  z-index: 9999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overflow: visible;
}

/* Evita que .btn--ripple anule position:fixed al recargar */
.whatsapp-float.btn--ripple {
  position: fixed;
  overflow: visible;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.45s; }
.fade-up:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.reveal--left {
  transform: translateX(-52px);
}

.reveal.reveal--right {
  transform: translateX(52px);
}

.reveal.reveal--up {
  transform: translateY(52px);
}

.reveal.reveal--left.visible,
.reveal.reveal--right.visible {
  transform: translateX(0);
}

.reveal.reveal--up.visible {
  transform: translateY(0);
}

.why__grid .why__card.reveal:nth-child(1) { transition-delay: 0.05s; }
.why__grid .why__card.reveal:nth-child(2) { transition-delay: 0.12s; }
.why__grid .why__card.reveal:nth-child(3) { transition-delay: 0.19s; }
.why__grid .why__card.reveal:nth-child(4) { transition-delay: 0.26s; }
.why__grid .why__card.reveal:nth-child(5) { transition-delay: 0.33s; }
.why__grid .why__card.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Indicador lateral de secciones */
.section-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.section-nav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.section-nav__list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

.section-nav__list::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(232, 93, 4, 0.35) 15%, rgba(232, 93, 4, 0.35) 85%, transparent);
  pointer-events: none;
}

.section-nav__list li {
  position: relative;
  z-index: 1;
}

.section-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
  border-radius: 50%;
  outline: none;
}

.section-nav__link:hover .section-nav__dot,
.section-nav__link:focus-visible .section-nav__dot {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.section-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.45);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.section-nav__link.active .section-nav__dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.5), 0 0 14px var(--orange-glow);
}

.section-nav__label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  padding: 7px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(232, 93, 4, 0.35);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.section-nav__label::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(17, 24, 39, 0.92);
  border-right: 1px solid rgba(232, 93, 4, 0.35);
  border-top: 1px solid rgba(232, 93, 4, 0.35);
  transform: translateY(-50%) rotate(45deg);
}

.section-nav__link:hover .section-nav__label,
.section-nav__link:focus-visible .section-nav__label,
.section-nav__link.active .section-nav__label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Responsive */
@media (max-height: 750px) {
  .hero__trust { display: none; }
  .hero__chips { display: none; }
  .hero__title-line { font-size: 1.5rem; }
  .hero__stat-card { padding: 10px 14px; }
}

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__side {
    max-width: 640px;
  }

  .hero__watermark {
    font-size: 10rem;
    opacity: 0.5;
  }
}

@media (max-width: 1024px) {
  .section-nav { display: none; }

  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }

  .cta__layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .cta__copy {
    max-width: 100%;
    margin: 0 auto;
  }

  .cta__benefits {
    align-items: center;
  }

  .wa-widget {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  .nav__logo-img {
    height: 58px;
    max-width: 150px;
  }

  .header.scrolled .nav__logo-img {
    height: 40px;
    max-width: 96px;
  }

  .header {
    height: 88px;
  }

  .header.scrolled {
    height: var(--header-height);
  }

  .footer__logo {
    flex-wrap: wrap;
  }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 100px 32px 32px;
    background: var(--dark);
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav__menu.open { right: 0; }

  .nav__menu li { width: 100%; }

  .nav__link {
    display: block;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__cta {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }

  .hero__watermark,
  .hero__accent-line { display: none; }

  .hero {
    height: auto;
    min-height: 100dvh;
    max-height: none;
  }

  .hero__content {
    padding: 16px 24px 72px;
  }

  .hero__stat-card:hover {
    transform: none;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image img { height: 350px; }

  .services-showcase {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .services-nav {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 12px;
  }

  .services-nav__indicator { display: none; }

  .services-nav__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 160px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px;
  }

  .services-nav__item:hover { transform: translateY(-4px); }

  .services-panel {
    grid-template-columns: 1fr;
  }

  .services-panel__media {
    min-height: 220px;
  }

  .services-panel__media::after {
    background: linear-gradient(180deg, transparent 30%, rgba(26, 35, 50, 0.95) 100%);
  }

  .services-panel__body {
    padding: 28px 24px;
  }

  .portfolio__grid,
  .why__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer__bottom > p:first-child,
  .footer__bottom > p:last-child,
  .footer__credit {
    justify-self: center;
  }

  .footer__credit {
    white-space: normal;
  }

  .footer__bottom p {
    justify-content: center;
  }

  .footer__brand {
    padding-left: 0;
    border-left: none;
    padding-top: 12px;
    border-top: 3px solid var(--orange);
  }

  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    right: auto;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .hero__title-line { font-size: 1.55rem; }
  .hero__title-line--accent { font-size: 0.9rem; }
  .hero__stat-card { padding: 14px 18px; }
  .contact__card { padding: 28px; }
}

/* ============================================
   Efectos JavaScript (inspirados en FreeFrontend)
   ============================================ */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1001;
  background: rgba(232, 93, 4, 0.12);
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange-light));
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--orange-glow);
}

/* Typing cursor */
.typed-cursor {
  color: var(--orange-light);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Button Ripple (FreeFrontend: CSS Ripple Effects) */
.btn--ripple {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Magnetic buttons (FreeFrontend: Magnetic Buttons) */
.btn--magnetic {
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* Scroll to Top + Circular Progress */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--orange-dark);
}

.scroll-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-top__track {
  stroke: var(--gray-100);
}

.scroll-top__progress {
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-top__arrow {
  position: relative;
  z-index: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] { display: none; }
.lightbox.open[hidden] { display: flex; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox__container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.open .lightbox__container {
  transform: scale(1) translateY(0);
}

.lightbox__figure {
  margin: 0;
}

.lightbox__img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--dark);
}

.lightbox__caption {
  background: var(--white);
  padding: 24px 28px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.lightbox__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  margin-bottom: 8px;
}

.lightbox__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lightbox__desc {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.lightbox__counter {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover { background: var(--orange); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.lightbox__nav:hover {
  background: var(--orange);
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav--prev { left: -56px; }
.lightbox__nav--next { right: -56px; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 2001;
  padding: 14px 24px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] { display: block; }

/* Hero parallax */
#hero-parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 88px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }

  .lightbox__close { top: 12px; right: 12px; }
}

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

  .btn--magnetic { transition: none; }
  #hero-parallax-img { transition: none; }
  .parallax-img { transform: none !important; margin-top: 0 !important; height: 100% !important; }
  .reveal.reveal--left,
  .reveal.reveal--right,
  .reveal.reveal--up { transform: none; opacity: 1; }
  .why__grid .why__card.reveal { transition-delay: 0s !important; }
  .services-marquee__track { animation: none; }
  .services-panel__scan { animation: none; }
  .services-panel { transition: none; }
  .services__light { animation: none; opacity: 0.35; }
  .services__pattern { animation: none; background-position: 50% 50%, 0 0, 0 0; }
  .footer__top-bar { animation: none; }
  .wa-widget { animation: none; }
  .wa-widget__bubble {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
