/* ============================================================
   MCD GLOBAL — STYLESHEET v3  (FULLY RESPONSIVE)
   Paleta: Navy #1C2F6E | Gold #A8834A
   Breakpoints:
     xs  < 480px   (phones pequeños)
     sm  480-600px (phones grandes)
     md  600-768px (tablet portrait)
     lg  768-1024px(tablet landscape / laptop pequeño)
     xl  1024-1280px (laptop)
     2xl > 1280px  (desktop)
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; }
button { font-family: inherit; }

/* ── Design tokens ── */
:root {
  --navy:        #1C2F6E;
  --navy-dark:   #131F4A;
  --navy-light:  #2A4399;
  --gold:        #A8834A;
  --gold-light:  #C4A06A;
  --gold-dark:   #8B6A36;
  --blanco:      #ffffff;
  --gris-claro:  #eef2f8;
  --gris-suave:  #cbd5e1;
  --texto:       #1e2f3f;
  --texto-soft:  #5a6e7e;
  --navy-transp: rgba(28,47,110,0.08);

  /* Spacing scale */
  --sp-xs: .5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;

  /* Section padding — fluid */
  --section-py: clamp(56px, 8vw, 110px);

  /* Border radius */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent iOS font scaling on rotate */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f0f4fa;
  color: var(--texto);
  overflow-x: hidden;
  /* Fix iOS momentum scroll */
  -webkit-overflow-scrolling: touch;
}
h1, h2, h3, h4, h5,
.btn-primary, .btn-outline, .btn-azul, .btn-white, .btn-submit {
  font-family: 'Montserrat', sans-serif;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ── Section spacing ── */
section { padding: var(--section-py) 0; position: relative; }

/* ── Section header ── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  display: inline-block;
}
.section-header h2 i {
  color: var(--gold);
  margin-right: .4rem;
}
.section-header.light h2 { color: var(--blanco); }
.section-header.light p  { color: rgba(255,255,255,.75); }
.section-underline {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  margin: 10px auto 12px;
}
.section-underline.light { background: rgba(255,255,255,.45); }
.section-header p {
  color: var(--texto-soft);
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  margin-top: 4px;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}

/* ============================================================
   CURSOR (desktop only — hidden on touch)
   ============================================================ */
.cursor-dot, .cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translate(-50%,-50%);
}
.cursor-outline {
  width: 40px; height: 40px;
  border: 2px solid var(--navy);
  background: rgba(28,47,110,.08);
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, border .15s;
}
body:hover .cursor-dot,
body:hover .cursor-outline { opacity: 1; }
/* Hide cursor on touch devices */
@media (hover: none) {
  .cursor-dot, .cursor-outline { display: none !important; }
  body, a, button { cursor: auto !important; }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0;
  background: var(--navy-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity .8s ease, visibility .8s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; padding: 1rem; }
.loader-logo {
  width: clamp(80px, 20vw, 120px);
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  background: white;
  padding: 8px;
  animation: pulseLogo 1.5s ease-in-out infinite alternate;
}
@keyframes pulseLogo {
  from { transform: scale(1); opacity: .85; }
  to   { transform: scale(1.04); opacity: 1; }
}
.loader-bar {
  width: min(200px, 70vw);
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  margin: 0 auto 1rem;
  overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  animation: loadBar 1.8s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }
.loader-text {
  font-family: 'Montserrat', sans-serif;
  color: white;
  letter-spacing: 5px;
  font-weight: 700;
  font-size: clamp(.8rem, 3vw, 1rem);
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
header {
  position: fixed;
  width: 100%; top: 0; left: 0;
  z-index: 1100;
  background: rgba(19,31,74,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  transition: all .3s;
}
header.scrolled {
  background: rgba(19,31,74,.98);
  box-shadow: 0 4px 32px rgba(0,0,0,.28);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10px, 2vw, 16px) clamp(16px, 4vw, 32px);
  position: relative;
  gap: 1rem;
}

.logo-area { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img {
  height: clamp(38px, 6vw, 52px);
  width: auto;
  display: block;
  transition: transform .3s;
}
.nav-logo-img:hover { transform: scale(1.04); }

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(.78rem, 1.2vw, .9rem);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color .3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--gold-light);
  border-radius: 4px;
  transition: width .35s cubic-bezier(.25,.46,.45,.94);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--blanco); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--blanco) !important;
  padding: .5rem 1.3rem !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  transition: transform .3s, box-shadow .3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(168,131,74,.4) !important; }

