:root {
  --white: #ffffff;
  --accent: #E67E22;
  --accent-light: #F39C12;
  --accent-dark: #D35400;
  --accent-soft: rgba(230, 126, 34, 0.15);
  --blue: #040F91;
  --blue-light: rgba(4, 15, 145, 0.1);
  --blue-medium: rgba(4, 15, 145, 0.7);
  --blue-dark: rgba(4, 15, 145, 0.9);
  --text-muted: rgba(4, 15, 145, 0.75);
  --border-soft: rgba(4, 15, 145, 0.16);
  --bg-soft: #f7f9ff;
  --shadow: 0 12px 32px rgba(4, 15, 145, 0.15);
  --shadow-heavy: 0 24px 60px rgba(4, 15, 145, 0.25);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--white);
  color: var(--blue);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

.custom-cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.08s ease-out;
  transform: translate(var(--x), var(--y));
}

.custom-cursor.is-big {
  transform: translate(var(--x), var(--y)) scale(1.5);
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* ESCENA 1 – INTRO CON PAJARITO */
.scene-1 {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: sceneFadeOut 4s ease forwards;
}

.intro-container {
  text-align: center;
  perspective: 1000px;
}

.pajaro-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform-style: preserve-3d;
  animation: floatLogo 6s ease-in-out infinite;
}

.pajaro-3d {
  width: clamp(160px, 25vw, 240px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(230, 126, 34, 0.25));
  opacity: 0;
  animation: pajaroAparece 2s ease forwards 0.5s;
}

.intro-progress {
  width: 200px;
  height: 4px;
  background: rgba(4, 15, 145, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2rem;
  opacity: 0;
  animation: progressIn 1s ease forwards 1.5s;
}

.intro-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 2px;
  animation: progressLoad 2.5s ease forwards 2s;
}

.intro-subtitle {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(4, 15, 145, 0.7);
  opacity: 0;
  animation: subtitleIn 1.6s ease forwards 1.2s;
}

/* ESCENA 2 – TRANSICIÓN PAJARITO VUELA */
.scene-2 {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  animation: sceneTransition 3.5s ease forwards 3.5s;
  pointer-events: none;
}

.pajaro-volador {
  width: 80px;
  height: 80px;
  background: url('assets/img/pajaro.png') center/contain no-repeat;
  filter: drop-shadow(0 0 20px rgba(230, 126, 34, 0.6));
  animation: pajaroVuela 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 3.5s;
  opacity: 0;
}

/* PARTÍCULAS */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.22;
  animation: particleFloat 18s infinite linear;
}

/* PÁGINA PRINCIPAL */
.main-page {
  opacity: 0;
  animation: pageIn 0s ease forwards 1s;
  position: relative;
  z-index: 100;
}

/* HEADER REDISEÑADO - MENÚ PROFESIONAL 3D */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(4, 15, 145, 0.08);
  z-index: 1000;
  transform: translateY(-100%);
  animation: slideDown 1s ease forwards 3s;
  box-shadow: 0 4px 40px rgba(4, 15, 145, 0.08);
}

.nav-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo img {
  width: 180px;
  height: auto;
  transition: var(--transition);
}

.nav-logo:hover img {
  transform: translateY(-2px);
}

/* MENÚ DE NAVEGACIÓN PROFESIONAL */
.nav-links-3d {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(4, 15, 145, 0.1);
  box-shadow: 0 8px 32px rgba(4, 15, 145, 0.08);
}

.nav-link {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  position: relative;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
  background: transparent;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.nav-link:hover {
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3);
}

/* Indicador de sección activa */
.nav-indicator {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}

.nav-link.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}


/* Botón hamburguesa móvil */
.nav-toggle {
  display: none;
  font-size: 1.3rem;
  cursor: none;
  background: transparent;
  border: none;
  color: var(--blue);
  padding: 0.5rem;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: rgba(4, 15, 145, 0.05);
}

/* HERO MEJORADO */
.hero-3d {
  min-height: 100vh;
  padding: 8rem 5rem 4.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 50%,
    rgba(255, 255, 255, 0.86) 100%);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-content-3d {
  transform: translateY(30px);
  opacity: 0;
  animation: heroReveal 1s ease forwards 3s;
  text-align: center;
  margin-bottom: 4rem;
}

