/* ================================================================
   DevCloudPeru – Figma Theme Enhancement
   Basado en el prototipo Figma: paleta navy/dorado/verde
   ================================================================ */

/* ── Override palette tokens to match Figma ── */
:root {
  /* Figma Primary Colors */
  --figma-navy: #0D1B2A;
  --figma-navy-mid: #102A44;
  --figma-navy-light: #1C3D5A;
  --figma-gold: #D4A017;
  --figma-gold-light: #E8B82A;
  --figma-green: #E63946;
  --figma-green-light: #FF5D6C;
  --figma-white: #FAFAFA;
  --figma-gray-50: #F5F7FA;
  --figma-gray-100: #EAEEF4;
  --figma-gray-200: #D1D9E6;
  --figma-gray-500: #64748B;
  --figma-gray-700: #334155;
  --figma-tan: #F5ECD7;

  /* Override existing tokens */
  --navy-deep: var(--figma-navy);
  --navy-mid: var(--figma-navy-mid);
  --bg-dark: var(--figma-gray-50);
  --bg-card: #FFFFFF;
  --bg-section: var(--figma-gray-100);
  --sierra-gold: var(--figma-gold);
  --sierra-gold-lt: var(--figma-gold-light);
  --selva-green: var(--figma-green);
  --selva-lime: var(--figma-green-light);
  --text-primary: var(--figma-navy);
  --text-secondary: var(--figma-gray-700);
  --text-muted: var(--figma-gray-500);
  --border: rgba(0, 0, 0, 0.08);
  --section-py: 7rem;
}

/* ================================================================
   GLOBAL TYPOGRAPHY UPGRADES
   ================================================================ */
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--figma-white);
  color: var(--figma-navy);
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   NAVBAR – Clean white with shadow on scroll
   ================================================================ */
#navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.nav-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--figma-navy);
}

.nav-title .accent {
  color: var(--figma-gold);
}

.nav-link {
  font-weight: 500;
  color: var(--figma-gray-700) !important;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--figma-navy) !important;
  background: rgba(0, 0, 0, 0.04);
}

/* CTA button in green (matching Figma) */
.nav-cta {
  background: var(--figma-green) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.4rem !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: -0.01em !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.36) !important;
  opacity: 1 !important;
}

/* ================================================================
   HERO – Dark navy gradient with serif headline
   ================================================================ */
.hero {
  background: linear-gradient(180deg, #F7FAFF 0%, #EDF4FF 55%, #E8F1FF 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 7.5rem 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 70% 20%, rgba(212, 160, 23, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(22, 163, 74, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: saturate(0.9);
}

.hero-overlay {
  background: linear-gradient(to bottom,
    rgba(247, 250, 255, 0.62) 0%,
    rgba(238, 245, 255, 0.78) 45%,
    rgba(232, 241, 255, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--figma-gold-light);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: #f8fafc;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-shadow: 0 12px 34px rgba(13, 27, 42, 0.34);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #D4A017, #F0C842);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(241, 245, 249, 0.92);
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 500;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 6px 24px rgba(13, 27, 42, 0.28);
}

/* Franjas .inca-band: definición global en styles.css (tokens Figma vía :root) */

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #D4A017, #F0C842);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
}

/* Hero CTAs */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--figma-green) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  padding: 1rem 2.5rem !important;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.34);
  transition: transform 0.22s, box-shadow 0.22s !important;
}

.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.42) !important;
  opacity: 1 !important;
}

.btn-outline {
  background: #FFFFFF !important;
  color: var(--figma-navy) !important;
  border: 1.5px solid rgba(13, 27, 42, 0.18) !important;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(13, 27, 42, 0.06) !important;
  border-color: var(--figma-gold) !important;
  color: var(--figma-gold-light) !important;
  transform: translateY(-2px) !important;
}

/* ================================================================
   NOSOTROS – Tan background with cards
   ================================================================ */
