/* ========================
   VARIABLES
======================== */
:root {
  --primary:       #1264a3;
  --primary-dark:  #0d4f82;
  --primary-light: #1ea8c5;
  --accent:        #0ea5c9;
  --accent-dark:   #0886a5;
  --white:         #ffffff;
  --light-bg:      #eef7fc;
  --gray-bg:       #f4f8fb;
  --text-dark:     #0d2137;
  --text-body:     #374151;
  --text-muted:    #6b7a8d;
  --border-color:  #d8eaf5;
  --shadow-sm:     0 2px 12px rgba(18,100,163,.08);
  --shadow-md:     0 6px 30px rgba(18,100,163,.14);
  --radius:        12px;
  --radius-lg:     20px;
}

/* ========================
   RESET
======================== */
html, body {
  overflow-x: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ========================
   UTILITIES
======================== */
.text-accent  { color: var(--accent) !important; }
.bg-gray      { background-color: var(--gray-bg); }
.text-white-75{ color: rgba(255,255,255,.8); }

.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.22;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .section-title { font-size: 1.5rem; }
  .py-section    { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ========================
   BUTTONS
======================== */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  transition: all .2s;
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-blue-strong {
  background-color: #083d6a;
  border-color: #083d6a;
  color: var(--white) !important;
  font-weight: 700;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.btn-blue-strong:hover {
  background-color: #062e52;
  border-color: #062e52;
  transform: translateY(-1px);
}
.text-blue-strong { color: #083d6a !important; }

.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: var(--white) !important;
  font-weight: 700;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover {
  background-color: #1ebe5a;
  border-color: #1ebe5a;
  transform: translateY(-1px);
}

/* ========================
   BADGES
======================== */
.badge-kicker {
  display: inline-block;
  background: rgba(18,100,163,.12);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  letter-spacing: .04em;
}
.badge-kicker-light {
  display: inline-block;
  background: rgba(14,165,201,.2);
  color: #7de3f5;
  font-size: .82rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  letter-spacing: .04em;
}

/* ========================
   TOPBAR
======================== */
.topbar {
  background-color: var(--primary-dark);
  font-size: .85rem;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12);
  border-radius: 50px;
  padding: .2rem .75rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.topbar-item:hover {
  background: rgba(255,255,255,.28);
  color: var(--white);
}
.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s;
}
.topbar-social:hover {
  background: rgba(255,255,255,.28);
  color: var(--white);
}

/* ========================
   NAVBAR
======================== */
#mainNav {
  box-shadow: 0 1px 8px rgba(18,100,163,.07);
  transition: box-shadow .3s;
}
#mainNav.scrolled {
  box-shadow: 0 3px 20px rgba(18,100,163,.13) !important;
}
#mainNav .nav-link {
  color: var(--text-dark) !important;
  font-size: .95rem;
  padding-left: .7rem;
  padding-right: .7rem;
  transition: color .2s;
}
#mainNav .nav-link:hover { color: var(--primary) !important; }
.logo-img { max-height: 90px; }

/* ========================
   HERO
======================== */
.hero-section {
  background: linear-gradient(145deg, rgba(238,247,252,.78) 0%, rgba(221,238,248,.72) 100%),
              url('images/hero.jpg') center center / cover no-repeat;
  padding: 3rem 0 2.5rem;
}
.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
}
@media (max-width: 1300px) {
  .hero-title  { font-size: 3rem; }
}
@media (max-width: 767px) {
  .hero-title  { font-size: 2.6rem; }
  .hero-section{ padding: 3rem 0; }
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 480px;
  font-weight: 500;
}
.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-checklist li {
  font-size: .95rem;
  margin-bottom: .5rem;
  font-weight: 500;
  color: var(--text-dark);
}
.hero-img {
  filter: drop-shadow(0 8px 24px rgba(18,100,163,.2));
  width: 100%;
  object-fit: cover;
}
.hero-float-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: .75rem 1.1rem;
  box-shadow: var(--shadow-md);
  font-size: .85rem;
  white-space: nowrap;
}