.hero-tagline {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(4, 15, 145, 0.8);
  margin-bottom: 1rem;
  display: block;
  background: var(--accent-soft);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(230, 126, 34, 0.3);
  display: inline-block;
}

.hero-kicker {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(4, 15, 145, 0.1);
}

.hero-title-3d {
  font-weight: 800;
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--blue);
}

.hero-title-3d span {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-title-3d span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent-soft);
  z-index: -1;
}

.hero-subtitle-3d {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(4, 15, 145, 0.85);
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.metric {
  min-width: 120px;
}

.metric-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
}

.metric-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(4, 15, 145, 0.7);
  margin-top: 0.3rem;
}

    /* GALERÍA HORIZONTAL */
.horizontal-gallery-container {
  transform: translateY(30px);
  opacity: 0;
  animation: heroReveal 1s ease forwards 3s;
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0;
}
.hero-gallery-header { text-align: center; margin-bottom: 2rem; }
.hero-gallery-title { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; }
.hero-gallery-subtitle { font-size: 0.9rem; color: var(--blue-medium); max-width: 600px; margin: 0 auto; }

.gallery-track {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(4, 15, 145, 0.12);
  box-shadow: var(--shadow-heavy);
}
.gallery-rail {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; gap: 1.5rem; padding: 1.5rem;
  animation: slideGallery 45s linear infinite;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 400px;
  height: 100%;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  cursor: none;
  background: rgba(4,15,145,.03);
  border: 1px solid rgba(4,15,145,.08);
  padding: 14px;               /* ✅ margen interno tipo “marco” */
  background: #fff;            /* ✅ fondo limpio */
}
.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(4, 15, 145, 0.28);
  z-index: 10;
}

.gallery-item img {
width: 100%;
height: 100%;
object-fit: contain;         /* ✅ NO recorta */
object-position: center;
background: #fff;            /* ✅ por si la imagen tiene transparencia */
transition: transform 0.6s ease, opacity .25s ease;
opacity: 0;
}

.gallery-item img.is-loaded{
  opacity: 1; /* ✅ aparece cuando cargue */
}

.gallery-item:hover img { transform: scale(1.08); }

/* ====== NUEVO: OVERLAY SÓLIDO PARA HEADER (igual vibe servicios) ====== */
.item-overlay {
  position: absolute;
  inset: 0;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.45s ease;
  z-index: 5;
  cursor: pointer;
}
.item-overlay span {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 1rem;
}
.gallery-item:hover .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ===== OVERLAY FULL AZUL (HOVER) PARA SERVICIOS ===== */
.service-overlay{
  position: absolute;
  inset: 0;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.45s ease;
  z-index: 5;
  cursor: pointer;
}

.service-overlay span{
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Activa el overlay al pasar el mouse */
.service-box:hover .service-overlay{
  opacity: 1;
  transform: translateY(0);
}

/* (Opcional recomendado) Quitar la barrita de 4px de arriba para que no compita */
.service-box::before{
  display: none;
}


.gallery-item:hover .item-overlay {
  transform: translateY(0);
}

.item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.item-desc {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Controles de la galería */
.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(4, 15, 145, 0.2);
  background: var(--white);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: var(--transition);
}

.gallery-control-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.gallery-pause-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(4, 15, 145, 0.2);
}

.gallery-pause-btn:hover {
  background: var(--accent);
  color: var(--blue);
  transform: translateY(-3px);
}

/* MARCAS EN HERO */
.hero-brands-block {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(4, 15, 145, 0.12);
  box-shadow: var(--shadow);
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-brands-block h2 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
}

.hero-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.hero-logo-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(4, 15, 145, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  transition: var(--transition);
}

.hero-logo-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(4, 15, 145, 0.15);
}

.hero-logo-item img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(0.1);
  transition: var(--transition);
}

.hero-logo-item:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* BOTONES CTA */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 3rem;
  justify-content: center;
}

.btn-3d {
  padding: 1rem 2.6rem;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.25s ease;
  transform-style: preserve-3d;
}

.btn-primary-3d {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(4, 15, 145, 0.35);
}

