/* ══════════════════════════════════════════════════════════════════
   OMESVI — LANDING PAGE CSS
   Design System: Dark Navy + Teal Accent | Inter + Outfit
   ══════════════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ───────────────────────────────────────── */
:root {
  /* Color palette */
  --clr-navy-950:  #020b18;
  --clr-navy-900:  #071428;
  --clr-navy-800:  #0d2045;
  --clr-navy-700:  #132d62;
  --clr-navy-600:  #193a7f;

  --clr-teal-500:  #00b4d8;
  --clr-teal-400:  #0dcaf0;
  --clr-teal-300:  #67e8f9;
  --clr-teal-glow: rgba(0, 180, 216, 0.25);

  --clr-accent:    #00eaff;
  --clr-accent-2:  #7c3aed;   /* purple for badges */

  --clr-white:     #ffffff;
  --clr-off-white: #f0f4f8;
  --clr-light:     #e8edf4;
  --clr-muted:     #8da4be;
  --clr-text:      #0f172a;

  --clr-red:       #ef4444;
  --clr-blue:      #3b82f6;

  /* Typography */
  --font-primary:  'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Spacing */
  --section-py:    6rem;
  --container-max: 1200px;
  --container-px:  1.5rem;

  /* Radii */
  --radius-sm:   0.5rem;
  --radius-md:   1rem;
  --radius-lg:   1.5rem;
  --radius-xl:   2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.18);
  --shadow-teal: 0 8px 40px rgba(0,180,216,0.35);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-mid:  300ms;
  --dur-slow: 500ms;

  /* Navbar height */
  --navbar-h: 72px;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── UTILITIES ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}
.section--dark {
  background: var(--clr-navy-900);
  color: var(--clr-white);
}
.section--light {
  background: var(--clr-off-white);
}
.section--white {
  background: var(--clr-white);
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-teal-500);
  margin-bottom: 0.5rem;
}
.section__label--light {
  color: var(--clr-teal-400);
}

.section__title {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section__title--light  { color: var(--clr-white); }
.section__title--center { text-align: center; }

.section__subtitle {
  font-size: 1rem;
  color: var(--clr-muted);
  max-width: 52ch;
}
.section__subtitle--center {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-3px); }
.btn:active { transform: translateY(0);    }

.btn__icon-c {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2.5;
  transition: transform var(--dur-fast);
  flex-shrink: 0;
}
.btn:hover .btn__icon-c {
  transform: translateX(3px) translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-teal-500), #0077a8);
  color: var(--clr-white);
  padding: 0.65rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0,180,216,0.35);
}
.btn--primary:hover {
  box-shadow: var(--shadow-teal);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  padding: 0.65rem 1.75rem;
  border: 1.5px solid rgba(0,0,0,0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}
.btn--lg {
  padding: 0.85rem 2.5rem;
  font-size: 1.0625rem;
}
.btn--ghost:hover {
  background: rgba(0,0,0,0.05);
  border-color: var(--clr-teal-500);
  color: var(--clr-teal-500);
}

.btn--sm  { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg  { padding: 0.875rem 2rem;  font-size: 1rem;     }
.btn--full { width: 100%; justify-content: center; }

.btn__icon {
  font-size: 0.75em;
  opacity: 0.85;
}

/* ─── BADGE ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.badge--accent {
  background: rgba(0, 180, 216, 0.1);
  color: var(--clr-teal-500);
  border: 1px solid rgba(0, 180, 216, 0.25);
}

/* ─── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background var(--dur-mid), box-shadow var(--dur-mid);
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.navbar__logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.7);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.navbar__link:hover {
  color: var(--clr-teal-500);
  background: rgba(0,180,216,0.06);
}

.navbar__cta { flex-shrink: 0; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--dur-mid), opacity var(--dur-mid);
}
.navbar__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.is-open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__mobile {
  display: none;
  flex-direction: column;
  padding: 1rem var(--container-px) 1.5rem;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.navbar__mobile.is-open { display: flex; }

.navbar__mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(15,23,42,0.75);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color var(--dur-fast);
}
.navbar__mobile-link:hover { color: var(--clr-teal-500); }

.navbar__mobile-cta {
  margin-top: 1rem;
  text-align: center;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  background: var(--clr-white);
  padding-top: var(--navbar-h);
  overflow: hidden;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,180,216,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(0,180,216,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-block: 3rem;
  position: relative;
  z-index: 1;
  transform: translateY(-20px);
}

.hero__content {
  animation: fadeSlideUp 0.8s var(--ease-out) both;
  margin-top: -20px;
}

.hero__heading {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.85;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}
.hero__heading--accent {
  color: var(--clr-teal-500);
  position: relative;
}

.hero__body {
  font-size: 1.0625rem;
  color: #4a5568;
  max-width: 48ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: relative;
  animation: fadeSlideLeft 0.9s var(--ease-out) 0.15s both;
}
.hero__img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 48px;
  transform: rotate(-2deg);
  border: 1.5px solid rgba(0,0,1,0.08); /* Borde visible */
  background: var(--clr-white);
  overflow: hidden;
  filter: drop-shadow(0 24px 48px rgba(0,180,216,0.2));
  transition: transform var(--dur-mid) var(--ease-out);
}
.hero__img:hover {
  transform: rotate(0deg) scale(1.02);
}
.hero__visual-glow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0,180,216,0.3) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 48px;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll-dot {
  width: 4px;
  height: 10px;
  background: var(--clr-teal-500);
  border-radius: var(--radius-full);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ─── SERVICES ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card__image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--clr-navy-900);
}
.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service-card:hover .service-card__img { transform: scale(1.05); }