/* Hamburger */
.menu-icon {
  display: none;
  font-size: 1.5rem;
  color: var(--blanco);
  cursor: pointer;
  padding: .4rem;
  border-radius: 8px;
  transition: background .2s;
  /* Touch-friendly */
  min-width: 44px; min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-icon:hover { background: rgba(255,255,255,.1); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--blanco);
  color: var(--navy);
  padding: clamp(10px,2vw,13px) clamp(22px,4vw,36px);
  border-radius: 100px;
  font-weight: 700;
  font-size: clamp(.85rem,2vw,.95rem);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s cubic-bezier(.2,.9,.4,1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border: none;
  cursor: pointer;
  /* Touch target */
  min-height: 44px;
}
.btn-primary:hover {
  background: #eef2fa;
  transform: translateY(-3px) scale(1.02);
}

.btn-outline {
  background: rgba(0,0,0,.2);
  border: 2px solid rgba(255,255,255,.85);
  color: var(--blanco);
  padding: clamp(8px,2vw,11px) clamp(20px,4vw,30px);
  border-radius: 100px;
  font-weight: 700;
  font-size: clamp(.85rem,2vw,.95rem);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s;
  backdrop-filter: blur(4px);
  min-height: 44px;
}
.btn-outline:hover { background: var(--blanco); color: var(--navy); transform: translateY(-2px); }

.btn-azul {
  background: var(--navy);
  color: var(--blanco);
  padding: 12px 32px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  transition: all .3s;
  box-shadow: 0 6px 20px rgba(28,47,110,.25);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-azul:hover { background: var(--navy-light); transform: translateY(-2px); }

.btn-white {
  background: var(--blanco);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 800;
  font-size: clamp(.9rem,2vw,1rem);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all .3s;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  white-space: nowrap;
  min-height: 44px;
}
.btn-white:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 32px rgba(0,0,0,.25); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(90px, 14vw, 140px);
  padding-bottom: clamp(60px, 10vw, 120px);
  position: relative;
  background: url('hero.jpg') center center / cover no-repeat;
  /* Use dvh for iOS Safari (avoids address bar issue) */
  min-height: 100dvh;
  min-height: 100vh; /* fallback */
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,23,48,.82) 0%,
    rgba(28,47,110,.58) 60%,
    rgba(0,0,0,.38) 100%
  );
  z-index: 1;
}

.hero-grid {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 60px);
  flex-wrap: wrap;
}
.hero-content {
  flex: 1 1 320px;
  min-width: 0;
}

.hero-badge {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--blanco);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: clamp(.72rem, 1.8vw, .82rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,.3);
  letter-spacing: .05em;
}
.hero-badge i { color: var(--gold-light); }

.hero-title {
  font-size: clamp(1.8rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--blanco);
  line-height: 1.18;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero-accent {
  color: var(--gold-light);
  position: relative;
}
.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  opacity: .55;
}