.btn-primary-3d:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(4, 15, 145, 0.4);
  background: var(--accent);
  color: var(--blue);
}

.btn-secondary-3d {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--accent);
  box-shadow: 0 16px 30px rgba(4, 15, 145, 0.18);
}

.btn-secondary-3d:hover {
  background: var(--accent);
  color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(4, 15, 145, 0.25);
}

/* SECCIONES GENERALES */
section {
  position: relative;
  z-index: 2;
}

.section-wrapper {
  padding: 4.5rem 5rem 4.5rem;
}

.section-title-3d {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(4, 15, 145, 0.7);
  margin-bottom: 3rem;
}

/* QUIÉNES SOMOS */
.about-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.about-features {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
}

.commitment-box {
  margin-top: 1.5rem;
  padding: 1.3rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), #ffffff);
  border: 1px solid var(--border-soft);
}

.commitment-box h3 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.commitment-box p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

.about-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(4, 15, 145, 0.25);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-overlay {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(4, 15, 145, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-image-overlay i {
  color: var(--accent);
}

/* SERVICIOS */
.services-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 0;
  min-height: 600px;
}

.clothesline {
  display: none;
  position: absolute;
  top: 50%;
  left: 50px;
  right: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0;
  animation: stretchLine 1.5s ease forwards 0.5s;
}

.services-grid-tendedero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.service-hanger {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
}

.service-hanger.visible {
  opacity: 1;
  transform: translateY(0);
}

.hanger-string {
  display: none;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-bottom: -2px;
}

.service-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0px;
  padding: 2.1rem;
  /* border: 1px solid rgba(4, 15, 145, 0.16); */
  border: 1px solid rgba(4, 15, 145, 0.12);
  width: 100%;
  max-width: 280px;
  text-align: center;
  cursor: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  /* box-shadow: 0 10px 30px rgba(4, 15, 145, 0.1); */
  box-shadow: 0 10px 22px rgba(4, 15, 145, 0.10);
}

.service-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.service-box:hover {
  border-color: var(--accent);
  /* box-shadow: 0 22px 40px rgba(4, 15, 145, 0.16); */
  box-shadow: 0 18px 34px rgba(4, 15, 145, 0.18);
  /* transform: translateY(-12px); */
  transform: translateY(-10px);
}

.service-box:hover::before {
  transform: scaleX(1);
}

.service-box:hover .service-icon {
  transform: translateY(-8px) scale(1.1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  transition: var(--transition);
  display: inline-block;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.service-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(4, 15, 145, 0.85);
  margin-bottom: 1.2rem;
}

.service-view-btn {
  padding: 0.7rem 1.5rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: var(--transition);
}

.service-view-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

/* MARCAS QUE CONFÍAN */
.partners-wrapper {
  max-width: 1180px;
  margin: 0 auto;
}

.partners-strip {
  margin-top: 1.2rem;
  border-radius: 20px;
  padding: 1.3rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 2.5rem;
  animation: partnersScroll 70s linear infinite;
  animation-play-state: paused; /* ✅ pausa al inicio (Safari fix) */
  align-items: center;
  width: max-content;
  transform: translateZ(0);     /* ✅ fuerza paint */
  will-change: transform;
}

.partners-track.is-ready{
  animation-play-state: running; /* ✅ arranca cuando logos estén listos */
}

.partner-logo {
  min-width: 140px;
  height: 80px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  transition: var(--transition);
}

.partner-logo:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(4, 15, 145, 0.15);
}