.nosotros {
  background: var(--figma-gray-50) !important;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* About main card – the big tan container from Figma */
.about-main-card {
  background: var(--figma-tan);
  border-radius: 28px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.about-main-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(212, 160, 23, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.about-main-card .section-tag {
  background: rgba(212, 160, 23, 0.15);
  border-color: rgba(212, 160, 23, 0.3);
  color: #8B6914;
}

.about-main-card .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--figma-navy);
  margin-bottom: 1rem;
}

.lead-text {
  font-size: 1.05rem;
  color: var(--figma-navy);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.about-text p {
  color: var(--figma-gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Small value cards from Figma */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-mini-card {
  background: #FFFFFF;
  border: 1px solid var(--figma-gray-200);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.mini-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mini-card-icon.gold {
  background: rgba(212, 160, 23, 0.12);
}

.mini-card-icon.green {
  background: rgba(22, 163, 74, 0.1);
}

.mini-card-icon.blue {
  background: rgba(21, 94, 138, 0.1);
}

.about-mini-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--figma-navy);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.about-mini-card p {
  font-size: 0.82rem;
  color: var(--figma-gray-500);
  line-height: 1.4;
  margin: 0;
}

.about-mini-card .mini-card-text {
  flex: 1;
  min-width: 0;
}

/* Company info row */
.company-info-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.company-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 27, 42, 0.06);
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--figma-navy);
}

.company-badge span {
  font-size: 1rem;
}

/* ================================================================
   SERVICIOS – White background, big region cards with images
   ================================================================ */
.servicios {
  background: #FFFFFF !important;
}

/* Region cards – the big image cards from Figma */
.region-service-cards {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.region-service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.region-service-card:nth-child(even) {
  direction: rtl;
}

.region-service-card:nth-child(even) > * {
  direction: ltr;
}

.region-service-card.costa-card-bg {
  background: linear-gradient(135deg, #EBF5FB 0%, #D6EAF8 100%);
  border: 1px solid rgba(21, 94, 138, 0.15);
}

.region-service-card.sierra-card-bg {
  background: linear-gradient(135deg, #FFF8EC 0%, #FDEBD0 100%);
  border: 1px solid rgba(212, 160, 23, 0.2);
}

.region-service-card.selva-card-bg {
  background: linear-gradient(135deg, #EAF6EE 0%, #D5F0DC 100%);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.rsc-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
  position: relative;
}

.rsc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.region-service-card:hover .rsc-image-wrap img {
  transform: scale(1.04);
}

.rsc-content {
  padding: 1rem 0;
}

.rsc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.rsc-tag.costa-tag {
  background: rgba(21, 94, 138, 0.12);
  color: #155E8A;
  border: 1px solid rgba(21, 94, 138, 0.2);
}

.rsc-tag.sierra-tag {
  background: rgba(212, 160, 23, 0.12);
  color: #8B6914;
  border: 1px solid rgba(212, 160, 23, 0.25);
}

.rsc-tag.selva-tag {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.rsc-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--figma-navy);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.rsc-desc {
  font-size: 0.95rem;
  color: var(--figma-gray-700);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.rsc-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.rsc-services-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--figma-gray-700);
}

.rsc-services-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.costa-card-bg .rsc-services-list li::before { background: #155E8A; }
.sierra-card-bg .rsc-services-list li::before { background: #B8860B; }
.selva-card-bg .rsc-services-list li::before { background: #16A34A; }

.rsc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.7rem 0;
  border-bottom: 2px solid currentColor;
  transition: gap 0.2s, opacity 0.2s;
}

.rsc-cta:hover {
  gap: 0.9rem;
  opacity: 0.8;
}

.costa-card-bg .rsc-cta { color: #155E8A; }
.sierra-card-bg .rsc-cta { color: #B8860B; }
.selva-card-bg .rsc-cta { color: #16A34A; }

/* ================================================================
   SERVICE GRID CARDS (original 3-col grid) – upgraded
   ================================================================ */
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--figma-gray-200);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* ================================================================
   VENTAJAS – Light gray background, icon cards
   ================================================================ */
.ventajas-section {
  background: var(--figma-gray-50);
  padding: var(--section-py) 0;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .ventajas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ventajas-grid {
    grid-template-columns: 1fr;
  }
}

.ventaja-card {
  background: #FFFFFF;
  border: 1px solid var(--figma-gray-200);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ventaja-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: var(--figma-gold);
}

.ventaja-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.12), rgba(212, 160, 23, 0.06));
  border: 1px solid rgba(212, 160, 23, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

.ventaja-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--figma-navy);
  margin-bottom: 0.5rem;
}

.ventaja-card p {
  font-size: 0.88rem;
  color: var(--figma-gray-500);
  line-height: 1.6;
}

/* ================================================================
   CONTACT SECTION – Split layout from Figma
   ================================================================ */
.contacto {
  background: #FFFFFF;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-side {
  background: var(--figma-gray-50);
  border: 1px solid var(--figma-gray-200);
  border-radius: 28px;
  padding: 3rem;
}

.contact-form-side h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--figma-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.contact-form-side p {
  color: var(--figma-gray-500);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--figma-navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: #FFFFFF;
  border: 1.5px solid var(--figma-gray-200);
  border-radius: 12px;
  color: var(--figma-navy);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--figma-gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--figma-green);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

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

.btn-submit {
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--figma-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.34);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(230, 57, 70, 0.42);
}

/* Contact Info Side */
.contact-info-side {
  padding: 1rem 0;
}

.contact-info-side .section-tag {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.25);
  color: #166534;
}

.contact-info-side h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--figma-navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-info-side > p {
  color: var(--figma-gray-500);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--figma-gray-100);
  border: 1px solid var(--figma-gray-200);
}

.contact-info-icon.green-icon {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.2);
}

.contact-info-icon.navy-icon {
  background: rgba(13, 27, 42, 0.06);
  border-color: rgba(13, 27, 42, 0.1);
}

.contact-info-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--figma-navy);
  margin-bottom: 0.2rem;
}