/* ========================
   STATS
======================== */
.stats-section  { background: var(--white); border-bottom: 2px solid var(--border-color); }
.stats-tagline  { font-size: 1.3rem; font-weight: 500; color: var(--text-dark); letter-spacing: -.01em; }
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
}
.stat-icon-img  { width: 70px; height: 70px; object-fit: contain; }
.stat-label     { font-size: .88rem; color: var(--text-body); }
.stat-label strong { font-size: 1rem; }
.stat-top       { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: .1rem; }

/* ========================
   SWIPER GLOBAL
======================== */
.swiper-button-prev,
.swiper-button-next       { color: var(--primary) !important; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ========================
   SERVICIOS HEADER
======================== */
.servicios-header          { flex-wrap: wrap; gap: 1.5rem 2rem; }
.servicios-header-title    { flex: 0 0 auto; }
.servicios-header-desc     { flex: 1 1 200px; font-size: .97rem; line-height: 1.6; max-width: 420px; }
.swiper-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.swiper-nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .servicios-header-desc { display: none; }
}

/* ========================
   SERVICE CARDS
======================== */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(18,100,163,.12);
  overflow: hidden;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(18,100,163,.2);
}
.service-card-img-wrap { position: relative; }
.service-card-img {
  width: 100%;
  height: 293px;
  object-fit: cover;
}
.service-badge-top {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--accent);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 50px;
  letter-spacing: .03em;
  pointer-events: none;
}
.service-card-body  { padding: 1.5rem; text-align: center; }
.service-card-body .btn { padding: .55rem 1.8rem; font-size: 1rem; }
.service-card-body .btn .fab { font-size: 1.2rem; vertical-align: middle; margin-right: .45rem; }
.service-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.service-card-body p {
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ========================
   PACAL
======================== */
.pacal-section {
  background: var(--white);
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.pacal-badge {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: fit-content;
  margin: 0 auto;
}
.pacal-img {
  height: 110px;
  width: auto;
  object-fit: contain;
}
.pacal-divider {
  width: 3px;
  height: 80px;
  background: #c5d4e0;
  border-radius: 2px;
  flex-shrink: 0;
}
.pacal-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.pacal-text strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}
.pacal-text span {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.7;
}
@media (max-width: 575px) {
  .pacal-badge {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .pacal-divider {
    width: 60px;
    height: 3px;
  }
  .pacal-text span { max-width: 100%; }
}

/* ========================
   VIDEO
======================== */
.video-section { background: var(--white); }

/* Lightbox modal */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vmodal[hidden] { display: none; }
.vmodal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 35, .82);
  backdrop-filter: blur(3px);
}
.vmodal-box {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: vmodal-in .22s ease;
}
@keyframes vmodal-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
.vmodal-video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 80vh;
}
.vmodal-inner {
  position: relative;
  z-index: 1;
  width: min(860px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.vmodal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.vmodal-close:hover { background: rgba(255,255,255,.35); }

.video-split {
  display: flex;
  min-height: 480px;
}

/* Mitad izquierda */
.video-left {
  flex: 0 0 58%;
  position: relative;
  overflow: hidden;
  background: #000;
}
.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  isolation: isolate;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  transition: transform .2s, background .2s;
  z-index: 2;
}
.video-play-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(18,100,163,.5);
  animation: pulse-ring 2s ease-out infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.9); opacity: 0;  }
}
.video-play-btn:hover {
  transform: scale(1.08);
  background: #fff;
}

/* Mitad derecha */
.video-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem;
  background: var(--light-bg);
}

.video-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
}

.video-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.video-checklist li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .98rem;
  font-weight: 600;
  color: var(--text-dark);
}
.video-checklist li .fas {
  color: var(--primary);
  font-size: .85rem;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .video-split { flex-direction: column; }
  .video-left  { flex: none; height: 320px; }
  .video-right { padding: 3rem 2rem; }
  .video-subtitle { max-width: 100%; }
}
@media (max-width: 575px) {
  .video-left  { height: 240px; }
  .video-right { padding: 2rem 1.25rem; }
}

