/* =========================================
   VARIABLES
   ========================================= */
:root {
  --primary:        #0f4c75;
  --primary-dark:   #0a3457;
  --primary-light:  #e6f0f8;
  --accent:         #e8630a;
  --accent-dark:    #c9540a;
  --text:           #1a2332;
  --text-mid:       #445566;
  --text-light:     #7a8d99;
  --bg:             #f5f7fa;
  --bg-alt:         #eaeff5;
  --white:          #ffffff;
  --border:         #d0dce8;

  --font-body:    'Outfit', sans-serif;
  --font-display: 'Lora', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(15,76,117,0.08);
  --shadow-md: 0 6px 24px rgba(15,76,117,0.13);
  --shadow-lg: 0 16px 48px rgba(15,76,117,0.18);

  --transition: 0.25s ease;
  --header-h: 80px;
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
img  { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* =========================================
   LAYOUT
   ========================================= */
.container {
  width: 95%;
  margin: 0 auto;
}

.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================
   TIPOGRAFÍA
   ========================================= */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 28px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; color: var(--text); }
p { color: var(--text-mid); text-align: justify; }

/* =========================================
   BOTONES
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 22px 20px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.card--service { display: block; text-decoration: none; }
.card--service:hover .card__link { color: var(--accent); }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.card__desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
  text-align: justify;
}
.card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

/* Check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0 26px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.check-list li i { color: var(--accent); font-size: 12px; flex-shrink: 0; }

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 999;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.header--scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; }
.logo__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
}
.logo__tagline {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--text-light);
  text-transform: uppercase;
}

.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav__link:hover, .nav__link.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav__link--cta {
  background: var(--accent);
  color: var(--white) !important;
  margin-left: 10px;
}
.nav__link--cta:hover { background: var(--accent-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   HERO (index)
   ========================================= */
.hero {
  padding: calc(var(--header-h) + 56px) 0 60px;
  background: linear-gradient(140deg, #0f4c75 0%, #1a6ea8 55%, #0a3457 100%);
  position: relative;
  overflow: hidden;
}

.hero__bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  background-image: url('../img/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.40;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.hero__content { max-width: 680px; }

.hero__content .eyebrow {
  color: var(--accent);
  background: rgba(232,99,10,0.15);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(232,99,10,0.3);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin: 12px 0 16px;
  text-align: left;
}
.hero__title em { font-style: italic; color: #f0a060; }

.hero__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.7;
  text-align: justify;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
}
.stat-card { flex: 1; padding: 0 28px 0 0; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-card:last-child { border-right: none; padding-left: 28px; padding-right: 0; }
.stat-card:not(:first-child) { padding-left: 28px; }
.stat-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card__label { font-size: 13px; color: rgba(255,255,255,0.58); }

/* =========================================
   PAGE HERO (páginas interiores)
   ========================================= */
.page-hero {
  padding: calc(var(--header-h) + 44px) 0 44px;
  background: linear-gradient(140deg, #0f4c75 0%, #1a6ea8 55%, #0a3457 100%);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  background-image: url('../img/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
  z-index: 0;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: #f0a060;
  background: rgba(232,99,10,0.15);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(232,99,10,0.3);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  color: var(--white);
  margin: 10px 0 10px;
  line-height: 1.15;
  text-align: left;
}

.page-hero__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  line-height: 1.65;
  text-align: justify;
}

/* =========================================
   ABOUT (index)
   ========================================= */
.about__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  gap: 56px;
}

.about__visual { position: relative; flex-shrink: 0; }

.about__img-wrapper {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--bg-alt));
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.about__img-placeholder { font-size: 100px; color: var(--primary); opacity: 0.2; }

.about__badge {
  position: absolute;
  bottom: -14px; right: -14px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.about__content .section__title { margin-bottom: 12px; }
.about__content p { font-size: 15px; margin-bottom: 12px; line-height: 1.7; }

/* =========================================
   PROCESO
   ========================================= */
.process__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
}
.process__step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.process__step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.process__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 10px;
}
.process__step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--font-body);
}
.process__step p { font-size: 13px; line-height: 1.6; }
.process__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  padding-top: 32px;
  color: var(--primary);
  opacity: 0.35;
  font-size: 14px;
  flex-shrink: 0;
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 52px 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta-banner__content h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
  text-align: left;
}
.cta-banner__content p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-align: left;
}

/* =========================================
   FOOTER
   ========================================= */
.footer { background: #101c28; color: rgba(255,255,255,0.65); }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 52px 0 40px;
}

.footer__logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 2px;
}
.footer__logo-tagline {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 12px;
}
.footer__desc {
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.5);
  text-align: left;
}
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer__social a:hover { background: var(--accent); color: var(--white); }

.footer__heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.footer__list { display: flex; flex-direction: column; gap: 8px; }
.footer__list a { font-size: 13px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer__list a:hover { color: var(--white); }

.footer__list--contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer__list--contact i { font-size: 12px; color: var(--accent); flex-shrink: 0; width: 13px; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 16px 0; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 12px; color: rgba(255,255,255,0.32); text-align: left; }
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { font-size: 12px; color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer__bottom-links a:hover { color: var(--white); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 300px 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 30px; }
}

@media (max-width: 1024px) {
  .process__steps { grid-template-columns: 1fr; }
  .process__connector { transform: rotate(90deg); padding: 4px 0; justify-self: center; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }

  .hero { padding: calc(var(--header-h) + 36px) 0 48px; }
  .hero__bg-img { width: 100%; opacity: 0.1; -webkit-mask-image: none; mask-image: none; }
  .hero__stats { flex-direction: column; gap: 20px; border-top: none; padding-top: 20px; }
  .stat-card { border-right: none; padding: 0; }
  .stat-card:not(:first-child) { padding-left: 0; }

  .page-hero__bg { width: 100%; opacity: 0.1; -webkit-mask-image: none; mask-image: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__img-wrapper { height: 240px; }
  .about__badge { right: 0; }

  .cta-banner { padding: 40px 0; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__content h2,
  .cta-banner__content p { text-align: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px 0 28px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0;
    width: 100%;
    background: var(--white);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav--open { display: block; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav__link--cta { margin-left: 0; margin-top: 8px; }
  .hamburger { display: flex; }

  p { text-align: left; }
}

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