.contact-info-text span {
  font-size: 0.9rem;
  color: var(--figma-gray-700);
}

/* Social Icons */
.contact-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--figma-gray-100);
  border: 1px solid var(--figma-gray-200);
  color: var(--figma-navy);
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--figma-navy);
  color: #fff;
  border-color: var(--figma-navy);
  transform: translateY(-3px);
}

/* ================================================================
   FOOTER – Dark navy background matching Figma
   ================================================================ */
footer.footer {
  background: var(--figma-navy) !important;
  color: rgba(248, 250, 252, 0.7);
}

footer.footer .footer-brand {
  max-width: 280px;
}

footer.footer .footer-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--figma-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

footer.footer .footer-logo-text .accent {
  color: var(--figma-gold);
}

footer.footer .footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--figma-gray-500);
}

footer.footer h5 {
  color: var(--figma-navy);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

footer.footer a {
  color: rgba(248, 250, 252, 0.58);
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer.footer a:hover {
  color: var(--figma-gold-light);
}

footer.footer .footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

footer.footer .footer-bottom p {
  color: rgba(248, 250, 252, 0.4);
  font-size: 0.85rem;
}

/* Footer RUC/legal info */
.footer-legal {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.4) !important;
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* Override footer RUC badge for dark background visibility */
footer.footer .footer-ruc {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  margin-top: 1rem;
}

footer.footer .footer-ruc-label {
  color: var(--figma-gold-light) !important;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

footer.footer .footer-ruc-value {
  color: rgba(248, 250, 252, 0.9) !important;
  font-size: 0.82rem;
  font-weight: 600;
}

footer.footer .footer-ruc-sep {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* Form select styling */
.form-group select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: #FFFFFF;
  border: 1.5px solid var(--figma-gray-200);
  border-radius: 12px;
  color: var(--figma-navy);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  cursor: pointer;
  appearance: auto;
}

.form-group select:focus {
  border-color: var(--figma-green);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

/* gradient-text for light backgrounds (contact section) */
.contact-form-side .gradient-text {
  background: linear-gradient(135deg, var(--figma-navy), var(--figma-navy-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   REGIONES SECTION – Tabs with panel content
   ================================================================ */
.regiones {
  background: var(--figma-gray-50) !important;
}

.region-tab {
  background: #FFFFFF;
  border: 1.5px solid var(--figma-gray-200);
  color: var(--figma-gray-500);
  font-weight: 600;
  transition: all 0.2s;
  padding: 0.65rem 1.6rem;
}

.region-tab:hover {
  border-color: var(--figma-navy);
  color: var(--figma-navy);
}

.region-tab.active[data-region="costa"] {
  background: rgba(21, 94, 138, 0.08);
  border-color: #155E8A;
  color: #155E8A;
}

/* ================================================================
   SECTION HEADINGS CENTER VARIANT
   ================================================================ */
.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header-center .section-tag {
  display: inline-block;
}

.section-header-center .section-title {
  margin-bottom: 1rem;
}

.section-header-center .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ================================================================
   CTA STRIP – "Ready to Transform?" full-width section
   ================================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--figma-navy) 0%, #0F3460 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--figma-navy);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  position: relative;
}

.cta-strip p {
  color: rgba(248, 250, 252, 0.62);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-strip .btn-primary {
  position: relative;
  font-size: 1.05rem;
  padding: 1.1rem 3rem !important;
}

/* ================================================================
   PRELOADER – Match dark theme
   ================================================================ */
#preloader {
  background: var(--figma-navy);
}

.preloader-logo {
  filter: drop-shadow(0 0 20px rgba(212, 160, 23, 0.3));
}

.preloader-text {
  color: var(--figma-gray-500);
}

/* ================================================================
   WHATSAPP FLOAT – Green matching Figma
   ================================================================ */
.whatsapp-float {
  background: var(--figma-green) !important;
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.36) !important;
}

.whatsapp-float:hover {
  background: #c92f3d !important;
}

/* ================================================================
   CREDIBILITY STRIP – Hero Tech Badges
   ================================================================ */
.credibility-strip {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cred-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(226, 232, 240, 0.92);
  white-space: nowrap;
}

.cred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--figma-navy);
  transition: all 0.2s ease;
  cursor: default;
}

.cred-badge:hover {
  background: rgba(212, 160, 23, 0.15);
  border-color: rgba(212, 160, 23, 0.4);
  color: var(--figma-gold);
}

/* ================================================================
   METODOLOGÍA – Cómo Trabajamos
   ================================================================ */
.metodologia-section {
  padding: 5rem 0;
  background: var(--figma-navy);
  position: relative;
}

/* Text visibility on dark background */
.metodologia-section .section-tag {
  color: var(--figma-gold-light, #D4A017);
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.3);
}

.metodologia-section .section-title {
  color: var(--figma-navy);
}

.metodologia-section .section-title strong {
  color: var(--figma-gold, #D4A017);
}

.metodologia-section .section-desc {
  color: rgba(248, 250, 252, 0.70);
}

.metodologia-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.metodo-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.metodo-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--figma-gold), var(--figma-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metodo-step:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.25);
  background: rgba(212, 160, 23, 0.05);
}

.metodo-step:hover::before {
  opacity: 1;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(212, 160, 23, 0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.metodo-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--figma-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.metodo-step p {
  font-size: 0.875rem;
  color: var(--figma-gray-700);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.step-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.step-details li {
  font-size: 0.8rem;
  color: var(--figma-gray-500);
  padding: 0.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.step-details li:first-child {
  border-top: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .region-service-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .region-service-card:nth-child(even) {
    direction: ltr;
  }

  .rsc-image-wrap {
    height: 240px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .metodologia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

  .hero-stats {
    gap: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

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

  .credibility-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip {
    padding: 3.5rem 0;
  }

  .cta-strip h2 {
    font-size: clamp(1.55rem, 6vw, 2.35rem);
  }

  .cta-strip p {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }

  .cta-strip .btn-primary {
    padding: 1rem 1.75rem !important;
    font-size: 0.98rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.6rem, 7.5vw, 2.35rem);
  }

  .region-service-card {
    padding: 2rem 1.5rem;
  }

  .contact-form-side {
    padding: 2rem 1.5rem;
  }

  .about-main-card {
    padding: 2rem 1.5rem;
  }
}

/* iOS Safari: evita zoom automático al enfocar campos (mín. 16px) */
@media (max-width: 992px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .lang-select {
    font-size: 16px;
  }
}


/* ================================================================
   PREMIUM ICONOGRAPHY + CONTRAST FIXES
   ================================================================ */
.icon-sprite { display: none; }
.icon-svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.service-icon,
.pain-icon,
.caso-icon,
.step-icon,
.pq-icon,
.region-emoji,
.region-card-icon,
.contact-info-icon,
.mini-card-icon,
.company-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--figma-navy);
}

.service-icon .icon-svg,
.pain-icon .icon-svg,
.caso-icon .icon-svg,
.step-icon .icon-svg,
.pq-icon .icon-svg,
.region-emoji .icon-svg,
.region-card-icon .icon-svg {
  width: 1.3rem;
  height: 1.3rem;
}

.step-icon,
.pq-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.16);
}

.hero-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.34);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.hero-subtitle,
.stat-label,
.cred-label {
  color: rgba(241, 245, 249, 0.92);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0d1b2a !important;
  border-color: rgba(13, 27, 42, 0.24) !important;
}

.btn-outline:hover {
  background: #ffffff !important;
  color: #0d1b2a !important;
}

.cred-badge {
  font-weight: 600;
  color: #0f172a;
}

.metodologia-section .step-icon,
.metodologia-section .pq-icon {
  color: #f8fafc;
}

.contact-info-side > p,
.contact-form-side p,
.section-desc {
  color: #475569;
}

.footer-hecho {
  color: #f87171;
}

/* Tipografía uniforme premium en todo el portal */
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.stat-number,
.rs-num,
.team-name,
.rsc-title,
.cta-strip h2,
.contact-form-side h2,
.contact-info-side h2 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ================================================================
   EXECUTIVE COMPACT LIGHT OVERRIDES
   ================================================================ */
:root {
  --section-py: 4.8rem;
}

body {
  background: #f6f9ff;
}

.hero {
  min-height: 76vh;
  padding: 6.5rem 2rem 3.2rem;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(230, 239, 252, 0.44) 0%,
    rgba(223, 235, 251, 0.66) 45%,
    rgba(216, 230, 249, 0.84) 100%
  );
}

