/* =====================
   VARIABLES & RESET
   ===================== */
:root {
  --black:     #06070C;
  --teal-dark: #0A3941;
  --navy:      #222A4F;
  --mint:      #AFD7BE;
  --mint-light:#CEEDD9;
  --white:     #FFFFFF;
  --gray-100:  #F5F7F5;
  --gray-400:  #9AA49A;
  --gray-600:  #5A6460;

  --font-sans:  'Nunito Sans', sans-serif;
  --font-serif: 'Zilla Slab', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow:    0 4px 24px rgba(6,7,12,0.12);
  --shadow-lg: 0 8px 48px rgba(6,7,12,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--mint-light);
  color: var(--black);
  border-color: var(--mint-light);
}
.btn--primary:hover {
  background: var(--mint);
  border-color: var(--mint);
}

.contacto__form .btn--primary {
  background: linear-gradient(135deg, var(--mint-light) 0%, var(--mint) 100%);
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(175,215,190,0.3);
  text-transform: none;
}

.contacto__form .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(175,215,190,0.4);
}

.contacto__form .btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  border-color: var(--mint-light);
  color: var(--mint-light);
}

.btn--outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn--outline:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--full { width: 100%; }

/* =====================
   SECTION SHARED
   ===================== */
section { padding: 96px 0; }
.section-light { background: var(--white); }

/* =====================
   PALETA POR SECCIÓN — degradé horizontal sutil
   ===================== */

/* Blanco puro — Pain, Proceso, Diferencial, Calculadora */
.sec-white {
  background: #ffffff;
}

