:root {
  --navy:#07182f; --navy2:#0d2a50; --cyan:#00aeefff; --blue:#1557b0; --light:#f7fbff;
  --slate:#526174; --muted:#7a8798; --line:#d9e6f2; --orange:#f27a1a; --white:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--light);color:var(--navy)}
a{color:inherit;text-decoration:none}
.container{max-width:1240px;margin:0 auto;padding:0 28px}
/* === HEADER STYLES === */
.header {
  position: sticky; top: 0; z-index: 50; 
  background: rgba(255, 255, 255, 0.9); 
  backdrop-filter: blur(18px); 
  border-bottom: 1px solid rgba(7, 24, 47, 0.09);
}
.navbar {
  min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 14px 0;
  position: relative; /* Fundamental para el centrado absoluto del menú */
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 300px; flex-shrink: 0; overflow: visible; }
.logo-img { height: 56px; width: auto; max-width: 230px; object-fit: contain; flex-shrink: 0; }
.menu { 
  display: flex; gap: 25px; color: #596577; font-size: 14px; font-weight: 700; align-items: center; 
  /* Centrado matemático exacto al medio de la pantalla */
  position: absolute; left: 50%; transform: translateX(-50%);
}
.menu a:hover { color: var(--blue); }
.cta {
  background: var(--navy); color: #fff; border-radius: 15px; padding: 14px 18px; 
  font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 12px 35px rgba(7, 24, 47, 0.15);
}
.hero{background:linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.88),rgba(255,255,255,.28)),linear-gradient(0deg,var(--light),rgba(247,251,255,0) 44%),url('https://images.unsplash.com/photo-1499092346589-b9b6be3e94b2?auto=format&fit=crop&w=2200&q=80');background-size:cover;background-position:center}
.hero-grid{min-height:720px;display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding:94px 28px 82px}
.eyebrow{display:inline-flex;border:1px solid #c9edf9;background:rgba(255,255,255,.75);color:#05739e;border-radius:999px;padding:10px 16px;font-size:13px;font-weight:800}
h1{font-size:72px;line-height:.98;letter-spacing:-.055em;margin:24px 0 0;max-width:760px}
.hero p{font-size:19px;line-height:1.75;color:#45546a;max-width:650px;margin:28px 0 0}
.hero-actions{display:flex;gap:14px;margin-top:34px;flex-wrap:wrap}
.btn-primary,.btn-secondary{border-radius:17px;padding:16px 22px;font-weight:800;display:inline-flex;font-size:14px}
.btn-primary{background:var(--cyan);color:#fff;box-shadow:0 18px 40px rgba(0,174,239,.25)}
.btn-secondary{border:1px solid #cfdceb;background:rgba(255,255,255,.72);color:var(--navy)}
.deal-card{background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.95);border-radius:34px;overflow:hidden;box-shadow:0 30px 90px rgba(7,24,47,.18);backdrop-filter:blur(18px)}
.deal-image{height:292px;position:relative;overflow:hidden}
.deal-image img{width:100%;height:100%;object-fit:cover}
.deal-image:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(7,24,47,.86),rgba(7,24,47,.05))}
.deal-caption{position:absolute;left:28px;right:28px;bottom:28px;color:white;z-index:1}
.deal-caption .mini{color:#aeefff;letter-spacing:.24em;text-transform:uppercase;font-weight:800;font-size:12px}
.deal-caption .title{font-size:32px;line-height:1.08;font-weight:800;margin-top:8px}
.deal-list{padding:26px;display:grid;gap:12px}
.check{background:#f6faff;border:1px solid #e7f1fa;border-radius:17px;padding:15px 16px;color:#45546a;font-weight:700}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:28px 0 54px}
.stat{background:white;border:1px solid #dceaf4;border-radius:28px;padding:26px;box-shadow:0 10px 28px rgba(7,24,47,.045)}
.stat .num{color:var(--cyan);font-size:34px;font-weight:800;letter-spacing:-.04em}
.stat .label{color:var(--muted);font-size:14px;font-weight:700;margin-top:6px}
.section{padding:88px 0}
.white{background:white}
.section-head{max-width:860px;margin-bottom:44px}
.kicker{color:var(--cyan);text-transform:uppercase;letter-spacing:.28em;font-size:12px;font-weight:900}
h2{font-size:50px;line-height:1.04;letter-spacing:-.045em;margin:14px 0 0}
.section-head p,.about-copy p{color:var(--slate);font-size:18px;line-height:1.72}
.solutions-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.solution-card{background:white;border:1px solid #dceaf4;border-radius:26px;padding:24px;min-height:310px;box-shadow:0 12px 34px rgba(7,24,47,.05)}
.solution-card.highlight{border-color:#ffd2af;background:linear-gradient(180deg,#fff,#fff7f1)}
.solution-card .number{color:var(--cyan);font-size:12px;font-weight:900;letter-spacing:.2em}
.solution-card.highlight .number{color:var(--orange)}
.solution-card h3{font-size:22px;line-height:1.08;letter-spacing:-.03em;margin:12px 0 8px}
.solution-card .sub{color:#5d6b7c;font-size:14px;font-weight:700;line-height:1.45;margin-bottom:14px}
.solution-card ul{margin:0;padding-left:17px}
.solution-card li{color:#667385;font-size:13px;line-height:1.45;margin:7px 0}
.direct-box{margin-top:42px;background:linear-gradient(135deg,var(--navy),#0e315d);border-radius:34px;padding:36px;color:white;box-shadow:0 26px 70px rgba(7,24,47,.20)}
.direct-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:24px}
.direct-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:22px}
.direct-card h4{color:#aeefff;font-size:19px;margin:0 0 12px}
.direct-card ul{margin:0;padding-left:18px;color:#edf6ff;line-height:1.65;font-size:14px}
.note{color:#bfd0e2;font-size:12px;line-height:1.6;margin-top:22px}
.transactions-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.transaction{background:white;border:1px solid #dceaf4;border-radius:28px;overflow:hidden;box-shadow:0 12px 32px rgba(7,24,47,.05)}
.transaction img{width:100%;height:190px;object-fit:cover;display:block}
.transaction-body{padding:25px}
.transaction h3{color:#087db2;font-size:24px;line-height:1.1;margin:0;letter-spacing:-.03em}
.transaction .type,.office-card .type{margin-top:10px;color:#8b96a5;text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:900}
.transaction p,.office-card p{color:#5b687a;line-height:1.6;font-size:14px;margin:16px 0 0}
.about-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:58px;align-items:center}
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px}
.pillar{background:white;border:1px solid #dceaf4;border-radius:22px;padding:20px;font-weight:800;color:var(--navy);box-shadow:0 10px 28px rgba(7,24,47,.045)}
.team-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.team-card{background:white;border:1px solid #dceaf4;border-radius:28px;padding:22px;box-shadow:0 12px 32px rgba(7,24,47,.05)}
.team-photo{width:100%;height:230px;object-fit:cover;object-position:center 20%;border-radius:18px;margin-bottom:18px;box-shadow:0 12px 28px rgba(7,24,47,.10)}
.team-card h3{margin:0;font-size:21px;line-height:1.15;letter-spacing:-.03em}
.team-card .role{color:var(--cyan);text-transform:uppercase;letter-spacing:.14em;font-size:10.5px;font-weight:900;line-height:1.5;margin-top:10px}
.team-card p{color:#5b687a;font-size:13px;line-height:1.6;margin:15px 0 0}
.advisors{color:white;background:linear-gradient(90deg,rgba(7,24,47,.97),rgba(7,24,47,.86),rgba(7,24,47,.35)),url('https://images.unsplash.com/photo-1605723517503-3cadb5818a0c?auto=format&fit=crop&w=1800&q=80');background-size:cover;background-position:center}
.advisors .inner{max-width:800px;padding:90px 0}
.advisors p{color:#d5e2ef;font-size:18px;line-height:1.75}
.cta-section{background:linear-gradient(135deg,#08b7f0,#1e74d8);color:white;border-radius:38px;padding:52px;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;box-shadow:0 25px 75px rgba(0,100,180,.20)}
.cta-section h2{color:white;margin:0}
.cta-section p{color:rgba(255,255,255,.92);font-size:18px;line-height:1.7}
.contact-card{background:rgba(255,255,255,.95);color:var(--navy);border-radius:26px;padding:26px;line-height:1.7;font-weight:700}
.office-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.office-card{background:white;border:1px solid #dceaf4;border-radius:28px;padding:30px;box-shadow:0 12px 32px rgba(7,24,47,.05)}
.office-card h3{margin:0;color:#087db2;font-size:24px;line-height:1.1}
.careers{background:linear-gradient(135deg,var(--navy),#0d345f);color:white;border-radius:38px;overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr;box-shadow:0 25px 75px rgba(7,24,47,.20)}
.careers-copy{padding:54px}
.roles{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:25px}
.role-chip{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);border-radius:16px;padding:14px;font-weight:700;color:#edf7ff}
.careers-img{min-height:430px;background:url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1800&q=80') center/cover}
.footer{background:white;border-top:1px solid var(--line);color:#7a8798;text-align:center;padding:28px;font-size:13px;line-height:1.6}

@media(max-width:1150px){.menu{display:none}.hero-grid,.about-grid,.cta-section,.careers{grid-template-columns:1fr}.solutions-grid{grid-template-columns:repeat(2,1fr)}.transactions-grid,.team-grid,.direct-grid,.stats,.office-grid{grid-template-columns:repeat(2,1fr)}h1{font-size:56px}}
@media(max-width:900px){.brand{min-width:auto}.brand-lines .top{font-size:10px;letter-spacing:.1em}.brand-lines .bottom{font-size:9px;letter-spacing:.08em}}
@media(max-width:700px){.container{padding:0 18px}.navbar{height:auto;padding:16px 0;flex-wrap:wrap}.brand-lines{display:none}h1{font-size:42px}h2{font-size:36px}.solutions-grid,.transactions-grid,.team-grid,.direct-grid,.stats,.pillars,.roles,.office-grid{grid-template-columns:1fr}}

/* Marquee / Ticker Styles */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: var(--navy);
  color: var(--white);
  padding: 10px 0;
  box-sizing: border-box;
  display: flex;
  border-bottom: 2px solid var(--cyan);
}
.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker:hover {
  animation-play-state: paused;
}
.ticker-item {
  padding: 0 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === APPLY PAGE SPECIFIC STYLES === */
.apply-section {
  padding: 80px 20px;
  background: var(--light);
  min-height: calc(100vh - 200px);
}
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.apply-form-container {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(7, 24, 47, 0.06);
  border: 1px solid var(--line);
}
.apply-header-text h1 {
  font-size: 36px;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}
.apply-header-text p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 30px;
}
.evo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.evo-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.evo-form input, .evo-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d9e2;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: #fdfdfe;
  transition: all 0.2s ease;
}
.evo-form input:focus, .evo-form select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
  background: #fff;
}
.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-top: 5px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
.btn-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  grid-column: 1 / -1;
  margin-top: 10px;
}
.btn-submit:hover {
  background: var(--navy2);
}
.apply-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(7, 24, 47, 0.04);
  border: 1px solid var(--line);
}
.sidebar-card h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-card p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.sidebar-card a.info-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  text-decoration: none;
}
.sidebar-card a.info-link:hover {
  text-decoration: underline;
}
.btn-outline {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

@media(max-width: 900px) {
  .apply-grid {
    grid-template-columns: 1fr;
  }
  .evo-form {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/* === CALCULATOR & DSCR PAGE SPECIFIC STYLES === */
/* ========================================================= */

.hero-inner { padding:92px 28px 74px; display:grid; grid-template-columns:1.05fr .95fr; gap:52px; align-items:center; }
.hero-card { background:rgba(255,255,255,.85); border:1px solid rgba(255,255,255,.95); border-radius:34px; padding:32px; box-shadow:0 30px 90px rgba(7,24,47,.18); backdrop-filter:blur(18px); }
.hero-card h2 { margin:0; font-size:34px; letter-spacing:-.04em; }
.hero-card ul { margin:24px 0 0; padding:0; list-style:none; display:grid; gap:13px; }
.hero-card li { background:#f6faff; border:1px solid #e7f1fa; border-radius:17px; padding:15px 16px; color:#45546a; font-weight:700; }

.calculator-wrap { display:grid; grid-template-columns:1fr .9fr; gap:28px; align-items:start; }
.panel { background:white; border:1px solid var(--line); border-radius:32px; padding:32px; box-shadow:0 18px 55px rgba(7,24,47,.06); }
.subtitle { color:var(--slate); font-size:17px; line-height:1.7; }
.tabs { display:flex; gap:10px; margin:26px 0; flex-wrap:wrap; }
.tab { border:1px solid var(--line); background:#f7fbff; color:var(--navy); border-radius:999px; padding:11px 16px; font-weight:800; cursor:pointer; }
.tab.active { background:var(--navy); color:white; border-color:var(--navy); }

.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.field label { display:block; color:#314155; font-weight:800; font-size:13px; margin-bottom:8px; }
.field input, .field select { width:100%; border:1px solid #d7e5f0; background:#f8fbfe; color:var(--navy); border-radius:16px; padding:15px 14px; font-size:16px; outline:none; }
.field input:focus, .field select:focus { border-color:var(--cyan); box-shadow:0 0 0 4px rgba(0,174,239,.12); }
.help { color:#7a8798; font-size:12px; margin-top:7px; line-height:1.4; }

.results { display:grid; gap:14px; margin-top:22px; }
.result-card { background:linear-gradient(180deg,#ffffff,#f7fbff); border:1px solid #dceaf4; border-radius:22px; padding:22px; }
.result-card.feature { background:linear-gradient(135deg,var(--navy),#0e315d); color:white; }
.result-label { color:#7a8798; text-transform:uppercase; letter-spacing:.16em; font-size:11px; font-weight:900; }
.feature .result-label { color:#aeefff; }
.result-value { font-size:34px; font-weight:900; letter-spacing:-.04em; margin-top:8px; }
.breakdown { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }

.cta-box { margin-top:20px; background:linear-gradient(135deg,#08b7f0,#1e74d8); color:white; border-radius:26px; padding:28px; }
.cta-box h3 { font-size:28px; line-height:1.08; margin:0; letter-spacing:-.04em; }
.cta-box p { color:rgba(255,255,255,.92); line-height:1.65; }
.btn { display:inline-flex; background:var(--navy); color:white; padding:15px 20px; border-radius:15px; font-weight:900; margin-top:8px; }

.disclaimer { color:#7a8798; font-size:12px; line-height:1.6; margin-top:20px; }

/* AMORTIZATION TABLE STYLES */
.table-wrap { margin-top:26px; max-height:420px; overflow:auto; border:1px solid var(--line); border-radius:22px; }
table { width:100%; border-collapse:collapse; background:white; font-size:13px; }
th { position:sticky; top:0; background:#f3f8fc; color:#526174; text-align:left; padding:12px; border-bottom:1px solid var(--line); }
td { padding:12px; border-bottom:1px solid #edf3f8; color:#45546a; }

/* DSCR & RESOURCES STYLES */
.resources { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.dscr-grid { display:grid; grid-template-columns:1fr .8fr; gap:28px; align-items:start; }
.dscr-result { background:linear-gradient(135deg,var(--navy),#0e315d); color:white; border-radius:26px; padding:28px; }
.dscr-number { font-size:54px; font-weight:900; letter-spacing:-.055em; margin-top:10px; }
.dscr-status { margin-top:10px; font-size:18px; font-weight:900; }
.dscr-note { margin-top:16px; color:#d5e2ef; line-height:1.65; }

.ebitda-grid { display:grid; grid-template-columns:1fr .8fr; gap:28px; align-items:start; }
.addback-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:18px; }
.ebitda-result { background:linear-gradient(135deg,var(--navy),#0e315d); color:white; border-radius:26px; padding:28px; }
.ebitda-number { font-size:50px; font-weight:900; letter-spacing:-.055em; margin-top:10px; }
.ebitda-breakdown { margin-top:20px; display:grid; gap:10px; }
.ebitda-row { display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid rgba(255,255,255,.12); padding-bottom:10px; color:#d5e2ef; }
.ebitda-row strong { color:white; }

.resource-card { background:white; border:1px solid var(--line); border-radius:26px; padding:26px; box-shadow:0 12px 34px rgba(7,24,47,.05); }
.resource-card h3 { margin:0; font-size:24px; letter-spacing:-.03em; }
.resource-card p { color:var(--slate); line-height:1.65; }

/* RESPONSIVE DESIGN PARA LA CALCULADORA */
@media (max-width:980px) { 
  .hero-inner, .calculator-wrap { grid-template-columns:1fr; } 
  .dscr-grid, .ebitda-grid { grid-template-columns:1fr; } 
  .resources { grid-template-columns:1fr; } 
}
@media (max-width:650px) { 
  .addback-grid { grid-template-columns:1fr; } 
  .form-grid, .breakdown { grid-template-columns:1fr; } 
}

/* === HOVER EFFECTS PARA LA SECCIÓN SOLUTIONS === */
.solution-card {
  transition: all 0.3s ease;
  cursor: pointer;
}
.solution-card:hover {
  border-color: var(--cyan);
  background-color: #f4f9ff;
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(7, 24, 47, 0.08);
}
.solution-card.highlight {
  transition: all 0.3s ease;
}
.solution-card.highlight:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 174, 239, 0.15);
}

/* ========================================================= */
/* === HOVER EFFECTS PARA LOS BOTONES === */
/* ========================================================= */
.btn-primary, .btn-secondary, .cta {
  transition: all 0.3s ease !important;
}
.btn-primary:hover {
  transform: scale(1.05);
  background-color: #009ce0;
  box-shadow: 0 22px 45px rgba(0, 174, 239, 0.35);
}
.btn-secondary:hover {
  transform: scale(1.05);
  background-color: #ffffff;
  border-color: var(--cyan);
  color: var(--blue);
  box-shadow: 0 15px 35px rgba(7, 24, 47, 0.08);
}
.cta:hover {
  transform: scale(1.05);
  background-color: var(--blue);
  box-shadow: 0 15px 40px rgba(21, 87, 176, 0.3);
}


/* ========================================================= */
/* === RESPONSIVE MENU Y NAVBAR === */
/* ========================================================= */
.menu-container {
  display: flex; 
  align-items: center; 
  justify-content: flex-end; 
  flex: 1; /* <-- CAMBIO CLAVE: Toma el espacio sobrante sin forzar el 100% */
  gap: 20px;
  height: 100%; 
}

/* Ocultar el botón CTA móvil por defecto (en escritorio) */
.mobile-cta {
  display: none !important;
}

/* Estilos iniciales del botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 100;
  margin: 0; 
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--navy);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Comportamiento responsivo para pantallas móviles y tablets */
@media (max-width: 992px) {

  .navbar {
    flex-wrap: nowrap !important; /* <-- CAMBIO CLAVE: Obliga a que el logo y el menú estén en 1 sola línea siempre */
  }

  .hamburger {
    display: flex;
    padding: 10px;
    align-self: center; 
  }

  /* Diseño y centrado del menú desplegable */
  .menu {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding: 30px 20px;
    gap: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
    border-top: 1px solid var(--line);
  }

  .menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu a {
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
  }

  .desktop-cta {
    display: none !important;
  }

  .mobile-cta {
    display: block !important;
    width: auto;
    text-align: center;
    margin-top: 10px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ========================================================= */
  /* ESPACIO EXTRA CON IMAGEN DE FONDO EN CELULAR */
  /* ========================================================= */
  
  /* Quitamos el margen que creaba la franja blanca */
  .ticker-wrap {
    margin-bottom: 0 !important; 
  }

  /* Añadimos relleno interno a la sección hero para extender la imagen de fondo */
  .hero {
    padding-top: 50px !important; 
  }

} /* <-- IMPORTANTE: ESTA LLAVE CERRÓ EL MODO CELULAR (@media) PARA NO DAÑAR LO SIGUIENTE */

/* ========================================================= */
/* === ESTILOS PARA LA PÁGINA DE LOGIN Y RECUPERACIÓN === */
/* ========================================================= */

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 250px);
  padding: 60px 20px;
  background-color: var(--light);
}

.auth-container {
  width: 100%;
  max-width: 460px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 12px 32px rgba(7, 24, 47, 0.04);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0 0 28px 0;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--white);
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.form-input.input-error {
  border-color: #d93838;
  background-color: #fffbfb;
}

.form-input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(217, 56, 56, 0.15);
}

.error-message {
  display: none;
  font-size: 0.8rem;
  color: #d93838;
  margin-top: 6px;
  font-weight: 500;
}

.auth-link {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--slate);
  user-select: none;
}

.form-group-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
}

.success-alert {
  padding: 12px 16px;
  background-color: #e6f7ed;
  border: 1px solid #b2e3c4;
  color: #1e6636;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.4;
}