/* Fuentes locales - Gilroy */
@font-face {
  font-family: 'Gilroy';
  src: url('/fuentes/Gilroy-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fuentes/Gilroy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fuentes/Gilroy-RegularItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fuentes/Gilroy-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fuentes/Gilroy-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fuentes/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fuentes/Gilroy-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('/fuentes/Gilroy-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Fuentes locales - Gala */
@font-face {
  font-family: 'Gala';
  src: url('/fuentes/fonnts.com-Gala_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gala';
  src: url('/fuentes/fonnts.com-Gala_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gala';
  src: url('/fuentes/fonnts.com-Gala_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gala';
  src: url('/fuentes/fonnts.com-Gala_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Rediseno SJP2 - Identidad tecnologica moderna */

:root {
  --primary: #1045C4;
  --primary-dark: #0c3aa3;
  --primary-light: rgba(16, 69, 196, 0.08);
  --structural: #3A486A;
  --accent: #00E1A6;
  --accent-dark: #00c896;
  --bg-soft: #C6EBCA;
  --bg-alt: #BFCDEF;
  --bg-main: #FBFDFC;
  --text-muted: #6b7a99;
  --white: #ffffff;
  --font-heading: 'Gala', 'Gilroy', sans-serif;
  --font-body: 'Gilroy', sans-serif;
  --max-w: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 30px rgba(58, 72, 106, 0.10);
  --shadow-hover: 0 16px 48px rgba(16, 69, 196, 0.15);
  --shadow-float: 0 20px 60px rgba(58, 72, 106, 0.18);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* La fuente Gala siempre en mayusculas */
h1,
h2,
h3,
h4,
h5,
h6,
.hero__title,
.section-title,
.footer__card-title,
.modalidad-card__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--structural);
  background: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ======= TOP BAR ======= */
.topbar {
  background: var(--structural);
  padding: 10px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.topbar__item:hover {
  color: var(--accent);
}

.topbar__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__social {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.topbar__social:hover {
  background: var(--accent);
  color: var(--structural);
}

.topbar__social svg {
  width: 13px;
  height: 13px;
}

/* ======= HEADER ======= */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(58, 72, 106, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  position: fixed;
  background: rgba(30, 40, 65, 0.92);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
  border-bottom-color: transparent;
}

/* Inner pages: solid dark header, not overlapping content */
.header--inner {
  position: sticky;
  top: 0;
  background: rgba(30, 40, 65, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header--inner.scrolled {
  position: sticky;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
  opacity: 0.7;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(30, 40, 65, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-width: 260px;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 200;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown:hover .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown:hover .nav__link svg {
  transform: rotate(180deg);
}

.dropdown__item {
  display: block;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition: all var(--transition);
}

.dropdown__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* CTA glow button */
.btn--glow {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(0, 225, 166, 0.5);
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 0 16px rgba(0, 225, 166, 0.15), inset 0 0 16px rgba(0, 225, 166, 0.05);
  transition: all var(--transition);
}

.btn--glow:hover {
  background: rgba(0, 225, 166, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(0, 225, 166, 0.3), inset 0 0 20px rgba(0, 225, 166, 0.08);
  color: var(--white);
  transform: translateY(-1px);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 69, 196, 0.3);
  color: var(--white);
}

.btn--accent {
  background: var(--accent);
  color: var(--structural);
}

.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 225, 166, 0.35);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

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

.btn--outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  background: rgba(30, 40, 65, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 10px;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ======= HERO ======= */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--structural);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(16, 69, 196, 0.7) 0%, rgba(58, 72, 106, 0.55) 50%, rgba(58, 72, 106, 0.25) 100%);
}

/* Decorative geometric shapes */
.hero__shape1 {
  position: absolute;
  top: -20%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: rgba(0, 225, 166, 0.06);
  border-radius: 50%;
  z-index: 3;
  filter: blur(40px);
}

.hero__shape2 {
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(16, 69, 196, 0.15);
  border-radius: 50%;
  z-index: 3;
  filter: blur(60px);
}

.hero .container {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero__content {
  flex: 1;
  max-width: 580px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 225, 166, 0.12);
  border: 1px solid rgba(0, 225, 166, 0.25);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero__image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__image img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
}

/* ======= FLOATING SERVICE CARDS (over hero bottom) ======= */
.floating-cards {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding: 0 24px;
}

.floating-cards .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fcard {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  position: relative;
}

.fcard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--accent);
}

.fcard__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.fcard:hover .fcard__icon {
  background: var(--primary);
}

.fcard__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: filter var(--transition);
}

.fcard:hover .fcard__icon img {
  filter: brightness(0) invert(1);
}

.fcard__icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  transition: color var(--transition);
}

.fcard:hover .fcard__icon svg {
  color: var(--white);
}

.fcard__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--structural);
  margin-bottom: 8px;
}

.fcard__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Client logos strip */
.clients-strip {
  padding: 40px 0;
  background: var(--bg-main);
}

.clients-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.clients-strip__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
}

.clients-strip__label::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 2px;
  background: var(--bg-alt);
  vertical-align: middle;
  margin-left: 16px;
}

.clients-strip__logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.clients-strip__logos img {
  height: 32px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: all var(--transition);
}

.clients-strip__logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ======= SECTION BASE ======= */
.section {
  padding: 100px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--alt {
  background: var(--bg-alt);
}

.section--diagonal {
  background: linear-gradient(170deg, var(--bg-alt) 0%, var(--bg-alt) 40%, var(--bg-main) 40%);
  position: relative;
}

.section--dark {
  background: linear-gradient(135deg, var(--structural) 0%, #2a3550 100%);
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 16px;
  background: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section__badge--light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--structural);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section__title em {
  font-style: normal;
  color: var(--primary);
}

.section--dark .section__title {
  color: var(--white);
}

.section--dark .section__title em {
  color: var(--accent);
}

.section__subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* ======= ABOUT (50/50 layout) ======= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.about__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(16, 69, 196, 0.2);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.about__play:hover {
  background: var(--accent);
  box-shadow: 0 0 0 16px rgba(0, 225, 166, 0.2);
  transform: translate(-50%, -50%) scale(1.05);
}

.about__play svg {
  width: 24px;
  height: 24px;
  color: var(--white);
  margin-left: 3px;
}

.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--structural);
  line-height: 1.2;
  margin-bottom: 16px;
}

.about__title em {
  font-style: normal;
  color: var(--primary);
}

.about__text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.about__feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--primary-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.about__feat:hover {
  background: rgba(16, 69, 196, 0.12);
}

.about__feat-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__feat-icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.about__feat-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--structural);
}