.partner-logo img {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.partners-stats {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  justify-content: center;
}

.stat-item {
  min-width: 140px;
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* TRABAJA CON NOSOTROS */
.careers-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: flex-start;
}

.careers-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.careers-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.benefit-card {
  padding: 1.1rem 1.1rem;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-card i {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.benefit-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.careers-form {
  padding: 1.8rem 1.9rem 2rem;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(4, 15, 145, 0.12);
}

.careers-form h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.form-group textarea {
  border-radius: 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.submit-btn {
  width: 100%;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--white);
  cursor: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 18px 40px rgba(4, 15, 145, 0.25);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(4, 15, 145, 0.34);
  background: var(--accent);
  color: var(--blue);
}

/* CONTACTO */
.contact-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-form-card {
  padding: 1.8rem 1.9rem 2rem;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(4, 15, 145, 0.12);
}

.contact-form-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.catalog-download {
  margin-top: 1.8rem;
  padding: 1.4rem 1.3rem;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  text-align: center;
}

.catalog-download h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.catalog-download p {
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: none;
  background: #28a745;
  color: #fff;
  transition: var(--transition);
}

.link-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(40, 167, 69, 0.3);
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.location {
  margin-bottom: 1.8rem;
}

.location h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.location p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.contact-extra {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-extra strong {
  color: var(--blue);
}

/* FOOTER */
.footer-3d {
  padding: 2.6rem 5rem 2.2rem;
  background: var(--white);
  border-top: 1px solid rgba(4, 15, 145, 0.16);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.9fr));
  gap: 2.5rem;
}

.footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.footer-text-main {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.social-links a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--blue);
  transition: all 0.2s ease;
  background: var(--white);
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(4, 15, 145, 0.16);
}

.footer-bottom {
  margin-top: 2.4rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(4, 15, 145, 0.78);
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
}

.whatsapp-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: translateY(-3px) rotate(15deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* MODAL DE GALERÍA PARA SERVICIOS */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-content {
  background: var(--white);
  border-radius: 24px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
}

.gallery-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue);
}

.close-gallery {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blue);
  cursor: none;
  transition: var(--transition);
}

.close-gallery:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* =========================
   MODAL GALERÍA (SERVICIOS) - ENCAJADA TIPO HERO
========================= */

.gallery-images{
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  overflow-y: auto;
  max-height: calc(90vh - 80px);

  /* ✅ columnas fluidas */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));

  /* ✅ todas las filas mismo alto (la “caja”) */
  grid-auto-rows: 230px;
}

/* ✅ la caja (como .gallery-item) */
.gallery-image{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(4,15,145,.10);
  background: #fff;
  transition: var(--transition);

  /* ✅ marco interno tipo hero */
  padding: 14px;

  display: grid;
  place-items: center;
}

.gallery-image:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(4,15,145,.18);
  border-color: rgba(230,126,34,.35);
}

/* ✅ la imagen “encajada” sin recorte */
.gallery-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;      /* ✅ CLAVE */
  object-position: center;  /* ✅ centrada */
  display: block;
  background: #fff;
}