.hero-sub {
  font-size: clamp(.95rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: rgba(255,255,255,.95);
  margin-bottom: .85rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.2);
}
.hero-desc {
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: clamp(.88rem, 2vw, 1rem);
  max-width: 600px;
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero floating card */
.hero-card-wrap {
  flex: 0 1 280px;
  display: flex;
  justify-content: center;
}
.hero-float-card {
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  animation: floatCard 5s ease-in-out infinite;
  width: 100%;
  max-width: 280px;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-card-logo {
  width: clamp(64px, 12vw, 90px);
  border-radius: 14px;
  background: var(--blanco);
  padding: 7px;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.hero-float-card h3 {
  color: var(--blanco);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  margin-bottom: .2rem;
}
.hero-float-card > p {
  color: rgba(255,255,255,.75);
  font-size: clamp(.78rem, 1.8vw, .9rem);
  margin-bottom: 1.1rem;
}
.hero-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
}
.hero-card-chips span {
  background: rgba(255,255,255,.18);
  color: var(--blanco);
  padding: .32rem .8rem;
  border-radius: 100px;
  font-size: clamp(.68rem, 1.5vw, .78rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.hero-card-chips i { color: var(--gold-light); font-size: .65rem; }

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.bounce { animation: bounceDown 1.8s ease-in-out infinite; }
@keyframes bounceDown {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros { background: var(--blanco); }

.nosotros-grid {
  display: flex;
  gap: clamp(2rem, 5vw, 56px);
  align-items: center;
  flex-wrap: wrap;
}
.nosotros-texto {
  flex: 1 1 300px;
  font-size: clamp(.9rem, 2vw, 1.02rem);
  line-height: 1.72;
  color: #2c3e4e;
}

/* Tabs filosofía */
.filosofia-tabs {
  display: flex;
  gap: .4rem;
  margin-top: 1.75rem;
  border-bottom: 2px solid var(--gris-claro);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filosofia-tabs::-webkit-scrollbar { display: none; }

.ftab {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(.78rem, 1.8vw, .88rem);
  color: var(--texto-soft);
  background: none; border: none;
  padding: .65rem 1.1rem;
  cursor: pointer;
  position: relative;
  transition: color .3s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  /* Touch-friendly */
  min-height: 44px;
}
.ftab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s;
}
.ftab.active { color: var(--navy); }
.ftab.active::after { transform: scaleX(1); }
.ftab:hover { color: var(--gold); }

.ftab-content { margin-top: 0; }
.ftab-panel {
  display: none;
  padding: 1.4rem 0 .5rem;
  animation: fadeSlide .35s ease;
}
.ftab-panel.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ftab-panel p {
  color: var(--texto-soft);
  line-height: 1.75;
  font-size: clamp(.88rem, 2vw, .97rem);
}
.quote-icon { color: var(--gold); margin-right: .5rem; }

.valores-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding-top: .85rem;
}
.vchip {
  background: var(--navy-transp);
  border: 1px solid rgba(28,47,110,.18);
  color: var(--navy);
  padding: .42rem 1rem;
  border-radius: 100px;
  font-size: clamp(.75rem, 1.6vw, .82rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: all .3s;
  cursor: default;
}
.vchip i { color: var(--gold); font-size: .72rem; }
.vchip:hover { background: var(--navy); color: var(--blanco); }
.vchip:hover i { color: var(--gold-light); }

/* Nosotros imagen */
.nosotros-visual { flex: 1 1 260px; }
.nosotros-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(28,47,110,.18);
}
.nosotros-img {
  width: 100%;
  height: clamp(220px, 35vw, 380px);
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.nosotros-img-wrap:hover .nosotros-img { transform: scale(1.03); }
.nosotros-badge-float {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--navy);
  color: var(--blanco);
  padding: .6rem 1.1rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(.75rem, 1.8vw, .88rem);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.nosotros-badge-float i { color: var(--gold-light); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios { background: var(--gris-claro); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2.5vw, 28px);
}

.servicio-card {
  background: var(--blanco);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.25rem, 2.5vw, 1.8rem);
  transition: all .4s cubic-bezier(.2,.9,.4,1.1);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.09);
  border: 1px solid rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform .4s ease;
  transform-origin: left;
}
.servicio-card:hover::before { transform: scaleX(1); }
.servicio-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 32px 48px -12px rgba(28,47,110,.18);
}

.servicio-icon-wrap {
  width: clamp(54px,7vw,68px);
  height: clamp(54px,7vw,68px);
  background: var(--navy-transp);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  transition: all .4s;
}
.servicio-card:hover .servicio-icon-wrap {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  box-shadow: 0 8px 24px rgba(28,47,110,.3);
}
.servicio-icon {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  color: var(--navy);
  transition: color .4s, transform .3s;
}
.servicio-card:hover .servicio-icon { color: var(--blanco); transform: scale(1.1); }

.servicio-card h3 {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .65rem;
}
.servicio-card > p {
  color: var(--texto-soft);
  line-height: 1.6;
  font-size: clamp(.82rem, 1.8vw, .92rem);
  margin-bottom: 1rem;
}
.lista-detalle {
  display: flex;
  flex-direction: column;
  gap: .42rem;
}
.lista-detalle li {
  font-size: clamp(.8rem, 1.7vw, .88rem);
  color: #2c4c6e;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.lista-detalle i { color: var(--gold); font-size: .72rem; flex-shrink: 0; }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.por-que { background: var(--blanco); }

.porq-grid {
  display: flex;
  gap: clamp(2rem, 5vw, 56px);
  align-items: flex-start;
  flex-wrap: wrap;
}
.porq-texto {
  flex: 1 1 280px;
  font-size: clamp(.9rem, 2vw, 1.02rem);
  line-height: 1.75;
  color: #2c3e4e;
}
.beneficios-lista {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.beneficio-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all .3s;
  cursor: default;
}
.beneficio-item:hover {
  background: var(--gris-claro);
  border-color: rgba(28,47,110,.12);
  transform: translateX(5px);
}
.ben-icon {
  width: clamp(38px,5vw,46px);
  height: clamp(38px,5vw,46px);
  min-width: clamp(38px,5vw,46px);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  box-shadow: 0 6px 16px rgba(28,47,110,.22);
  transition: transform .3s;
}
.beneficio-item:hover .ben-icon { transform: scale(1.1) rotate(-5deg); }
.beneficio-item strong {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(.88rem, 2vw, .95rem);
  color: var(--navy);
  display: block;
  margin-bottom: .15rem;
}
.beneficio-item p { font-size: clamp(.78rem, 1.6vw, .85rem); color: var(--texto-soft); line-height: 1.5; }

/* ============================================================
   PROCESO
   ============================================================ */
.proceso {
  background: url('hero.jpg') center center / cover no-repeat;
  /* NOTE: background-attachment:fixed breaks on iOS — use scroll */
  background-attachment: scroll;
  position: relative;
  padding: var(--section-py) 0;
}
.proceso-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,23,48,.88) 0%, rgba(28,47,110,.78) 100%);
  z-index: 0;
}
.proceso .container { position: relative; z-index: 1; }