.hero-title {
  color: #0f2743;
  text-shadow: none;
}

.hero-subtitle {
  color: #334155;
  text-shadow: none;
}

.hero-stats {
  margin-bottom: 1.6rem;
}

.stat-label,
.cred-label {
  color: #334155;
}

.about-main-card,
.service-card,
.porque-item,
.contact-form-side,
.contact-card {
  box-shadow: 0 8px 24px rgba(15, 39, 67, 0.06);
}

.services-grid {
  gap: 1rem;
}

.service-card {
  padding: 1.35rem;
  border-radius: 14px;
}

.service-desc {
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.service-features {
  gap: 0.25rem;
  margin-bottom: 0.95rem;
}

.service-features li {
  font-size: 0.8rem;
  line-height: 1.3;
}

.section-desc {
  margin-bottom: 2rem;
}

footer.footer {
  background: #eef4ff !important;
  border-top: 1px solid rgba(15, 39, 67, 0.12);
}

footer.footer h5,
footer.footer .footer-name,
footer.footer a,
footer.footer .footer-ruc-value,
footer.footer .footer-bottom p {
  color: #0f2743 !important;
}

footer.footer .footer-tagline,
footer.footer .footer-ruc-label {
  color: #1f4d86 !important;
}

footer.footer .footer-ruc {
  background: #ffffff !important;
  border: 1px solid rgba(15, 39, 67, 0.14) !important;
}

footer.footer .footer-bottom {
  background: #e6eefb;
  border-top: 1px solid rgba(15, 39, 67, 0.10);
}

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

/* ================================================================
   EXECUTIVE ONE-PAGE: SERVICES + PACKAGES
   ================================================================ */
.services-grid-exec {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.services-grid-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card-exec {
  min-height: 100%;
}

.service-card-exec .service-title {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.service-card-exec .service-desc {
  font-size: 0.84rem;
  line-height: 1.45;
}

.service-card-exec .service-features li {
  font-size: 0.78rem;
}

.packages-block {
  margin-top: 1.6rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 39, 67, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.packages-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2743;
  margin-bottom: 0.35rem;
}

.packages-desc {
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.service-modes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.service-mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 39, 67, 0.16);
  background: #f6f9ff;
  color: #294361;
  font-size: 0.78rem;
  font-weight: 600;
}

.service-mode-chip-featured {
  border-color: rgba(230, 57, 70, 0.36);
  background: #fff1f3;
  color: #9f2030;
}

.package-card {
  border: 1px solid rgba(15, 39, 67, 0.14);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.9rem;
}

.package-card-featured {
  border-color: rgba(230, 57, 70, 0.36);
  background: #fff7f8;
}

.package-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.6rem;
}

.package-name {
  font-weight: 700;
  color: #0f2743;
}

.package-focus {
  font-size: 0.82rem;
  color: #334155;
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.package-features li {
  font-size: 0.8rem;
  color: #334155;
  padding-left: 0.9rem;
  position: relative;
}

.package-features li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1f4d86;
  position: absolute;
  left: 0;
  top: 0.45rem;
}

.packages-cta-wrap {
  margin-top: 0.95rem;
  display: flex;
  justify-content: flex-end;
}

/* Keep differentiators section light and compact */
.porque-section {
  background: #f5f9ff;
  padding-top: calc(var(--section-py) - 0.6rem);
  padding-bottom: calc(var(--section-py) - 0.6rem);
}

.porque-section .inca-band {
  display: none;
}

.porque-grid {
  gap: 0.9rem;
}

.porque-item {
  padding: 1.25rem 1rem;
}

.porque-item h4 {
  font-size: 0.95rem;
}

.porque-item p {
  font-size: 0.83rem;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .services-grid-exec,
  .services-grid-duo,
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .packages-cta-wrap {
    justify-content: stretch;
  }

  .packages-cta-wrap .btn {
    width: 100%;
  }
}

/* ================================================================
   FOOTER REFINADO Y ALINEADO
   ================================================================ */
footer.footer .inca-band.top {
  display: none;
}

footer.footer {
  padding-top: 1.2rem !important;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem !important;
  display: grid !important;
  grid-template-columns: minmax(360px, 1.1fr) minmax(420px, 1fr);
  gap: 1.2rem !important;
  align-items: start;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo name"
    "logo tag"
    "ruc ruc"
    "legal legal";
  gap: 0.25rem 0.7rem !important;
  max-width: none !important;
}

.footer-logo { grid-area: logo; width: 40px !important; height: 40px !important; }
.footer-name { grid-area: name; margin: 0; font-size: 1rem !important; line-height: 1.15; }
.footer-tagline { grid-area: tag; margin: 0; font-size: 0.76rem !important; line-height: 1.3; }
.footer-ruc { grid-area: ruc; margin-top: 0.35rem !important; padding: 0.38rem 0.6rem !important; width: fit-content; }
.footer-legal { grid-area: legal; margin-top: 0.25rem; font-size: 0.7rem !important; line-height: 1.35; max-width: 620px; }

.footer-ruc-label { font-size: 0.6rem !important; }
.footer-ruc-value { font-size: 0.72rem !important; }

.footer-links {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.6rem !important;
  align-content: start;
  width: 100%;
}

.footer-col h5 {
  margin: 0 0 0.45rem 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.2;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.28rem !important;
}

.footer-col a {
  font-size: 0.77rem !important;
  line-height: 1.25;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem !important;
}

.footer-bottom p,
.footer-hecho {
  font-size: 0.7rem !important;
  line-height: 1.2;
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 0.9rem !important;
    padding: 0 1.05rem 0.85rem !important;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem !important;
  }

  .footer-bottom {
    padding: 0.55rem 1.05rem !important;
  }
}