/* ANIMACIONES NUEVAS PARA PAJARITO */
@keyframes pajaroAparece {
  0% { opacity: 0; transform: scale(0.5) rotate(-30deg); }
  70% { opacity: 1; transform: scale(1.05) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes pajaroVuela {
  0% { 
    opacity: 0; 
    transform: translateY(0) scale(0.8) rotate(0deg);
  }
  20% { 
    opacity: 1;
    transform: translateY(-20px) scale(1) rotate(-5deg);
  }
  40% { 
    transform: translateY(-80px) scale(1.1) rotate(5deg);
  }
  60% { 
    transform: translateY(-180px) scale(1.2) rotate(-3deg);
  }
  80% { 
    opacity: 1;
    transform: translateY(-320px) scale(1.3) rotate(2deg);
  }
  100% { 
    opacity: 0;
    transform: translateY(-500px) scale(1.5) rotate(0deg);
  }
}

@keyframes progressIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes progressLoad {
  0% { width: 0%; }
  30% { width: 30%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ANIMACIONES EXISTENTES */
@keyframes sceneFadeOut {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

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

@keyframes subtitleIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes sceneTransition {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes pageIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

@keyframes heroReveal {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.45; }
  90% { opacity: 0.45; }
  100% {
    transform: translateY(-120px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes partnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes stretchLine {
  0% {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes slideGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* RESPONSIVE PARA IPHONE 14 PRO MAX (430x932) */
@media (max-width: 932px) {
  .section-wrapper {
    padding: 3rem 1.5rem;
  }

  header {
    padding: 1rem 1.5rem;
  }

  .hero-3d {
    padding: 7rem 1.5rem 3rem;
  }

  .footer-3d {
    padding: 2rem 1.5rem;
  }

  .gallery-track {
    height: 280px;
  }

  .gallery-item {
    flex: 0 0 320px;
  }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .custom-cursor, .cursor-dot { display: none; }

  .nav-links-3d {
    position: fixed;
    top: 72px;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 1px solid rgba(4, 15, 145, 0.1);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.8rem;
    display: none;
    box-shadow: 0 20px 60px rgba(4, 15, 145, 0.15);
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-links-3d.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  .nav-toggle {
    display: block;
  }

  .nav-link {
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(4, 15, 145, 0.1);
  }

  .nav-link:hover {
    background: var(--accent-soft);
  }

  .hero-content-3d {
    text-align: center;
  }

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

  .about-wrapper,
  .careers-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .gallery-track {
    height: 220px;
  }

  .gallery-item {
    flex: 0 0 280px;
  }

  .gallery-rail {
    animation-duration: 60s;
  }

  .services-grid-tendedero {
    flex-direction: column;
    gap: 2rem;
  }

  .clothesline {
    display: none;
  }

  .service-hanger {
    width: 100%;
  }

  .service-box {
    max-width: 100%;
  }

  .partners-track {
    animation-duration: 50s;
  }

  .partner-logo {
    min-width: 120px;
    height: 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title-3d {
    font-size: 2rem;
  }

  .hero-subtitle-3d {
    font-size: 0.95rem;
  }

  .hero-kicker {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-3d {
    text-align: center;
  }

  .section-title-3d {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }

  .gallery-track {
    height: 180px;
  }

  .gallery-item {
    flex: 0 0 220px;
  }

  .item-overlay {
    padding: 1rem;
  }

  .item-title {
    font-size: 0.9rem;
  }

  .item-desc {
    font-size: 0.75rem;
  }

  .partners-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-item {
    width: 100%;
    max-width: 250px;
  }

  .gallery-images{
    padding: 1.2rem;
    gap: 1rem;
    grid-template-columns: 1fr; /* ✅ 1 por fila */
    grid-auto-rows: 240px;      /* ✅ caja consistente */
  }

  .gallery-image{
    padding: 14px; /* ✅ mismo marco */
  }
  
  .gallery-image img{
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 12px;
  }
}

@media (max-width: 430px) {
  .hero-3d {
    padding: 6rem 1rem 2rem;
  }

  .section-wrapper {
    padding: 2rem 1rem;
  }

  .service-box {
    padding: 1.5rem;
  }

  .whatsapp-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .hero-tagline {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .hero-kicker {
    font-size: 1rem;
  }

  .metric-number {
    font-size: 1.5rem;
  }

  .gallery-track {
    height: 160px;
  }

  .gallery-item {
    flex: 0 0 200px;
  }

  .gallery-header {
    margin-bottom: 1rem;
  }

  .gallery-title {
    font-size: 1rem;
  }

  .gallery-subtitle {
    font-size: 0.8rem;
  }
}
/* =========================
  INTRO SPLIT REVEAL
========================= */
.intro-split{
  position:fixed;
  inset:0;
  z-index:10001;
  pointer-events:auto;
}

.intro-panel{
  position:absolute;
  top:0;
  bottom:0;
  width:50%;
  background:#145891;
  transition:transform 1.2s cubic-bezier(.16,.92,.12,1);
}
.intro-panel.left{left:0}
.intro-panel.right{right:0}

.intro-center{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
  transition:opacity .4s ease;
}

.intro-logo{
  display:grid;
  place-items:center;
  gap:18px;
}

.intro-logo img{
  width:180px;
  filter:brightness(0) invert(1);
}

.intro-text{
  font-size:32px;
  font-weight:800;
  letter-spacing:.28em;
  color:#fff;
}

.intro-loader{
  width:260px;
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,.25);
  overflow:hidden;
}
.intro-loader span{
  display:block;
  height:100%;
  width:0%;
  background:#fff;
  transition:width .15s linear;
}

body.intro-open .intro-panel.left{
  transform:translateX(-102%);
}
body.intro-open .intro-panel.right{
  transform:translateX(102%);
}
body.intro-open .intro-center{
  opacity:0;
}

body.intro-done .intro-split{
  opacity:0;
  pointer-events:none;
  transition:opacity .4s ease;
}