.service-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-full);
  z-index: 2;
}
.service-card__badge--red  { background: var(--clr-red);  color: #fff; }
.service-card__badge--blue { background: var(--clr-blue); color: #fff; }
.service-card__badge--teal { background: var(--clr-teal-500); color: #fff; }

.service-card__body {
  padding: 1.5rem;
}
.service-card__title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--clr-text);
}
.service-card__desc {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-teal-500);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--dur-fast);
}
.service-card__link:hover { gap: 0.6rem; }

/* ─── DIFERENCIAL ─────────────────────────────────────────────── */
.diferencial__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: center;
}

.diferencial__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.diferencial__feature {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--clr-off-white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--dur-mid);
}
.diferencial__feature:hover { box-shadow: var(--shadow-sm); }

.diferencial__feature--highlight {
  background: var(--clr-navy-800);
  color: var(--clr-white);
  border-color: rgba(0,180,216,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.diferencial__feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.diferencial__feature-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.diferencial__feature-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: inherit;
  opacity: 0.75;
}

.diferencial__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-teal-500);
  margin-bottom: 0.75rem;
}

.diferencial__heading {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--clr-text);
}

.diferencial__body {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.diferencial__stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.diferencial__stat-value {
  display: block;
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--clr-teal-500);
  line-height: 1;
}
.diferencial__stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  font-weight: 600;
}

.diferencial__fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--clr-teal-500), #0077a8);
  border-radius: var(--radius-full);
  color: var(--clr-white);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-teal);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.diferencial__fab:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 32px rgba(0,180,216,0.5);
}

/* ─── TECH SECTION ────────────────────────────────────────────── */
.tech-section { position: relative; }

.tech-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

/* ─── CAROUSEL (shared) ───────────────────────────────────────── */
.carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel__track {
  display: flex;
  gap: 1.25rem;
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: var(--clr-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.carousel-btn:hover {
  background: var(--clr-teal-500);
  border-color: var(--clr-teal-500);
  transform: scale(1.1);
}
.carousel-btn--dark {
  background: rgba(0,0,0,0.07);
  color: var(--clr-text);
  border-color: rgba(0,0,0,0.12);
}
.carousel-btn--dark:hover {
  background: var(--clr-teal-500);
  color: var(--clr-white);
  border-color: var(--clr-teal-500);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast), width var(--dur-mid) var(--ease-out);
}
.carousel__dot--dark {
  background: rgba(0,0,0,0.2);
}
.carousel__dot.is-active {
  width: 24px;
  background: var(--clr-teal-500);
}

/* ─── TECH CARDS ──────────────────────────────────────────────── */
.tech-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-white);
  position: relative;
  cursor: default;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  border: 1px solid rgba(0,0,0,0.08);
}
.tech-card:hover { 
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tech-card__img-wrap {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--clr-navy-800);
}
.tech-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.tech-card:hover .tech-card__img {
  transform: scale(1.1);
}

.tech-card__body {
  padding: 1.5rem;
}
.tech-card__title {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}
.tech-card__desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}