/* ========================
   PASOS
======================== */
.pasos-section {
  background: linear-gradient(135deg, rgba(13,79,130,.88) 0%, rgba(30,168,197,.82) 100%),
              url('images/banner-1.jpg') center center / cover no-repeat;
}
.paso-card {
  background: rgba(0,20,50,.45);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  color: var(--white);
  height: 100%;
  backdrop-filter: blur(4px);
}
.paso-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 52px;
  text-align: center;
}
.paso-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.paso-desc {
  font-size: .92rem;
  font-weight: 500;
  opacity: .95;
  margin-bottom: 0;
}

/* ========================
   VENTAJAS
======================== */
.ventaja-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.ventaja-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ventaja-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ventaja-icon-img { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.ventaja-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .4rem;
}
.ventaja-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========================
   DOMICILIO
======================== */
.domicilio-section {
  position: relative;
  background: linear-gradient(135deg, #0d3d6e 0%, var(--primary) 100%);
}
.domicilio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/demo-marketing-dot.svg') center center / 26px 26px repeat;
  opacity: .18;
  pointer-events: none;
}
.domicilio-section .section-title { color: var(--white); }

/* ========================
   SUCURSALES
======================== */
.sucursal-map-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
  margin: -1.75rem -1.75rem 1.25rem;
  width: calc(100% + 3.5rem);
}
.sucursal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(18,100,163,.12);
  overflow: hidden;
  border-top: 4px solid var(--primary);
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.sucursal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.sucursal-letra {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 44px;
  text-align: center;
  margin-bottom: .75rem;
}
.sucursal-name {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .5rem;
  line-height: 1.4;
}
.sucursal-name span {
  display: block;
  color: var(--primary);
  font-weight: 700;
}
.sucursal-addr {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========================
   FAQ ACCORDION
======================== */
.faq-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius) !important;
  margin-bottom: .6rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  font-size: 1rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--light-bg);
  box-shadow: none;
}
.faq-accordion .accordion-body {
  font-size: .95rem;
  color: var(--text-muted);
}


/* ========================
   CTA FINAL
======================== */
.cta-section {
  background: linear-gradient(135deg, rgba(13,79,130,.88) 0%, rgba(18,100,163,.82) 100%),
              url('images/banner-2.jpg') center center / cover no-repeat;
}
.cta-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: .25rem;
}
@media (max-width: 767px) {
  .cta-title { font-size: 1.6rem; }
}

/* ========================
   FOOTER
======================== */
.footer              { background-color: #0d2137; color: rgba(255,255,255,.78); }
.footer-logo         { max-height: 90px; }
@media (max-width: 767px) {
  .footer .col-12    { text-align: center; }
  .footer-list       { display: inline-block; text-align: left; }
}
.footer-heading      { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.footer-list li      { font-size: .9rem; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s;
}
.footer-social-link:hover { background: var(--accent); color: var(--white); }
.footer-social-lg {
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
}
.topbar-sep { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer-divider      { border-color: rgba(255,255,255,.12); }
.footer-copy         { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-link         { color: var(--accent); text-decoration: none; }
.footer-link:hover   { color: var(--accent-dark); text-decoration: underline; }

/* ========================
   320px FIXES
======================== */
@media (max-width: 480px) {
  /* Hero button: reducir font para evitar 3 líneas */
  #hero .btn-lg {
    font-size: 1rem;
    padding: .5rem .9rem;
  }

  /* Stats tagline */
  .stats-tagline { font-size: 1.1rem; }

  /* Hero title ligeramente menor */
  .hero-title { font-size: 2.1rem; }

  /* Servicios header: botones centrados al caer en segunda fila */
  .servicios-header {
    justify-content: space-between;
    align-items: flex-start;
  }
  .servicios-header > div:last-child {
    width: 100%;
    justify-content: center;
  }
}