@media (max-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.6rem !important;
  }

  .footer-bottom {
    gap: 0.25rem !important;
  }
}

/* ================================================================
   EXECUTIVE POLISH: LEGIBILIDAD + ANIMACION SOBRIA + TIPOGRAFIA UNIFORME
   ================================================================ */
:root {
  --font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tipografia uniforme para todo el portal */
html, body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, label, input, select, textarea, button,
.section-title, .section-desc, .hero-title, .hero-subtitle,
.service-title, .service-desc, .package-name, .package-focus,
.footer-name, .footer-tagline, .footer-legal, .footer-col a, .footer-col h5,
.contact-info-text strong, .contact-info-text span, .stat-number, .stat-label {
  font-family: var(--font-ui) !important;
}

/* Hero con mejor lectura y fondo menos invasivo */
.hero {
  min-height: 72vh;
  padding-top: 6.2rem;
  padding-bottom: 2.9rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.24;
  filter: saturate(0.7) contrast(1.08) brightness(1.07) blur(0.4px);
  transform: scale(1.035);
}

.hero-bg img {
  opacity: 0.09;
  filter: blur(2.4px) saturate(0.85);
  transform: scale(1.03);
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(247, 251, 255, 0.92) 0%,
    rgba(238, 246, 255, 0.94) 45%,
    rgba(231, 241, 255, 0.97) 100%
  ) !important;
}