.proceso-steps {
  display: flex;
  align-items: stretch;
  gap: clamp(.75rem, 2vw, 1rem);
  flex-wrap: wrap;
}
.proceso-step {
  flex: 1 1 200px;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.25rem);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all .4s;
}
.proceso-step:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(168,131,74,.4);
  transform: translateY(-8px);
}
.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  color: var(--gold);
  opacity: .3;
  line-height: 1;
  margin-bottom: .4rem;
  transition: opacity .3s;
}
.proceso-step:hover .step-num { opacity: .7; }
.step-icon-wrap {
  width: clamp(52px, 7vw, 64px);
  height: clamp(52px, 7vw, 64px);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .9rem;
  box-shadow: 0 8px 24px rgba(168,131,74,.35);
  transition: transform .3s;
}
.proceso-step:hover .step-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.step-ico { font-size: clamp(1.2rem, 2.5vw, 1.5rem); color: var(--blanco); }
.proceso-step h3 {
  color: var(--blanco);
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  font-weight: 700;
  margin-bottom: .55rem;
}
.proceso-step p {
  color: rgba(255,255,255,.7);
  font-size: clamp(.8rem, 1.7vw, .88rem);
  line-height: 1.6;
}
.proceso-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168,131,74,.5);
  font-size: 1.3rem;
  padding-top: 90px;
  flex-shrink: 0;
}