/* ─── INSTALACIONES ───────────────────────────────────────────── */
.instalaciones__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.instalaciones__desc {
  font-size: 0.9rem;
  color: #64748b;
  max-width: none;
  margin-top: 0.5rem;
}

.inst-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--clr-navy-800);
}
.inst-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow);
}
.inst-card:hover .inst-card__img {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.1);
}

/* ─── EXCELENCIA ──────────────────────────────────────────────── */
.excelencia__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.excelencia__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.excelencia__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
.excelencia__img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,180,216,0.12) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.excelencia__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-teal-500);
  margin-bottom: 0.75rem;
}

.excelencia__heading {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 2rem;
  color: var(--clr-text);
}

.excelencia__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.excelencia__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.excelencia__item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(0,180,216,0.05));
  border: 1px solid rgba(0,180,216,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-teal-500);
}

.excelencia__item-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.35rem;
}
.excelencia__item-desc {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.6;
}

/* ─── TESTIMONIOS ─────────────────────────────────────────────── */

.section__label--center {
  text-align: center;
  display: block;
  margin-bottom: 0.5rem;
}

.test-carousel-wrapper {
  margin-top: 3rem;
  position: relative;
}

.test-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonio-card {
  flex: 0 0 calc((100% - 3rem) / 3); /* 3 visible by default */
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid);
}
.testimonio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonio-card--featured {
  background: var(--clr-navy-800);
  border-color: rgba(0,180,216,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.testimonio-card--featured:hover {
  transform: translateY(-6px);
}

.testimonio-card__stars {
  font-size: 1rem;
  color: #f59e0b;
  letter-spacing: 0.1em;
}
.testimonio-card--featured .testimonio-card__stars {
  color: #fbbf24;
}

.testimonio-card__quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--clr-teal-500);
  opacity: 0.25;
  margin-bottom: -2rem;
  margin-top: -0.5rem;
  -webkit-user-select: none;
  user-select: none;
}

.testimonio-card__quote {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}
.testimonio-card--featured .testimonio-card__quote {
  color: rgba(255,255,255,0.85);
}

.testimonio-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.testimonio-card--featured .testimonio-card__author {
  border-top-color: rgba(255,255,255,0.1);
}

.testimonio-card__avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--clr-teal-500);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.testimonio-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.testimonio-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.testimonio-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-text);
}
.testimonio-card--featured .testimonio-card__name {
  color: var(--clr-white);
}
.testimonio-card__specialty {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-teal-400);
}


/* ─── CONTACTO ────────────────────────────────────────────────── */
.contacto {
  position: relative;
  overflow: hidden;
}

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 5rem;
  align-items: start;
}

.contacto__heading {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}
.contacto__body {
  font-size: 0.95rem;
  color: var(--clr-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contacto__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contacto__detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contacto__detail-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contacto__detail-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-teal-400);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.contacto__detail-item p {
  font-size: 0.9rem;
  color: var(--clr-muted);
}
.contacto__detail-item a {
  color: var(--clr-muted);
  transition: color var(--dur-fast);
}
.contacto__detail-item a:hover { color: var(--clr-teal-400); }

.contacto__grid-art {
  width: 200px;
  height: 120px;
  background-image:
    linear-gradient(rgba(0,180,216,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.2) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: var(--radius-md);
  opacity: 0.6;
  margin-top: 1rem;
}

/* ─── FORM ────────────────────────────────────────────────────── */
.contacto__form-wrap {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text);
  background: var(--clr-off-white);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--clr-teal-500);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
  background: var(--clr-white);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}