.hero-content {
  max-width: 980px;
}

.hero-badge {
  color: #234264 !important;
  border-color: rgba(35, 66, 100, 0.18) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.hero-title {
  font-size: clamp(2.3rem, 6.8vw, 5.1rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: #102a46 !important;
  text-shadow: none !important;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  color: #3b516a !important;
  font-size: clamp(0.96rem, 1.8vw, 1.08rem);
  max-width: 760px;
  margin-top: 0.2rem;
  text-shadow: none !important;
}

/* Animaciones profesionales y discretas */
.hero-title .gradient-text {
  animation: none !important;
}

.service-card:hover .service-icon-wrap,
.about-logo:hover,
.btn:active::after,
.float-1,
.float-2 {
  animation: none !important;
}

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal-left,
.reveal-right {
  transform: translateY(14px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mejor contraste global en textos secundarios */
.section-desc,
.packages-desc,
.service-desc,
.contact-form-side p,
.contact-info-side > p,
.footer-legal {
  color: #475569 !important;
}

@media (max-width: 768px) {
  .hero {
    min-height: 66vh;
    padding-top: 5.6rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.5vw, 3.1rem);
    line-height: 1.12;
  }

  .hero-video {
    opacity: 0.16;
  }
}

/* ================================================================
   QA FINAL: ESCALA TIPOGRAFICA + ESPACIADO + CONSISTENCIA
   ================================================================ */
:root {
  --qa-container: 1180px;
  --qa-space-section: clamp(3rem, 4vw, 4.6rem);
  --qa-space-block: clamp(1rem, 1.8vw, 1.5rem);
  --qa-title-size: clamp(1.85rem, 4.1vw, 3rem);
  --qa-body-size: clamp(0.95rem, 1.1vw, 1.02rem);
}

.container {
  max-width: var(--qa-container) !important;
  padding-left: clamp(0.95rem, 2.3vw, 1.9rem) !important;
  padding-right: clamp(0.95rem, 2.3vw, 1.9rem) !important;
}

.section {
  padding-top: var(--qa-space-section) !important;
  padding-bottom: var(--qa-space-section) !important;
}

.section-title {
  font-size: var(--qa-title-size) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.75rem !important;
}

.section-desc {
  font-size: var(--qa-body-size) !important;
  line-height: 1.62 !important;
  max-width: 760px;
  margin-bottom: var(--qa-space-block) !important;
}

p, li, a, label, input, select, textarea, button {
  font-size: var(--qa-body-size);
  line-height: 1.5;
}

.btn,
.btn-primary,
.btn-outline,
.btn-submit {
  min-height: 44px;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  letter-spacing: 0 !important;
}

/* Tarjetas y bloques con ritmo visual uniforme */
.service-card,
.package-card,
.porque-item,
.contact-form-side,
.contact-card,
.about-main-card,
.about-mini-card {
  border-radius: 14px !important;
}

.service-card,
.package-card,
.porque-item {
  padding: clamp(0.95rem, 1.6vw, 1.2rem) !important;
}

/* Imagenes: consistentes y elegantes */
img {
  image-rendering: auto;
}

.hero-img {
  object-position: center top;
}

.rsc-image-wrap img,
.team-photo,
.about-logo,
.nav-logo,
.footer-logo {
  filter: none;
}

/* Alineacion de secciones principales */
#nosotros .about-grid,
#contacto .contact-wrapper {
  align-items: start !important;
}

/* Separaciones de componentes en hero para lectura clara */
.hero-content > * + * {
  margin-top: 0.55rem;
}

.hero-actions {
  margin-top: 0.9rem;
}

.hero-stats {
  margin-top: 0.7rem;
}

@media (max-width: 1024px) {
  :root {
    --qa-space-section: clamp(2.5rem, 5.8vw, 3.6rem);
    --qa-title-size: clamp(1.58rem, 5.5vw, 2.25rem);
  }

  .services-grid-duo {
    gap: 0.8rem;
  }
}

@media (max-width: 640px) {
  :root {
    --qa-body-size: 0.94rem;
  }

  .section-title {
    margin-bottom: 0.58rem !important;
  }

  .section-desc {
    margin-bottom: 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* ================================================================
   HERO BLUE CORPORATE PHOTO-REEL (VIDEO-LIKE BACKGROUND)
   ================================================================ */
.hero-video {
  display: none !important;
}

.hero-photo-reel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-reel-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(0.95) contrast(1.08) brightness(0.72);
  animation: hero-reel-fade 42s infinite ease-in-out;
}

.hero-reel-frame.frame-1 { animation-delay: 0s; }
.hero-reel-frame.frame-2 { animation-delay: 6s; }
.hero-reel-frame.frame-3 { animation-delay: 12s; }
.hero-reel-frame.frame-4 { animation-delay: 18s; }
.hero-reel-frame.frame-5 { animation-delay: 24s; }
.hero-reel-frame.frame-6 { animation-delay: 30s; }
.hero-reel-frame.frame-7 { animation-delay: 36s; }

@keyframes hero-reel-fade {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 0.86; }
  24% { opacity: 0.86; transform: scale(1.02); }
  30% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}

.hero-bg img.hero-img {
  opacity: 0 !important;
}

.hero-overlay {
  background:
    linear-gradient(110deg, rgba(8, 31, 60, 0.72) 0%, rgba(11, 49, 90, 0.62) 42%, rgba(13, 67, 114, 0.54) 100%),
    linear-gradient(to bottom, rgba(7, 25, 48, 0.66) 0%, rgba(8, 34, 65, 0.70) 55%, rgba(7, 23, 46, 0.78) 100%) !important;
}

.hero-badge {
  color: #e8f2ff !important;
  border-color: rgba(232, 242, 255, 0.34) !important;
  background: rgba(9, 33, 63, 0.45) !important;
}

.hero-title {
  color: #f4f8ff !important;
}

.hero-subtitle {
  color: rgba(235, 244, 255, 0.95) !important;
}

.hero-stats .stat-label,
.cred-label {
  color: rgba(223, 236, 255, 0.9) !important;
}

@media (max-width: 768px) {
  .hero-reel-frame {
    filter: saturate(0.9) contrast(1.04) brightness(0.66);
  }
}

/* ================================================================
   AJUSTE FINAL: DEGRADADO MENU + HERO COMPACTO
   ================================================================ */
#navbar {
  background: linear-gradient(
    to bottom,
    rgba(238, 245, 255, 0.96) 0%,
    rgba(228, 238, 252, 0.84) 100%
  ) !important;
  box-shadow: 0 1px 0 rgba(16, 42, 70, 0.08), 0 4px 18px rgba(16, 42, 70, 0.06) !important;
}

#navbar.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(238, 245, 255, 0.98) 0%,
    rgba(228, 238, 252, 0.92) 100%
  ) !important;
}