/* ============================================================
   PROCESO — Animación espectacular paso a paso
   ============================================================ */

/* Keyframes: icono gira + escala con rebote */
@keyframes iconSpinIn {
  0%   { opacity: 0; transform: scale(0) rotate(-200deg); }
  55%  { transform: scale(1.2) rotate(12deg); }
  75%  { transform: scale(.95) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Keyframes: número aparece con pop */
@keyframes numPop {
  0%   { opacity: 0; transform: scale(.2) translateY(-12px); }
  65%  { opacity: .45; transform: scale(1.12) translateY(2px); }
  100% { opacity: .3; transform: scale(1) translateY(0); }
}

/* Keyframes: conector se desliza hacia la derecha */
@keyframes connectorSlide {
  0%   { opacity: 0; transform: translateX(-20px) scale(.6); }
  60%  { transform: translateX(4px) scale(1.1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Keyframes: brillo dorado en el borde del step al aparecer */
@keyframes stepGlow {
  0%   { border-color: rgba(255,255,255,.14); box-shadow: none; }
  40%  { border-color: rgba(168,131,74,.5);
         box-shadow: 0 0 0 4px rgba(168,131,74,.12),
                     inset 0 0 20px rgba(168,131,74,.06); }
  100% { border-color: rgba(255,255,255,.14); box-shadow: none; }
}

/* Sub-animaciones dentro de cada step cuando su parent recibe .in-view */
.proceso-step.in-view .step-num {
  animation: numPop .55s cubic-bezier(.34,1.56,.64,1) both 0s;
}

.proceso-step.in-view .step-icon-wrap {
  animation: iconSpinIn .65s cubic-bezier(.34,1.56,.64,1) both .18s;
}

/* Texto aparece después del icono */
.proceso-step.in-view h3 {
  animation: fadeSlide .45s ease both .38s;
}
.proceso-step.in-view p {
  animation: fadeSlide .5s ease both .52s;
}

/* Brillo de borde al aparecer el step */
.proceso-step.in-view {
  animation: stepGlow 1.1s ease both .3s;
}

/* Conector: deslizamiento lateral cuando recibe .in-view */
.gs-connector {
  /* Estado inicial invisible (sin el sistema scroll-reveal genérico) */
  opacity: 0;
  transform: translateX(-18px) scale(.65);
  transition: none; /* La animación CSS maneja todo */
}
.gs-connector.in-view {
  animation: connectorSlide .5s cubic-bezier(.34,1.56,.64,1) both 0s;
  /* Sobrescribe opacity e transform a través de la animación */
  opacity: 1;
  transform: none;
}

/* ============================================================
   SECTORES
   ============================================================ */
.sectores { background: var(--gris-claro); }

.sectores-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.65rem, 2vw, 16px);
}
.sector-chip {
  background: var(--blanco);
  padding: clamp(10px, 2vw, 14px) clamp(16px, 3.5vw, 28px);
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(.82rem, 1.8vw, .95rem);
  color: var(--navy);
  transition: all .3s ease;
  border: 1px solid rgba(28,47,110,.15);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: default;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  /* Touch-friendly */
  min-height: 44px;
}
.sector-chip i { color: var(--gold); font-size: .8rem; }
.sector-chip:hover {
  background: var(--navy);
  color: var(--blanco);
  border-color: var(--navy);
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 12px 28px rgba(28,47,110,.25);
}
.sector-chip:hover i { color: var(--gold-light); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy);
  padding: clamp(48px,8vw,70px) 0;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(168,131,74,.15) 0%, transparent 65%);
  top: -50%; left: -50%;
  animation: pulseGlow 8s infinite;
}
@keyframes pulseGlow {
  0%   { transform: translate(0,0); }
  50%  { transform: translate(8%,8%); }
  100% { transform: translate(0,0); }
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 2rem);
  flex-wrap: wrap;
}
.cta-text { flex: 1 1 250px; }
.cta-text h3 {
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  color: var(--blanco);
  font-weight: 800;
  margin-bottom: .5rem;
}
.cta-text p { color: rgba(255,255,255,.7); font-size: clamp(.88rem, 2vw, 1rem); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto { background: var(--blanco); }

.contacto-flex {
  display: flex;
  gap: clamp(2rem, 5vw, 56px);
  flex-wrap: wrap;
  align-items: flex-start;
}
.contacto-info { flex: 1 1 260px; }

.contacto-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contacto-ico {
  width: clamp(44px,6vw,52px);
  height: clamp(44px,6vw,52px);
  min-width: clamp(44px,6vw,52px);
  background: var(--navy-transp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--navy);
  transition: all .3s;
}
.contacto-item:hover .contacto-ico {
  background: var(--navy); color: var(--blanco); transform: scale(1.1);
}
.contacto-item strong {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(.88rem, 2vw, .95rem);
  color: var(--navy);
  display: block;
  margin-bottom: .18rem;
}
.contacto-item a {
  color: var(--gold-dark);
  font-size: clamp(.85rem, 1.8vw, .92rem);
  transition: color .3s;
  word-break: break-all;
}
.contacto-item a:hover { color: var(--navy); }
.contacto-item p { font-size: clamp(.83rem, 1.7vw, .9rem); color: var(--texto-soft); line-height: 1.55; }

.contacto-form-wrap {
  flex: 1 1 300px;
  background: var(--gris-claro);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 16px 48px rgba(28,47,110,.1);
  border: 1px solid rgba(28,47,110,.06);
}
.contacto-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(.75rem, 1.6vw, .8rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.form-group label i { color: var(--gold); font-size: .72rem; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(.85rem, 1.9vw, .9rem);
  color: var(--texto);
  background: var(--blanco);
  border: 1.5px solid rgba(28,47,110,.12);
  border-radius: var(--r-sm);
  padding: .82rem 1rem;
  outline: none;
  transition: all .3s;
  width: 100%;
  /* Touch-friendly */
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,47,110,.09);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C2F6E' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.btn-submit {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--blanco);
  padding: 1rem;
  border-radius: 100px;
  border: none;
  font-size: clamp(.9rem, 2vw, 1rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 8px 24px rgba(28,47,110,.22);
  width: 100%;
  min-height: 52px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(28,47,110,.3); }
.btn-submit:disabled { opacity: .7; pointer-events: none; }

.form-success {
  display: none;
  align-items: center;
  gap: .85rem;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  animation: fadeSlide .4s ease;
}
.form-success.visible { display: flex; }
.form-success i { color: #22c55e; font-size: 1.4rem; flex-shrink: 0; }
.form-success p { font-size: clamp(.84rem, 1.8vw, .9rem); color: var(--navy); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy-dark); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(16px, 4vw, 32px) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo {
  height: clamp(38px, 6vw, 50px);
  width: auto;
  background: white;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: .85rem;
  display: block;
}
.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: clamp(.8rem, 1.7vw, .88rem);
  line-height: 1.7;
}

.footer-links-group h4,
.footer-contact-group h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(.74rem, 1.5vw, .82rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer-links-group a {
  color: rgba(255,255,255,.5);
  font-size: clamp(.8rem, 1.7vw, .88rem);
  transition: all .3s;
  display: flex;
  align-items: center;
  gap: .4rem;
  /* Touch-friendly */
  min-height: 32px;
}
.footer-links-group a i { color: var(--gold); font-size: .68rem; transition: transform .3s; }
.footer-links-group a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-links-group a:hover i { transform: translateX(2px); }

.footer-email {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255,255,255,.6);
  font-size: clamp(.8rem, 1.7vw, .88rem);
  transition: color .3s;
  word-break: break-all;
}
.footer-email i { color: var(--gold); flex-shrink: 0; margin-top: .1rem; }
.footer-email:hover { color: var(--gold-light); }

.footer-bottom { padding: 1.5rem clamp(16px, 4vw, 32px); }
.footer-bottom > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: clamp(.75rem, 1.6vw, .82rem); }
.footer-tagline { color: rgba(168,131,74,.5) !important; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  width: clamp(44px,6vw,50px);
  height: clamp(44px,6vw,50px);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(168,131,74,.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all .35s;
  z-index: 999;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(168,131,74,.5); }

/* ============================================================
   HERO — CSS keyframe animations (no JS needed, always work)
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(52px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-52px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
  0%,100%  { transform: translateX(0); }
  20%,60%  { transform: translateX(-8px); }
  40%,80%  { transform: translateX(8px); }
}

/* Hero elements animate automatically via CSS — independent of JS */
.hero-badge       { animation: fadeUp    .65s ease both .15s; }
.hero-title       { animation: fadeUp    .75s ease both .38s; }
.hero-sub         { animation: fadeUp    .65s ease both .62s; }
.hero-desc        { animation: fadeUp    .65s ease both .78s; }
.hero-buttons     { animation: fadeUp    .6s  ease both .95s; }
.hero-float-card  { animation: fadeRight .85s ease both .5s;  }
.hero-scroll-hint { animation: fadeIn    .6s  ease both 1.3s; }

/* ============================================================
   SCROLL REVEAL — clean single-system approach
   Initial invisible state set directly on each selector.
   JS adds .in-view → CSS transition plays.
   No GSAP conflict possible.
   ============================================================ */

/* Default: slide up from below */
.section-header,
.gs-card,
.gs-step,
.proceso-step,
.nosotros-visual,
.nosotros-texto,
.porq-texto,
.beneficios-lista,
.beneficio-item,
.contacto-item,
.contacto-form-wrap,
.contacto-info,
.footer-brand,
.footer-links-group,
.footer-contact-group,
.cta-text,
.btn-white {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1),
              transform .7s cubic-bezier(.4,0,.2,1);
}

/* Slide in from left */
.gs-fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1),
              transform .8s cubic-bezier(.4,0,.2,1);
}