.about__contact {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.about__contact-phone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about__contact-phone-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__contact-phone-icon svg {
  width: 20px;
  height: 20px;
  color: var(--structural);
}

.about__contact-phone-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about__contact-phone-number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--structural);
}

/* ======= SERVICE CARDS (for Services/Modalidades section) ======= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.scard {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.scard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.scard:hover::before {
  transform: scaleX(1);
}

.scard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.scard__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--primary-dark);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scard__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.scard__icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.scard__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--structural);
  margin-bottom: 10px;
}

.scard__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======= PROMO BANNER ======= */
.promo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(0, 225, 166, 0.08);
  border-radius: 50%;
  filter: blur(60px);
}

.promo::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.promo__title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.promo .btn {
  position: relative;
  z-index: 2;
}

/* ======= SPLIT PROMO (image + content) ======= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse>* {
  direction: ltr;
}

.split__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}



.split__title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--structural);
  line-height: 1.2;
  margin-bottom: 16px;
}

.split__title em {
  font-style: normal;
  color: var(--primary);
}

.split__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.split__list {
  margin-bottom: 28px;
}

.split__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--structural);
}

.split__list li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* ======= QUOTE BOX ======= */
.quote-box {
  background: rgba(16, 69, 196, 0.04);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--primary);
  display: flex;
  gap: 16px;
  align-items: center;
}

.quote-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
}

.quote-box__text {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

.quote-box__name {
  display: block;
  font-weight: 700;
  font-style: normal;
  color: var(--structural);
  margin-top: 6px;
  font-size: 0.82rem;
}

/* ======= BLOG REDESIGNED (MODERN) ======= */
.section--blog {
  padding-top: 120px;
  padding-bottom: 100px;
}

.section--blog .section__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
}

.blog-slider-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 64px;
  padding-bottom: 20px;
}