.hero {
  min-height: 62vh !important;
  padding-top: 5.1rem !important;
  padding-bottom: 1.8rem !important;
}

.hero-overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(14, 54, 96, 0.52) 0%,
      rgba(11, 45, 82, 0.62) 48%,
      rgba(8, 32, 63, 0.74) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(34, 95, 154, 0.20) 0%,
      rgba(24, 77, 130, 0.24) 55%,
      rgba(16, 58, 105, 0.28) 100%
    ) !important;
}

.hero-content {
  max-width: 860px !important;
}

.hero-badge {
  margin-bottom: 1rem !important;
}

.hero-title {
  font-size: clamp(2rem, 5.8vw, 4rem) !important;
  line-height: 1.06 !important;
  margin-bottom: 0.65rem !important;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
  margin-bottom: 1rem !important;
}

.hero-stats {
  margin-top: 0.25rem !important;
  margin-bottom: 0.95rem !important;
  gap: 1.2rem !important;
}

.hero-actions {
  margin-top: 0.3rem !important;
}

@media (max-width: 768px) {
  .hero {
    min-height: 56vh !important;
    padding-top: 4.8rem !important;
    padding-bottom: 1.4rem !important;
  }

  .hero-title {
    font-size: clamp(1.65rem, 8vw, 2.55rem) !important;
    margin-bottom: 0.55rem !important;
  }

  .hero-subtitle {
    margin-bottom: 0.85rem !important;
  }

  .hero-stats {
    margin-bottom: 0.75rem !important;
  }
}