/* Slide in from right */
.gs-fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1),
              transform .8s cubic-bezier(.4,0,.2,1);
}

/* Scale up from small */
.gs-chip {
  opacity: 0;
  transform: scale(.82);
  transition: opacity .5s cubic-bezier(.4,0,.2,1),
              transform .5s cubic-bezier(.34,1.56,.64,1);
}

/* Visible state — added by IntersectionObserver */
.in-view {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   REDUCED MOTION — accesibilidad
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  /* Ensure all elements are visible immediately */
  .section-header, .gs-card, .gs-step, .proceso-step,
  .gs-fade-left, .gs-fade-right, .gs-chip,
  .nosotros-visual, .nosotros-texto, .porq-texto,
  .beneficios-lista, .beneficio-item, .contacto-item,
  .contacto-form-wrap, .contacto-info,
  .footer-brand, .footer-links-group, .footer-contact-group,
  .cta-text, .btn-white,
  .hero-badge, .hero-title, .hero-sub, .hero-desc,
  .hero-buttons, .hero-float-card, .hero-scroll-hint {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-float-card { animation: none !important; }
  .bounce { animation: none !important; }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* ── XL: 1025px – 1280px ── */
@media (max-width: 1280px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ── LG: 901px – 1024px (tablet landscape / laptop pequeño) ── */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
  .nosotros-grid   { flex-direction: column; }
  .nosotros-visual { order: -1; width: 100%; }
  .nosotros-img    { height: clamp(200px, 40vw, 340px); }
  .porq-grid { flex-direction: column; gap: 2rem; }
  .proceso-connector { display: none; }
  .proceso-steps { gap: 1rem; }
  .proceso-step { flex: 1 1 45%; }
}

/* ── MD: 769px – 900px ── */
@media (max-width: 900px) {
  /* Hide desktop nav, show hamburger */
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100dvh; height: 100vh;
    background: rgba(19,31,74,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2rem;
    gap: .25rem;
    border-left: 1px solid rgba(255,255,255,.08);
    transition: right .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    z-index: 1090;
  }
  .nav-links.active { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    font-size: .95rem;
    padding: .75rem .5rem;
    display: block;
    width: 100%;
    border-radius: var(--r-sm);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-cta {
    margin-top: .5rem;
    text-align: center !important;
    display: block !important;
    padding: .75rem 1.5rem !important;
  }
  /* Overlay behind menu */
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1080;
  }
  .menu-overlay.active { display: block; }
  .menu-icon { display: flex; }

  /* Hero */
  .hero-grid { flex-direction: column; text-align: center; }
  .hero-content { order: 1; }
  .hero-card-wrap { order: 2; width: 100%; justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }

  /* CTA */
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text { text-align: center; }

  /* Proceso steps horizontal → 2×2 */
  .proceso-steps { flex-wrap: wrap; }
  .proceso-step { flex: 1 1 45%; }
  .proceso-connector { display: none; }
}

/* ── SM: 601px – 768px (tablet portrait) ── */
@media (max-width: 768px) {
  .contacto-flex { flex-direction: column; }
  .contacto-info { order: 2; }
  .contacto-form-wrap { order: 1; width: 100%; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom > div { flex-direction: column; text-align: center; }

  .nosotros-badge-float {
    position: static;
    margin-top: .85rem;
    display: inline-flex;
    border-radius: var(--r-md);
  }
  .nosotros-img-wrap { border-radius: var(--r-md); }
}

/* ── XS: max 600px (phones) ── */
@media (max-width: 600px) {
  /* Form — single column */
  .form-row { grid-template-columns: 1fr; }

  /* Hero card — simpler on small phones */
  .hero-card-wrap { display: none; }

  /* Keep hero text left-aligned below a certain point for readability */
  .hero-grid { text-align: left; }
  .hero-buttons { justify-content: flex-start; }
  .hero-desc { margin-left: 0; }

  /* Servicios — full width cards */
  .servicios-grid { grid-template-columns: 1fr; }

  /* Proceso — stack vertically */
  .proceso-step { flex: 1 1 100%; }

  /* Footer — single column */
  .footer-inner { grid-template-columns: 1fr; }

  /* Sectors — 2 columns */
  .sectores-wrapper { gap: .55rem; }
  .sector-chip {
    padding: 9px 16px;
    font-size: .8rem;
  }
}

/* ── VERY SMALL: max 400px (iPhone SE, Galaxy A) ── */
@media (max-width: 400px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-outline {
    justify-content: center;
    width: 100%;
  }
  .hero-badge { font-size: .68rem; padding: 7px 14px; }
  .filosofia-tabs { gap: .2rem; }
  .ftab { padding: .6rem .75rem; font-size: .75rem; }
  .valores-chips { gap: .4rem; }
  .vchip { font-size: .72rem; padding: .35rem .8rem; }
  .contacto-form-wrap { padding: 1.25rem 1rem; }
  .btn-submit { font-size: .9rem; }
  .cta-text h3 { font-size: 1.2rem; }
  .footer-inner { padding: 2rem 16px; }
  .scroll-top-btn { bottom: 1rem; right: 1rem; }
}

/* ── iOS Safari specific fixes ── */
@supports (-webkit-touch-callout: none) {
  /* hero height fix for iOS */
  .hero { min-height: -webkit-fill-available; }
  /* disable fixed background on iOS (causes blank) */
  .proceso { background-attachment: scroll; }
}