/* Novedades: #CEEDD9 → #AFD7BE izq→der */
.sec-mint-light {
  background: linear-gradient(to right, #CEEDD9 0%, #AFD7BE 100%);
}
.sec-mint-light .section-eyebrow { color: #0A3941; }
.sec-mint-light .section-title   { color: #06070C; }
.sec-mint-light .section-sub     { color: #1e3028; }

/* Soluciones: #AFD7BE → #222A4F izq→der */
.sec-mint {
  background: linear-gradient(to right, #AFD7BE 0%, #AFD7BE 45%, #222A4F 100%);
}
/* Izquierda clara: eyebrow oscuro para contraste; título/sub blanco funcionan en todo el gradiente */
.sec-mint .section-eyebrow { color: #0A3941; }
.sec-mint .section-title   { color: #fff; }
.sec-mint .section-sub     { color: rgba(255,255,255,0.9); }
.sec-mint .servicios__tab {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}
.sec-mint .servicios__tab:hover {
  border-color: #fff;
  color: #fff;
}
.sec-mint .servicios__tab.active {
  background: #fff;
  border-color: #fff;
  color: #06070C;
}
.sec-mint .service-card {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}
.sec-mint .service-card h3 { color: #fff; }
.sec-mint .service-card p  { color: rgba(255,255,255,0.75); }

/* Planes: #222A4F → #0A3941 izq→der */
.sec-navy {
  background: linear-gradient(to right, #222A4F 0%, #0A3941 100%);
}

/* Quiénes somos: #0A3941 → #06070C izq→der */
.sec-teal {
  background: linear-gradient(to right, #0A3941 0%, #06070C 100%);
}

/* Fechas clave: #06070C leve variación */
.sec-black {
  background: linear-gradient(to right, #06070C 0%, #0d1117 100%);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 56px;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.nav.scrolled {
  background: rgba(6,7,12,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(175,215,190,0.08);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 40px;
  width: 100%;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.nav__brand {
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__pill {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: rgba(12, 14, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 5px 5px 5px 8px;
}

.nav__links {
  display: flex;
  gap: 2px;
}
.nav__links a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover {
  color: var(--mint-light);
  background: rgba(175,215,190,0.1);
}
.nav__links a.active {
  color: var(--mint-light);
  background: rgba(175,215,190,0.12);
}

.nav__cta { margin-left: 6px; padding: 10px 22px; font-size: 14px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.2s;
}

.nav__mobile {
  display: none;
  background: var(--black);
  padding: 16px 24px 24px;
}
.nav__mobile ul { display: flex; flex-direction: column; gap: 12px; }
.nav__mobile a {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 600;
}
.nav__mobile.open { display: block; }

/* =====================
   HERO - FULL SCREEN
   ===================== */
.hero {
  background: var(--black);
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--nav-h, 72px) 0 clamp(24px, 4vh, 48px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__parallax {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
}
.parallax-layer {
position: absolute;
/* Oversized so al moverla no se ven bordes vacíos */
top: -20%; left: -20%;
width: 140%; height: 140%;
will-change: transform;
}
/* Vignette: oscurece el centro donde está el texto, deja visible la malla en bordes */
.hero__parallax::after {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(6,7,12,0.82) 0%, transparent 75%);
pointer-events: none;
z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(175,215,190,0.12);
  color: var(--mint-light);
  border: 1px solid rgba(206,237,217,0.25);
  border-radius: 50px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero__title em {
  display: block;
  font-size: 0.8em;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--mint-light);
  font-weight: 400;
}

.hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__trust span {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

/* =====================
   PAIN
   ===================== */
.pain { padding: 80px 0; }

.pain__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
  text-align: center;
}

.pain__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.pain__card {
  background: var(--white);
  border: 1px solid #E8EDE8;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
}

.pain__card p {
  font-size: 15px;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.5;
}

.pain__cta-text {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-dark);
}

/* =====================
   SERVICIOS
   ===================== */
.servicios { }

.servicios .section-eyebrow { color: #0A3941; }
.servicios .section-title { color: var(--white); }
.servicios .section-sub { color: rgba(255,255,255,0.6); }

.servicios__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.servicios__tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.servicios__tab:hover {
  border-color: var(--mint-light);
  color: var(--mint-light);
}
.servicios__tab.active {
  background: var(--mint-light);
  border-color: var(--mint-light);
  color: var(--black);
}

.servicios__panel { display: none; }
.servicios__panel.active { display: block; }

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: rgba(206,237,217,0.3);
  transform: translateY(-4px);
}

.service-card__icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* =====================
   PROCESO
   ===================== */
.proceso__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}

.proceso__step {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid #E0E8E0;
}
.proceso__step:last-child { border-bottom: none; }

.proceso__num {
  font-size: 48px;
  font-weight: 900;
  color: var(--mint);
  line-height: 1;
  flex-shrink: 0;
  width: 72px;
}

.proceso__content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.proceso__content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* =====================
   PLANES
   ===================== */
.planes { }
.planes .section-eyebrow { color: var(--mint-light); }
.planes .section-title { color: var(--white); }
.planes .section-sub { color: rgba(255,255,255,0.6); }

.planes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.plan-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.plan-card--featured {
  background: var(--black);
  border-color: var(--mint-light);
  border-width: 2px;
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mint-light);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 4px;
}

.plan-card h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
}

.plan-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-card__features li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.plan-card .btn--outline {
  color: var(--mint-light);
  border-color: rgba(206,237,217,0.35);
}
.plan-card .btn--outline:hover {
  background: var(--mint-light);
  color: var(--black);
  border-color: var(--mint-light);
}

.planes__note {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
}
.planes__note a {
  color: var(--mint-light);
  font-weight: 700;
  text-decoration: underline;
}

/* =====================
   DIFERENCIAL
   ===================== */
.diferencial__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.diferencial__text .section-title { margin-bottom: 16px; font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.diferencial__text > p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

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

.pillar__icon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.pillar__icon svg { width: 100%; height: 100%; }

.pillar strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.pillar p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.diferencial__card {
  background: var(--teal-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
}

.diferencial__card blockquote {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 24px;
}

.diferencial__card cite {
  font-size: 13px;
  color: var(--mint);
  font-weight: 700;
  font-style: normal;
}

/* =====================
   CONTACTO
   ===================== */
.contacto { }

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contacto .section-eyebrow { color: var(--mint); }

.contacto__text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.contacto__text > p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contacto__data {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto__link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--mint-light);
  transition: color 0.2s;
}
.contacto__link:hover { color: var(--white); }

/* Form */
.contacto__form {
  background: linear-gradient(135deg, var(--navy) 0%, #1A2E44 100%);
  border-radius: var(--radius-lg);
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid rgba(207,237,217,0.15);
  box-shadow: 0 12px 64px rgba(6,7,12,0.35);
}

.plan-selected-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(175, 215, 190, 0.15);
  border: 1px solid rgba(175, 215, 190, 0.4);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #AFD7BE;
  animation: fadeInUp 0.3s ease;
}

.plan-selected-banner button {
  background: none;
  border: none;
  color: rgba(175, 215, 190, 0.6);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}
.plan-selected-banner button:hover {
  color: #AFD7BE;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(207,237,217,0.9);
  text-transform: none;
  letter-spacing: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid rgba(207,237,217,0.25);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: rgba(207,237,217,0.22);
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mint);
  background: rgba(207,237,217,0.28);
  box-shadow: 0 0 0 3px rgba(175,215,190,0.1);
}

.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  font-size: 13px;
  color: rgba(207,237,217,0.7);
  margin-top: 8px;
}

.form-success {
  background: rgba(175,215,190,0.2);
  color: var(--mint-light);
  border: 1px solid var(--mint);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--black);
  padding: 72px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  max-width: 240px;
  line-height: 1.6;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

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

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--mint-light); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__contact a,
.footer__contact p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer__contact a:hover { color: var(--mint-light); }

.footer__bottom {
  padding: 20px 24px;
  text-align: center;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* =====================
   EQUIPO — TEAM CARDS
   ===================== */

.equipo {
  position: relative;
  overflow: hidden;
}

/* Mancha de color suave en esquina superior derecha */
.equipo::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(175,215,190,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.equipo .section-eyebrow { color: var(--mint); }
.equipo .section-title   { color: var(--white); }
.equipo .section-sub     { color: rgba(255,255,255,0.6); }
.equipo__grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.team-card {
  position: relative;
  width: 320px;
  aspect-ratio: 3/4;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  outline: none;
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.team-card:hover .team-card__img,
.team-card.open .team-card__img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* Green tint on hover */
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(175,215,190,0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.team-card:hover::before { opacity: 1; }
.team-card.open::before { opacity: 0; }

/* "+" button top right */
.team-card__plus {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--black);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease, background 0.2s;
  pointer-events: none;
}
.team-card.open .team-card__plus {
  transform: rotate(45deg);
}

/* Name bar at bottom */
.team-card__name-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 20px;
  background: linear-gradient(to top, rgba(6,7,12,0.6) 0%, transparent 100%);
  z-index: 2;
  transition: opacity 0.3s ease;
}
.team-card.open .team-card__name-bar { opacity: 0; pointer-events: none; }

.team-card__name {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 4px;
}

.team-card__role-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

.team-card__matricula-bar {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Overlay — detail panel */
.team-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,7,12,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.team-card.open .team-card__overlay {
  opacity: 1;
  pointer-events: auto;
}

.team-card__overlay h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.team-card__badge {
  display: inline-block;
  background: var(--mint);
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.team-card__overlay p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 20px;
}

.team-card__matricula {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.team-card__close {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s;
}
.team-card__close:hover { color: var(--white); }

/* =====================
   WHATSAPP MODAL
   ===================== */
.wa-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wa-modal.open { display: flex; }

.wa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,7,12,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wa-modal__box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.wa-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
  padding: 4px;
}

.wa-modal__close:hover { color: var(--black); }

.wa-modal__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
  text-align: center;
  margin-bottom: 24px;
}

.wa-modal__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 16px;
  border: 1.5px solid #E8EDE8;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.wa-card:hover {
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.15);
}

.wa-card__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.wa-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
}

.wa-card__role {
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
  margin-top: -4px;
}

.wa-card__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* =====================
   PROFILING MODAL (pre-WhatsApp questionnaire)
   ===================== */
.profiling-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 350;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.profiling-modal.open { display: flex; }

.profiling-modal__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,42,79,0.9) 0%, rgba(6,7,12,0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.profiling-modal__box {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--navy) 0%, #1A2E44 100%);
  border-radius: var(--radius-lg);
  padding: 48px 42px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 12px 64px rgba(6,7,12,0.35);
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(207,237,217,0.15);
}

.profiling-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(207,237,217,0.15);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--white);
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profiling-modal__close:hover {
  background: rgba(207,237,217,0.25);
  transform: scale(1.05);
}

.profiling-modal__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.profiling-modal__subtitle {
  font-size: 15px;
  color: rgba(207,237,217,0.85);
  margin-bottom: 36px;
  font-weight: 400;
}

/* Profiling Form */
.profiling-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profiling-form__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profiling-form__section label {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-transform: none;
}

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

.form-option {
  background: rgba(207,237,217,0.08);
  border: 1.5px solid rgba(207,237,217,0.25);
  color: rgba(255,255,255,0.9);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.form-option:hover {
  background: rgba(207,237,217,0.15);
  border-color: rgba(207,237,217,0.5);
  transform: translateX(4px);
}

.form-option.selected {
  background: linear-gradient(135deg, var(--mint) 0%, #9FD1B0 100%);
  border-color: var(--white);
  color: var(--black);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(175,215,190,0.3);
}

.form-option:active {
  transform: scale(0.98);
}

.profiling-form > button {
  margin-top: 12px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--mint) 0%, #9FD1B0 100%);
  color: var(--black);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(175,215,190,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profiling-form > button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(175,215,190,0.4);
}

.profiling-form > button:active {
  transform: translateY(0);
}

/* =====================
   SOCIAL CARD (FOOTER) — from Uiverse.io by ahmed150up, adapted for 2 links
   ===================== */
.card {
  display: flex;
  height: 60px;
  width: 126px;
  margin-top: 20px;
}

.card svg {
  position: absolute;
  display: flex;
  width: 55%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.25s;
  z-index: 2;
  cursor: pointer;
}

.card .social-link1,
.card .social-link4 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  color: whitesmoke;
  font-size: 24px;
  text-decoration: none;
  transition: 0.25s;
  border-radius: 50px;
}

.card .social-link1:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  animation: bounce_613 0.4s linear;
}

.card .social-link4:hover {
  background-color: #25D366;
  animation: bounce_613 0.4s linear;
}

@keyframes bounce_613 {
  40% { transform: scale(1.4); }
  60% { transform: scale(0.8); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* =====================
   WHATSAPP FAB
   ===================== */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 99;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .diferencial__inner,
  .contacto__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }

  .nav__inner { padding: 0 20px; }
  .nav__pill { display: none; }
  .nav__brand { font-size: 15px; }

  .nav__hamburger { display: flex; }

  .hero {
    min-height: 100svh;
    padding: calc(var(--nav-h, 72px) + 32px) 0 48px;
    overflow: visible;
    align-items: flex-start;
  }

  .hero__title { font-size: clamp(32px, 10vw, 52px); }

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

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

  .team-card { width: 100%; max-width: 360px; }

  .wa-modal__cards { grid-template-columns: 1fr; }

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

  .contacto__form { padding: 28px 20px; }

  .proceso__step { gap: 20px; }
  .proceso__num { font-size: 36px; width: 52px; }
}

/* =====================
   NEWS / NOVEDADES
   ===================== */
.news-carousel-wrap {
  position: relative;
}

.news-carousel {
  overflow: hidden;
  padding: 8px 0 12px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.news-carousel.dragging {
  cursor: grabbing;
}

.news-carousel__track {
  display: flex;
  will-change: transform;
}

.news-carousel__track-loop {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.news-card {
  position: relative;
  min-width: 280px;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  scroll-snap-align: start;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid rgba(175,215,190,0.25);
  background: #0A3941;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(6,7,12,0.2);
  border-color: rgba(175,215,190,0.45);
}

.news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(175,215,190,0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}
.news-card:hover::before { opacity: 1; }

.news-card__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-card__pattern {
  position: absolute;
  inset: 0;
  background-image: url('patron2.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
}

.news-card__plus {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--black);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.news-card__name-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgba(4,25,29,0.98) 0%, rgba(10,57,65,0.8) 40%, rgba(10,57,65,0.2) 75%, transparent 100%);
}

/* Tag — arriba izquierda, ancho automático */
.news-card__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  background: rgba(206,237,217,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(206,237,217,0.3);
  color: var(--mint-light);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* Título — bloque central, un poco abajo del tag */
.news-card__title {
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
  text-align: left;
  color: var(--white);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 72px 18px 0;
  flex-shrink: 0;
}

/* KPIs / tags secundarios — al fondo, full width, sin border-radius lateral */
.news-card__kpis {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.news-card__kpis li {
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-light);
  background: rgba(206,237,217,0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(206,237,217,0.12);
  padding: 7px 18px;
  border-radius: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.kpi-arrow {
  width: 10px;
  height: 8px;
  flex-shrink: 0;
}
.kpi-arrow--up polygon  { stroke: #4ade80; }
.kpi-arrow--down polygon { stroke: #f87171; }

/* Fecha — abajo a la izquierda, completamente transparente */
.news-card__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
  padding: 8px 18px 16px;
  text-align: left;
  flex-shrink: 0;
  background: transparent;
}

.news-card__excerpt {
  display: none;
}

.news-source-link {
  font-size: 13px;
  color: var(--mint-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
  z-index: 4;
}

.news-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: center; z-index: 9999; }
.news-modal.open { display: flex; }
.news-modal__backdrop { position: absolute; inset: 0; background: rgba(6,7,12,0.6); }
.news-modal__box { position: relative; width: min(980px, 96%); max-height: 90vh; overflow: auto; background: var(--white); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-lg); z-index: 2; }
.news-modal__close { position: absolute; right: 12px; top: 8px; background: transparent; border: none; font-size: 20px; cursor: pointer; }
.news-modal__meta { color: var(--gray-600); font-size: 13px; margin-bottom: 12px; }
.news-modal__highlight {
  background: linear-gradient(120deg, rgba(206,237,217,0.6), rgba(175,215,190,0.45));
  border-left: 4px solid var(--teal-dark);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--navy);
}
.news-modal__body { color: var(--black); line-height: 1.7; }

.news-modal__body h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--navy);
}

.news-modal__block {
  margin: 0 0 16px;
}

.news-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.news-kpi-grid div {
  border: 1px solid rgba(34,42,79,0.16);
  border-radius: 10px;
  padding: 10px 12px;
  background: #f4f8f6;
}

.news-kpi-grid span {
  display: block;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.news-kpi-grid strong {
  font-size: 16px;
  color: var(--navy);
}

.fx-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(34,42,79,0.15);
  border-radius: 10px;
  overflow: hidden;
}

.fx-table th,
.fx-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(34,42,79,0.1);
  text-align: left;
  font-size: 13px;
}

.fx-table thead th {
  background: #eef5f2;
  color: var(--navy);
  font-weight: 800;
}

.fx-table tbody tr:last-child td {
  border-bottom: none;
}

.fx-delta.up { color: #0f9d58; font-weight: 700; }
.fx-delta.down { color: #d93025; font-weight: 700; }
.fx-delta.flat { color: var(--gray-600); font-weight: 700; }

.fx-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.fx-charts > div {
  border: 1px solid rgba(34,42,79,0.16);
  border-radius: 10px;
  padding: 10px;
  background: #f8fbfa;
}

.fx-charts p {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.fx-sparkline {
  width: 100%;
  height: 56px;
  display: block;
}

.fx-sparkline-empty {
  display: block;
  font-size: 12px;
  color: var(--gray-600);
}

.news-modal__list {
  margin: 0;
  padding-left: 18px;
}

.news-modal__list li {
  margin-bottom: 6px;
}

.news-brief-list {
  display: grid;
  gap: 10px;
}

.news-brief-item {
  border: 1px solid rgba(34,42,79,0.14);
  border-radius: 10px;
  padding: 12px;
  background: #f9fcfa;
}

.news-brief-item__index {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.news-brief-item h4 {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--navy);
}

.news-brief-item p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.news-brief-item a {
  font-size: 13px;
  color: var(--teal-dark);
  text-decoration: underline;
}

.news-modal__cta {
  margin-top: 8px;
}

.fx-bars {
  display: grid;
  gap: 8px;
}

.fx-bars__row {
  display: grid;
  grid-template-columns: 90px 1fr 84px;
  gap: 10px;
  align-items: center;
}

.fx-bars__row span {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.fx-bars__track {
  height: 10px;
  background: rgba(34,42,79,0.12);
  border-radius: 999px;
  overflow: hidden;
}

.fx-bars__track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mint) 0%, #7dc9a3 100%);
}

.fx-bars__track i.up {
  background: linear-gradient(90deg, #a7e3c3 0%, #41b883 100%);
}

.fx-bars__track i.down {
  background: linear-gradient(90deg, #f5b0b0 0%, #e06262 100%);
}

.fx-bars__row strong {
  font-size: 12px;
  color: var(--gray-600);
  text-align: right;
}

.fx-bars-empty {
  font-size: 13px;
  color: var(--gray-600);
}

@media (max-width: 640px) {
  .news-card { min-width: 84vw; max-width: 84vw; aspect-ratio: 1 / 1.1; }
  .news-modal__box { padding: 18px; }
  .fx-bars__row {
    grid-template-columns: 72px 1fr 70px;
    gap: 8px;
  }
}

/* =====================
   CALCULADORA DE MONOTRIBUTO
   ===================== */
.calculadora { }

.calc-card {
  background: var(--white);
  border: 1px solid #E0E8E0;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  box-shadow: var(--shadow);
  max-width: 100%;
  margin-bottom: 24px;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

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

.calc-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: none;
  letter-spacing: 0;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #C5D5C5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.calc-input-wrap:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(175,215,190,0.15);
}

.calc-prefix {
  background: var(--gray-100);
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-600);
  border-right: 1.5px solid #C5D5C5;
}

.calc-input-wrap input {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  border: none;
  outline: none;
  padding: 13px 16px;
  flex: 1;
  background: var(--white);
}

.calc-toggle {
  display: flex;
  gap: 8px;
}

.calc-toggle__btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid #C5D5C5;
  background: transparent;
  color: var(--gray-600);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.calc-toggle__btn:hover {
  border-color: var(--mint);
  color: var(--teal-dark);
}
.calc-toggle__btn.active {
  background: var(--mint-light);
  border-color: var(--mint-light);
  color: var(--black);
}

.calc-submit { align-self: end; white-space: nowrap; }

.calc-result {
  margin-top: 24px;
  border-top: 1.5px solid #E0E8E0;
  padding-top: 24px;
  animation: fadeInUp 0.35s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.calc-result__cat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.calc-result__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.calc-result__cat-name {
  font-size: 48px;
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1;
}

.calc-result__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.calc-result__item {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-result__item-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.calc-result__item-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
}

.calc-result__aviso {
  font-size: 14px;
  color: var(--teal-dark);
  font-weight: 600;
  background: rgba(175,215,190,0.2);
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin-bottom: 24px;
}

.calc-result__cta { font-size: 14px; }

.calc-error {
  margin-top: 16px;
  background: #fff3f3;
  border: 1px solid #f5c2c2;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
  animation: fadeInUp 0.25s ease;
}

.calc-error__cta {
  margin-top: 10px;
  font-size: 13px;
}

.calc-disclaimer {
  font-size: 13px;
  color: var(--gray-400);
  max-width: 780px;
  line-height: 1.6;
}

.calc-vigencia {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 6px;
}
.calc-vigencia a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
}
.calc-vigencia a:hover {
  color: var(--mint);
}

.calc-period-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.calc-period-toggle {
  display: flex;
  gap: 4px;
  background: #f0f4f0;
  border-radius: 50px;
  padding: 3px;
}

.calc-period-btn {
  padding: 5px 14px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.calc-period-btn.active {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.calc-period-btn:hover:not(.active) {
  color: var(--teal-dark);
}

@media (max-width: 900px) {
  .calc-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .calc-submit { grid-column: 1 / -1; }
  .calc-result__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .calc-card { padding: 24px 18px; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-submit { grid-column: auto; }
  .calc-toggle { flex-direction: column; }
  .calc-toggle__btn { text-align: center; }
  .calc-result__cat-name { font-size: 36px; }
  .calc-result__grid { grid-template-columns: 1fr 1fr; }
}

/* =====================
   CALENDARIO DE VENCIMIENTOS
   ===================== */
.vencimientos { }
.vencimientos .section-eyebrow { color: var(--mint); }
.vencimientos .section-title   { color: var(--white); }
.vencimientos .section-sub     { color: rgba(255,255,255,0.6); }

/* Navegación de mes */
.venc-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.venc-mes-titulo {
  font-size: 22px;
  font-weight: 900;
  color: var(--mint-light);
  letter-spacing: 0.01em;
  min-width: 200px;
}
.venc-nav__btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.venc-nav__btn:hover  { background: rgba(175,215,190,0.15); border-color: var(--mint); }
.venc-nav__btn:disabled { opacity: 0.25; cursor: default; }
.venc-nav__hoy {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid rgba(175,215,190,0.35);
  color: var(--mint-light);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.venc-nav__hoy:hover { background: rgba(175,215,190,0.12); border-color: var(--mint); }

/* Grid de cards por impuesto */
.venc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* Card de impuesto */
.vi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 22px 20px 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.vi-card:hover { border-color: rgba(206,237,217,0.2); transform: translateY(-2px); }

.vi-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.vi-card__icon {
  font-size: 20px;
  flex-shrink: 0;
}
.vi-card__titulo {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
}
.vi-card__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}

/* Chips de días */
.vi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vi-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  user-select: none;
  position: relative;
}
.vi-chip:hover { transform: scale(1.08); }
.vi-chip:active { transform: scale(0.96); }

.vi-chip__num {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.vi-chip__mes {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-top: 1px;
}

/* Estados de chips */
.vi-chip--ok {
  background: rgba(175,215,190,0.12);
  border-color: rgba(175,215,190,0.25);
  color: var(--mint-light);
}
.vi-chip--urgente {
  background: rgba(255,180,50,0.18);
  border-color: rgba(255,180,50,0.5);
  color: #ffb432;
  box-shadow: 0 0 12px rgba(255,180,50,0.2);
  animation: pulso 2s ease-in-out infinite;
}
.vi-chip--hoy {
  background: var(--mint);
  border-color: var(--mint-light);
  color: var(--black);
  box-shadow: 0 0 16px rgba(175,215,190,0.4);
}
.vi-chip--vencido {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.25);
}

@keyframes pulso {
  0%, 100% { box-shadow: 0 0 12px rgba(255,180,50,0.2); }
  50%       { box-shadow: 0 0 20px rgba(255,180,50,0.45); }
}

/* Tooltip al hacer click en un chip */
.vi-chip__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.15s;
}
.vi-chip__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--white);
}
.vi-chip.active .vi-chip__tooltip { opacity: 1; }

/* Leyenda */
.venc-leyenda {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.venc-leyenda__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.venc-chip-demo {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid transparent;
  flex-shrink: 0;
}
.venc-chip-demo--ok      { background: rgba(175,215,190,0.12); border-color: rgba(175,215,190,0.25); }
.venc-chip-demo--urgente { background: rgba(255,180,50,0.18);  border-color: rgba(255,180,50,0.5); }
.venc-chip-demo--hoy     { background: var(--mint); }
.venc-chip-demo--vencido { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }

.venc-nota {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .venc-grid { grid-template-columns: 1fr; }
  .vi-chip { width: 44px; height: 44px; }
  .vi-chip__num { font-size: 16px; }
}

/* =====================
   SCROLL ANIMATIONS
   ===================== */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Delays escalonados para grids */
.anim-fade:nth-child(2) { transition-delay: 0.08s; }
.anim-fade:nth-child(3) { transition-delay: 0.16s; }
.anim-fade:nth-child(4) { transition-delay: 0.24s; }

/* Hover mejorado en cards de servicio */
.service-card {
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: rgba(206,237,217,0.35);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(6,7,12,0.3);
}

/* Hover en plan cards */
.plan-card {
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(6,7,12,0.25);
  border-color: rgba(206,237,217,0.25);
}
.plan-card--featured:hover {
  border-color: var(--mint);
}

/* Hover en pain cards */
.pain__card {
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.pain__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10,57,65,0.12);
  border-color: var(--mint);
}

/* Hover en vi-cards del calendario */
.vi-card {
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

/* =====================
   ISOTIPO SVG — NAV
   ===================== */
.nav__isotipo {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  display: block;
  object-fit: scale-down;
  transition: opacity 0.2s;
}
.nav__logo:hover .nav__isotipo { opacity: 0.85; }

/* Footer logo */
.footer__brand-name {
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-top: 4px;
}

/* =====================
   ISOTIPO HERO FONDO
   ===================== */
.hero__bg-isotipo {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, 55vw);
  height: auto;
  pointer-events: none;
  will-change: transform;
  opacity: 0.12;
  mix-blend-mode: screen;
  filter: blur(1px);
}

/* =====================
   TIPOGRAFÍA SERIF EN TÍTULOS
   ===================== */
.section-title em,
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* =====================
   PAIN SECTION — ÍCONOS SVG DE MARCA
   ===================== */
.pain__icon {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.pain__icon svg {
  width: 100%;
  height: 100%;
}

.pain__card p {
  font-size: 15px;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.55;
}

/* =====================
   SECTION TITLES — acento serif en dark sections
   ===================== */
.servicios .section-title,
.planes .section-title,
.vencimientos .section-title,
.equipo .section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* =====================
   RESPONSIVE REFORZADO
   ===================== */
@media (max-width: 900px) {
  .hero__bg-isotipo {
    width: min(380px, 70vw);
    right: -10%;
    opacity: 0.6;
  }

  /* Servicios tabs: scroll horizontal */
  .servicios__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* Diferencial: columna */
  .diferencial__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Equipo: cards más pequeñas */
  .team-card { width: 280px; }
}

@media (max-width: 640px) {
  /* General */
  section { padding: 60px 0; }

  .hero__bg-isotipo { display: none; }

  /* Pain cards: vertical */
  .pain__card {
    flex-direction: column;
    gap: 12px;
  }

  /* Planes grid: una columna */
  .planes__grid { grid-template-columns: 1fr; }

  /* Servicios: panel grid columna única */
  .servicios__grid { grid-template-columns: 1fr; }

  /* Servicios tabs font más pequeño */
  .servicios__tab { font-size: 13px; padding: 8px 16px; }

  /* Equipo cards: full width en mobile */
  .equipo__grid { gap: 20px; }
  .team-card { width: 100%; max-width: 340px; }

  /* Diferencial pillars: columna */
  .diferencial__pillars { gap: 16px; }
  .pillar { gap: 12px; }

  /* Proceso steps: ajustar espaciado */
  .proceso__steps { gap: 24px; }

  /* Planes card padding móvil */
  .plan-card { padding: 28px 20px; }

  /* Calculadora: reducir padding */
  .calc-card { padding: 24px 16px; }

  /* Vencimientos: chips más compactos */
  .vi-chip { width: 40px; height: 40px; }
  .vi-chip__num { font-size: 14px; }
  .venc-grid { gap: 12px; }

  /* Contact form: padding reducido */
  .contacto__form { padding: 24px 18px; }

  /* Modals: padding reducido en mobile */
  .profiling-modal__box { padding: 32px 20px; max-height: 90vh; }
  .wa-modal__box { padding: 28px 20px 24px; }

  /* Section titles */
  .section-title { font-size: clamp(22px, 6vw, 32px); }

  /* Footer: columna */
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