/* ================================================================
   ABOVE THE FOLD: HERO COMPLETO EN LAPTOP
   ================================================================ */
@media (min-width: 1024px) {
  .hero {
    min-height: calc(100vh - 72px) !important;
    max-height: calc(100vh - 72px) !important;
    padding-top: 4.8rem !important;
    padding-bottom: 1.1rem !important;
    display: flex;
    align-items: center;
  }

  .hero-content {
    max-width: 860px !important;
  }

  .hero-badge {
    margin-bottom: 0.7rem !important;
  }

  .hero-title {
    font-size: clamp(2rem, 4.8vw, 3.45rem) !important;
    line-height: 1.03 !important;
    margin-bottom: 0.45rem !important;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 1.08vw, 0.98rem) !important;
    line-height: 1.45 !important;
    max-width: 690px !important;
    margin-bottom: 0.7rem !important;
  }

  .hero-stats {
    margin-top: 0.1rem !important;
    margin-bottom: 0.55rem !important;
    gap: 0.95rem !important;
  }

  .stat-number {
    font-size: 1.42rem !important;
  }

  .stat-label {
    font-size: 0.69rem !important;
  }

  .stat-divider {
    height: 24px !important;
  }

  .hero-actions {
    margin-top: 0.1rem !important;
    gap: 0.6rem !important;
  }

  .hero-actions .btn {
    min-height: 40px !important;
    padding: 0.72rem 1.25rem !important;
    font-size: 0.84rem !important;
  }

  .credibility-strip {
    margin-top: 0.75rem !important;
  }

  .cred-badge {
    padding: 0.25rem 0.58rem !important;
    font-size: 0.72rem !important;
  }
}

/* Variante ultra compacta para laptops 1366x768 y alturas similares */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero {
    min-height: calc(100vh - 68px) !important;
    max-height: calc(100vh - 68px) !important;
    padding-top: 4.35rem !important;
    padding-bottom: 0.7rem !important;
  }

  .hero-content {
    max-width: 820px !important;
  }

  .hero-badge {
    margin-bottom: 0.45rem !important;
    font-size: 0.72rem !important;
    padding: 0.3rem 0.78rem !important;
  }

  .hero-title {
    font-size: clamp(1.76rem, 4.25vw, 2.95rem) !important;
    line-height: 1.01 !important;
    margin-bottom: 0.3rem !important;
  }

  .hero-subtitle {
    font-size: clamp(0.82rem, 0.95vw, 0.9rem) !important;
    line-height: 1.35 !important;
    max-width: 640px !important;
    margin-bottom: 0.45rem !important;
  }

  .hero-stats {
    gap: 0.72rem !important;
    margin-bottom: 0.42rem !important;
  }

  .stat-number {
    font-size: 1.2rem !important;
  }

  .stat-label {
    font-size: 0.64rem !important;
  }

  .hero-actions .btn {
    min-height: 36px !important;
    padding: 0.58rem 1.02rem !important;
    font-size: 0.78rem !important;
  }

  .credibility-strip {
    margin-top: 0.5rem !important;
    gap: 0.5rem !important;
  }

  .cred-label {
    font-size: 0.66rem !important;
  }

  .cred-badge {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.66rem !important;
  }
}
