/* === Reset & Base === */
*,*::before,*::after{box-sizing:border-box}
:root{
  --brand:#1d5ed8; --brand-2:#2aa7ff; --accent:#d71920;
  --bg:#f6f8ff; --ink:#0b1b40; --muted:#5c6a92;
  --border:#e3e9fb; --card:#ffffff;
}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6}
a{text-decoration:none;color:var(--brand)}
img{max-width:100%;display:block;border-radius:12px}
.container{max-width:1180px;margin:0 auto;padding:0 20px}
.section{padding:48px 0}
.section--alt{background:#fff}
.lead{color:var(--muted)}

/* Layout helpers */
.grid{display:grid;gap:22px}
.grid.two{grid-template-columns:1.2fr .8fr}
.grid.two.align-start{align-items:start}
@media (max-width:900px){.grid.two{grid-template-columns:1fr}}

/* Topbar */
.topbar{background:#0a1f57;color:#eaf1ff;font-size:14px}
.topbar__row{display:flex;align-items:center;justify-content:space-between;padding:8px 0}
.topbar__cta a{color:#eaf1ff;margin-left:14px}

/* Nav */
.nav{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid var(--border)}
.nav__row{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand__logo-img{width:72px;height:72px;border-radius:10px;object-fit:contain;background:none}
.brand__name{font-family:Orbitron,Inter,sans-serif;font-weight:700;font-size:28px;letter-spacing:1px;color:#0a1f57;margin:0}
.menu a{margin-left:18px;color:#21325b}
.menu a.active,.menu a:hover{color:var(--brand)}
.cta{display:flex;gap:10px;align-items:center}

/* Flags */
.flag-strip{background:#0f2a73;border-top:1px solid rgba(255,255,255,.08)}
.flag-strip__row{display:flex;gap:10px;align-items:center;padding:6px 0}
.flag{width:28px;height:18px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.35),0 1px 4px rgba(0,0,0,.25)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:10px;border-radius:10px;padding:12px 16px;border:1px solid var(--border);font-weight:600;color:#21325b;background:#fff;cursor:pointer;transition:.2s}
.btn:hover{filter:brightness(1.04)}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-outline{background:#fff;border-color:var(--brand);color:var(--brand)}
.btn-accent{background:var(--accent);border-color:var(--accent);color:#fff}
.actions{display:flex;gap:10px;flex-wrap:wrap}

/* Hero */
.hero{position:relative;isolation:isolate;background:#0a1f57;color:#fff}
.hero--image .hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.25;pointer-events:none;} /* fix clicks */
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,31,87,.72),rgba(10,31,87,.52));pointer-events:none;} /* fix clicks */
.hero__content{text-align:center;position:relative;z-index:1;padding:72px 0} /* ensure above overlay */
.hero__title{font-family:Orbitron,Inter,sans-serif;font-size:40px;line-height:1.15;margin:0 0 10px;color:#fff}
.hero__title span{color:#b8d7ff}
.hero__actions{display:flex;justify-content:center;gap:12px;margin:16px 0 10px;flex-wrap:wrap}
.hero__stats{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:12px;margin:18px auto 0;max-width:920px}
.stat{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:12px;text-align:center}
.stat strong{display:block;font-size:20px}
.stat span{font-size:12px;color:#cfe2ff}
@media (max-width:720px){.hero__title{font-size:30px}.hero__stats{grid-template-columns:1fr 1fr}}

/* Promo banner */
.banner{background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.banner__row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;flex-wrap:wrap}
.banner strong{color:#21325b}
.banner b{color:var(--accent)}
.banner .btn-accent{background:var(--accent);border-color:var(--accent);color:#fff}
.banner-img{width:320px;height:auto;flex:0 0 auto;border-radius:10px} /* prevent distortion */
@media (max-width:720px){.banner-img{width:220px}}

/* Center promo text below image */
.promo-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.promo-text strong {
  color: #0b1b40;
}

.promo-text b {
  color: #d71920;
}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px;box-shadow:0 4px 12px rgba(14,33,80,.06)}
.card h3{margin:0 0 6px}
.muted{color:var(--muted)}

/* Table */
.table{width:100%;border-collapse:separate;border-spacing:0}
.table thead th{background:#f2f6ff;color:#21325b;font-weight:700;border:1px solid var(--border);padding:12px}
.table tbody td{border:1px solid var(--border);padding:12px}
.table tbody tr:nth-child(odd){background:#fcfdff}
.tag{font-size:12px;border:1px solid var(--border);padding:2px 8px;border-radius:999px;color:#21325b;background:#f2f6ff}
.tag--promo{border-color:rgba(230,57,70,.35);background:#ffe9ec;color:#a0131e}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.step{background:#ffffff;border:1px solid var(--border);border-radius:12px;padding:16px}
.step .num{width:34px;height:34px;border-radius:8px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#ffffff;display:inline-grid;place-items:center;font-weight:800;margin-bottom:8px}
@media (max-width:900px){.steps{grid-template-columns:1fr 1fr}}

/* Contact section (new) */
.contact-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
@media (max-width:900px){.contact-wrap{grid-template-columns:1fr}}
.form input,.form textarea{width:100%;margin-top:6px;padding:12px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--ink)}
.form textarea{resize:vertical}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:700px){.form .row{grid-template-columns:1fr}}
.form .actions{margin-top:10px}

/* Facebook */
.social{background:#ffffff}
.social .card{text-align:center}
.social .social-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}

/* Footer */
.footer{border-top:1px solid var(--border);background:#fff}
.footer__row{display:flex;align-items:center;justify-content:space-between;padding:18px 0;color:#5a6aa0;flex-wrap:wrap;gap:8px}
.footer__cta .link{margin-left:12px;color:#1b2c5a}
/* === Parallax background for the whole contact section (outside the cards) === */
#contacto.section {
  position: relative;
  background: url("assets/office.jpeg") center/cover no-repeat fixed;
  z-index: 1;
}

#contacto.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 50, 0.4); /* subtle overlay for contrast */
  z-index: 0;
}

#contacto.section .container {
  position: relative;
  z-index: 2;
}

#contacto.section .card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.4);
}

/* === Photo Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* === Price section photo === */
.price-photo {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === Price Section Cleanup === */
.price-section {
  align-items: center;
  margin-bottom: 32px;
}

.price-left {
  text-align: center;
}

.price-photo {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin: 0 auto;
}

.price-help {
  text-align: left;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 1px solid rgba(227,233,251,0.8);
}

.table-wrap {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .price-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .price-help {
    margin-top: 16px;
  }
}

/* === Gallery Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.lightbox.active {
  display: flex;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  font-weight: 300;
  transition: 0.2s;
}

.close-btn:hover {
  color: #ffd100;
}

/* === Lightbox Navigation Enhancements === */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: 0.25s;
  padding: 10px;
}

.nav-arrow:hover {
  color: #ffd100;
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
  left: 30px;
}

.nav-arrow.right {
  right: 30px;
}

/* Adjust for small screens */
@media (max-width: 600px) {
  .nav-arrow {
    font-size: 36px;
    left: 15px;
    right: 15px;
  }
}


/* === Shared parallax background for 'Cómo funciona' and 'Facebook' sections === */
#como.section,
#social.section {
  position: relative;
  background: url("assets/office.jpeg") center/cover no-repeat fixed;
  z-index: 1;
}

#como.section {
  color: #0b1b40; /* main text color */
}

#como.section h2,
#como.section h3,
#como.section p,
#como.section strong,
#como.section .muted {
  color: #0b1b40 !important;
}

#como.section .step .num {
  background: linear-gradient(135deg, #1d5ed8, #2aa7ff);
  color: #fff;
}

.hero-flags {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.hero-flags img {
  width: 38px;
  height: 26px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.hero-flags img:hover {
  transform: scale(1.08);
}


/* === Enhanced Price Table === */
.table-wrap {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  margin-top: 24px;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
}

.table thead th {
  background: linear-gradient(90deg, #1d5ed8, #2aa7ff);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid #e3e9fb;
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:nth-child(odd) {
  background: #f9fbff;
}

.table tbody tr:hover {
  background: rgba(29, 94, 216, 0.08);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e6ebf9;
  color: #0b1b40;
}

.table td:first-child {
  font-weight: 600;
  color: #1d5ed8;
}

.tag {
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f6ff;
  color: #21325b;
}

.tag--promo {
  border-color: #d71920;
  background: #ffe9ec;
  color: #a0131e;
}


/* === Floating Buttons (side-by-side on mobile) === */
.float-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 999;
}

.float-buttons a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}

.float-buttons a:hover {
  transform: scale(1.08);
}

.float-buttons .whatsapp {
  background: #25d366;
}

.float-buttons .messenger {
  background: #0084ff;
}

.float-buttons img {
  width: 32px;
  height: 32px;
}

/* === Ensure Promo Section Stays Centered === */
.banner {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.banner__row {
  display: flex;
  flex-direction: column;
  align-items: center;          /* Centers horizontally */
  justify-content: center;      /* Centers vertically */
  text-align: center;           /* Centers text content */
  gap: 16px;
  padding: 24px 0;
}

.banner-img {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.banner div {
  max-width: 600px;             /* Prevents text from stretching too wide */
  line-height: 1.5;
}

.banner .btn-accent {
  margin-top: 8px;
}

/* Responsive improvements */
@media (min-width: 900px) {
  .banner__row {
    flex-direction: row;
    text-align: left;
    justify-content: center;    /* Keeps center alignment even on wide screens */
  }

  .banner div {
    text-align: left;
    max-width: 540px;
  }

  .banner-img {
    margin-right: 20px;
  }
}


/* === Promo Image Hover Animation === */
.banner-img {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.banner-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Optional: Animate the button subtly on hover too */
.banner .btn-accent {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.banner .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(215, 25, 32, 0.35);
}

/* === Mobile Fixes for Parallax Backgrounds & Layout === */

/* Desktop parallax (kept fixed) */
#contacto.section,
#como.section,
#social.section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Mobile fallback — prevent background breakage on iOS/Android */
@media (max-width: 900px) {
  #contacto.section,
  #como.section,
  #social.section {
    background-attachment: scroll !important;
    background-position: center top;
    background-size: cover;
  }

  /* Hero responsiveness */
  .hero__title {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  /* Promo banner centering */
  .banner__row {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .banner-img {
    max-width: 90%;
    margin: 0 auto;
  }

  /* Steps responsiveness */
  .steps {
    grid-template-columns: 1fr 1fr;
  }

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

/* Global scroll smoothness + overflow fix */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Image safety for mobile scaling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* === Improved Mobile Responsiveness for Zuleta === */

/* Global mobile adjustments */
@media (max-width: 768px) {

  /* --- General layout reset --- */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }

  section {
    padding: 40px 18px;
  }

  /* --- Header / Nav --- */
  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  header img {
    max-width: 160px;
  }

  nav.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .topbar__cta {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .hero__title {
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
  }

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

  .hero-flags {
    justify-content: center;
    margin-top: 10px;
  }

  /* --- Facebook & Messenger cards --- */
  .card, .social-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 20px 14px;
    text-align: center;
  }

  .card h2, .social-card h2 {
    font-size: 20px;
  }

  .card p, .social-card p {
    font-size: 15px;
    line-height: 1.45;
  }

  /* --- Buttons --- */
  .btn, .btn-accent, .btn-outline {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    font-size: 16px;
    padding: 12px 0;
    text-align: center;
  }

  /* --- Footer --- */
  footer {
    text-align: center;
    flex-direction: column;
    gap: 10px;
  }

  footer .footer__cta {
    flex-direction: column;
    gap: 8px;
  }

  footer .link {
    font-size: 15px;
  }

  /* --- Floating buttons (WhatsApp + Messenger) --- */
  .whatsapp-float, .messenger-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
  }

  .messenger-float {
    bottom: 85px; /* stack neatly */
  }
}

/* Extra tiny devices (under 400px width) */
@media (max-width: 400px) {
  .hero__title {
    font-size: 20px;
  }

  .btn, .btn-accent, .btn-outline {
    font-size: 14px;
    padding: 10px 0;
  }

  .card, .social-card {
    padding: 16px 12px;
  }
}
/* === Responsive scroll for price table === */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  background: #fff;
}

/* Hide ugly scrollbar on iPhones but keep scrollability */
.table-wrap::-webkit-scrollbar {
  height: 6px;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Adjust the table to fit smaller screens */
.table {
  min-width: 600px; /* ensures it can scroll smoothly */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
}

/* Responsive tweaks for smaller text */
@media (max-width: 600px) {
  .table thead th {
    font-size: 14px;
    padding: 10px;
  }
  .table td {
    font-size: 14px;
    padding: 10px;
  }
}

/* === Mobile Navigation Toggle === */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #0b1b40;
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  nav.menu {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  nav.menu.active {
    display: flex;
  }

  nav.menu a {
    padding: 10px 0;
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header img {
    max-width: 140px;
    height: auto;
    margin-bottom: 10px;
  }

  header .btn {
    margin-top: 6px;
    font-size: 14px;
    padding: 10px 18px;
  }

  .topbar__cta, .topbar {
    flex-wrap: wrap;
    text-align: center;
    gap: 4px;
  }
}


/* === Navigation Header Fixes === */

/* Desktop layout stays as-is */
header.nav {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1000;
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 20px;
}

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

.brand__logo-img {
  border-radius: 8px;
}

.brand__name {
  font-size: 20px;
  font-weight: 700;
  color: #0b1b40;
  line-height: 1.2;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #1d2b5f;
}

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

nav.menu a {
  text-decoration: none;
  color: #0b1b40;
  font-weight: 600;
  transition: color 0.25s ease;
}

nav.menu a:hover,
nav.menu a.active {
  color: #1d5ed8;
}

/* CTA button (WhatsApp quote) */
.cta .btn-primary {
  background: #1d5ed8;
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cta .btn-primary:hover {
  background: #144bb0;
  transform: translateY(-2px);
}

/* === MOBILE MENU === */
@media (max-width: 900px) {
  .nav__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  nav.menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #f9fbff;
    border-top: 1px solid #e3e9fb;
    padding: 14px 0;
    margin-top: 10px;
  }

  nav.menu.active {
    display: flex;
  }

  nav.menu a {
    padding: 10px 0;
    font-size: 16px;
  }

  .cta {
    margin-top: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .cta .btn-primary {
    width: 90%;
    text-align: center;
  }
}