.blog-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.2);
  background: white;
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.blog-nav-btn:hover {
  background: var(--teal-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.blog-nav-btn svg {
  width: 24px;
  height: 24px;
}

/* .blog-grid--slider removed to allow horizontal scroll on home */

.section__header-nav {
  display: flex;
  gap: 12px;
  padding-bottom: 5px;
}

.blog-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(58, 72, 106, 0.15);
  background: var(--white);
  color: var(--structural);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}

.blog-nav-btn:hover {
  background: var(--structural);
  color: var(--white);
  border-color: var(--structural);
  transform: translateY(-2px);
}

.blog-nav-btn svg {
  width: 20px;
  height: 20px;
}

.blog-grid--modern {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 20px 5px 40px 5px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.blog-grid--modern::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.blog-grid--modern>* {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  .blog-grid--modern>* {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (min-width: 1200px) {
  .blog-grid--modern>* {
    flex: 0 0 calc(33.333% - 20px);
  }
}

/* Page version (grid instead of slider) */
.blog-grid--page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.blog-grid--page>* {
  flex: none;
}

.blog-card-modern {
  background: var(--card-bg, #f4f7fc);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.blog-card-modern__content {
  padding: 30px 30px 10px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-modern__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.blog-card-modern__tags {
  display: flex;
  gap: 8px;
}

.blog-tag {
  background: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--structural);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card-modern__icon {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--structural);
  opacity: 0.6;
}

.blog-card-modern__icon svg {
  width: 18px;
  height: 18px;
}

.blog-card-modern__body {
  margin-bottom: 0px;
}

.blog-card-modern__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--structural);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.blog-card-modern__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.blog-card-modern__img {
  order: -1;
  position: relative;
  overflow: hidden;
  height: 260px;
}

.blog-card-modern__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.blog-card-modern:hover .blog-card-modern__img img {
  transform: scale(1.1);
}

.blog-card-modern__btn {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 8px 8px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition);
}

.blog-card-modern__btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(5px);
}

.btn-circle {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--structural);
}

.btn-circle svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .blog-card-modern__title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .section__header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .section__header-nav {
    display: none;
    /* Hide nav arrows on mobile if using grid/stack */
  }

  .blog-grid--modern {
    grid-template-columns: 1fr;
  }

  .blog-card-modern {
    padding: 24px;
  }
}

/* ======= CTA BANNER ======= */
.cta-banner {
  background: linear-gradient(135deg, var(--structural) 0%, var(--primary) 100%);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 225, 166, 0.08) 0%, transparent 70%);
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.cta-banner .btn {
  position: relative;
  z-index: 2;
}

/* Section labels */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Testimonios */
.testimonios-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonio-card {
  background: var(--white);
  border: 1px solid rgba(58, 72, 106, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
}

.testimonio-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.testimonio-card__quote p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--structural);
  margin: 0;
}

.testimonio-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(58, 72, 106, 0.08);
}

.testimonio-card__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonio-card__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--structural);
  text-transform: none;
}

.testimonio-card__role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ======= FOOTER ======= */
/* Footer - Rediseno inspirado en referencia */
.footer {
  background: #1a2540;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}

.footer__watermark {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer__card {
  background: linear-gradient(135deg, rgba(0, 225, 166, 0.25) 0%, rgba(16, 69, 196, 0.2) 100%);
  border: 1px solid rgba(0, 225, 166, 0.2);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.footer__card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 225, 166, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.footer__logo {
  display: block;
  margin-bottom: auto;
}

.footer__logo img {
  height: 48px;
  width: auto;
}

.footer__card-text {
  margin-top: auto;
}

.footer__card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__card-sub {
  font-size: 0.85rem;
  color: var(--accent);
}

.footer__links-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 8px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all var(--transition);
}

.footer__list a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__badge {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, #00c896 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  box-shadow: 0 12px 40px rgba(0, 225, 166, 0.3);
  z-index: 2;
}

.footer__badge img {
  width: 44px;
  height: 44px;
}

.footer__subscribe {
  padding-top: 12px;
}

.footer__subscribe-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__subscribe-form {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.footer__subscribe-form:focus-within {
  border-color: var(--accent);
}

.footer__subscribe-input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}

.footer__subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer__subscribe-btn {
  background: var(--accent);
  color: #1a2540;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.footer__subscribe-btn:hover {
  background: #00c896;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}

.footer__bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer__bottom a:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__badge {
    display: none;
  }

  .footer__links-area {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__links-area {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

.scroll-top {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all var(--transition);
}

.scroll-top:hover {
  background: var(--accent);
  color: var(--structural);
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
}

/* ======= WHATSAPP ======= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-float__label {
  background: var(--white);
  color: var(--structural);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}

.wa-float:hover .wa-float__label {
  opacity: 1;
  transform: translateX(0);
}

.wa-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.wa-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.wa-float__btn svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

/* ======= ANIMATIONS ======= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .floating-cards .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__media {
    order: -1;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse {
    direction: ltr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: var(--structural);
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    gap: 8px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__list li:last-child {
    border-bottom: none;
  }

  .nav__link {
    padding: 18px 16px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .nav .btn--glow {
    margin-top: 20px;
    text-align: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
  }

  .dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .dropdown.open .dropdown__menu {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero .container {
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 30px;
    text-align: center;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image img {
    max-height: 280px;
  }

  .floating-cards {
    margin-top: -60px;
  }

  .floating-cards .container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .fcard {
    padding: 20px 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.8rem;
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .promo__title,
  .cta-banner__title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.6rem;
  }

  .floating-cards .container {
    grid-template-columns: 1fr;
  }

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

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .about__contact {
    flex-direction: column;
  }

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