.form-textarea {
  resize: vertical;
  min-height: 110px;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-success {
  display: none;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  animation: fadeSlideUp 0.4s var(--ease-out);
}
.form-success__icon-box {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #10b981;
  color: var(--clr-white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.form-success__title { 
  display: block; 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: var(--clr-navy-950); 
  margin-bottom: 0.15rem; 
}
.form-success__text { 
  font-size: 0.9rem; 
  color: #4a5568; 
  margin: 0;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--clr-navy-950);
  color: var(--clr-muted);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(1.2);
}
.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 28ch;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.footer__social-link:hover {
  background: var(--clr-teal-500);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.footer__col-title {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__link {
  font-size: 0.875rem;
  color: var(--clr-muted);
  transition: color var(--dur-fast);
}
.footer__link:hover { color: var(--clr-teal-400); }

.footer__newsletter-desc {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer__newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer__newsletter-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: rgba(255,255,255,0.05);
  border: none;
  padding: 0.75rem 1rem;
  color: var(--clr-white);
  outline: none;
}
.footer__newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer__newsletter-btn {
  background: var(--clr-teal-500);
  color: var(--clr-white);
  padding: 0.75rem 1.125rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: background var(--dur-fast);
}
.footer__newsletter-btn:hover { background: var(--clr-teal-400); }

.footer__bottom {
  padding-block: 1.5rem;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__copy-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer__powered {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.footer__powered a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.footer__powered a:hover {
  color: var(--clr-white);
}
.footer__made {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}


/* ─── FLOATING CHAT ───────────────────────────────────────────── */
.floating-chat {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  animation: fadeSlideUp 0.8s var(--ease-out) 1s both;
}
.floating-chat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
  animation: chatPulse 2s infinite ease-out;
}
.floating-chat:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(37,211,102,0.6);
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ─── SIDE NAV DOTS ───────────────────────────────────────────── */
.side-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid);
}
.side-nav.is-visible {
  opacity: 1;
  pointer-events: all;
}

.side-nav__dot {
  width: 8px;
  height: 8px;
  background: #64748b;
  border-radius: var(--radius-full);
  display: block;
  transition: height var(--dur-mid) var(--ease-out),
              background var(--dur-mid),
              width var(--dur-mid) var(--ease-out);
  border: 1px solid rgba(255,255,255,0.2);
}
.side-nav__dot--active,
.side-nav__dot:hover {
  background: var(--clr-teal-500);
  height: 24px;
}
.side-nav__dot:hover { height: 14px; }
.side-nav__dot--active { height: 24px; }


/* ─── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70%       { transform: translateY(16px); opacity: 0; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 4.5rem; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-block: 4rem;
  }
  .hero__body { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 520px; margin-inline: auto; }

  .diferencial__inner { grid-template-columns: 1fr; gap: 3rem; }
  .excelencia__inner  { grid-template-columns: 1fr; gap: 3rem; }
  .contacto__inner    { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner      { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .testimonios-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  .hero__inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    transform: none;
  }
  .hero__content {
    display: contents;
  }
  .hero__content .badge { order: 1; margin-inline: auto; margin-bottom: 0.5rem; }
  .hero__heading { order: 2; margin-bottom: 0.5rem; line-height: 1.1; }
  .hero__visual  { order: 3; width: 100%; max-width: 480px; margin-inline: auto; }
  .hero__body     { order: 4; margin-inline: auto; margin-bottom: 1rem; }
  .hero__actions  { order: 5; justify-content: center; width: 100%; margin-bottom: 1.25rem; }
  
  .hero { min-height: 85svh !important; padding-bottom: 20px !important; }
  .hero__scroll-indicator { bottom: 2rem !important; }
  
  .hero__img { transform: rotate(0deg); } /* Sin rotación en móvil para no perder espacio */

  .navbar__nav  { display: none; }
  .navbar__cta  { display: none; }
  .navbar__hamburger { display: flex; }

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

  .tech-card { flex: 0 0 calc(100% - 1rem); }
  .inst-card { flex: 0 0 calc(100% - 1rem); }

  .diferencial__features { grid-template-columns: 1fr; }
  .diferencial__feature--highlight { grid-column: 1; }

  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .testimonio-card { flex: 0 0 100%; }

  .side-nav { display: flex; right: 0.75rem; }
  .side-nav__dot { width: 10px; height: 10px; } /* Un poco más pequeños en móvil */

  .contacto__form-wrap { padding: 1.5rem; }

  .tech-section__header  { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .instalaciones__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero__heading { font-size: 2.25rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; }
  .diferencial__stats { gap: 1.5rem; }
}

/* ─── LANGUAGE SWITCHER ───────────────────────────────────────── */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1;
}

.is-scrolled .lang-switcher {
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.7);
}

.lang-switcher:hover {
  background: rgba(0,180,216,0.05);
  border-color: var(--clr-teal-500);
  color: var(--clr-teal-500);
}

.is-scrolled .lang-switcher:hover {
  background: rgba(0,180,216,0.08);
  border-color: var(--clr-teal-500);
  color: var(--clr-teal-500);
}

.lang-switcher__icon {
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
}

