/* =========================================================
   AlexMart Shipping LLC — Estilos propios
   ========================================================= */

:root {
  --heading-color: #0b2e4f;
  --default-color: #45566b;
  --accent-color: #2089c5;
  --accent-color-dark: #12628f;
  --accent-color-light: #e8f4fb;
  --contrast-color: #ffffff;
  --success-color: #1fa971;
  --warning-color: #e5a531;
  --danger-color: #e0503d;
  --surface-color: #ffffff;
  --bg-soft: #f4f8fb;
  --border-color: #e3e9ef;
  --font-heading: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --shadow-sm: 0 4px 14px rgba(11, 46, 79, .06);
  --shadow-md: 0 10px 30px rgba(11, 46, 79, .10);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
section[id] { scroll-margin-top: 120px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--default-color);
  background: var(--surface-color);
  line-height: 1.7;
  overflow-x: hidden;
  scrollbar-color: var(--accent-color) var(--bg-soft);
  scrollbar-width: thin;
}

/* Barra de scroll a la medida (Chrome/Edge/Safari) */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  margin: 0 0 .5rem;
}

p { margin: 0 0 1rem; }
a { text-decoration: none; color: var(--accent-color); }
img { max-width: 100%; }
.container { max-width: 1220px; }

.section { padding: 90px 0; }
.section-badge {
  display: inline-block;
  background: var(--accent-color-light);
  color: var(--accent-color-dark);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header { max-width: 640px; margin: 0 auto 3rem; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-header p { color: var(--default-color); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.7rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-accent { background: var(--accent-color); color: #fff; }
.btn-accent:hover { background: var(--accent-color-dark); color: #fff; transform: translateY(-2px); }
.btn-accent:disabled, .btn-accent.disabled {
  background: var(--accent-color); color: #fff; border-color: var(--accent-color); opacity: .85;
}
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline-accent { border-color: var(--accent-color); color: var(--accent-color); background: transparent; }
.btn-outline-accent:hover { background: var(--accent-color); color: #fff; }

/* =========== Preloader =========== */
#preloader {
  position: fixed; inset: 0; z-index: 999999;
  background: var(--heading-color);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: var(--accent-color);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========== Header =========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 10px 0;
  background: var(--heading-color);
  transition: box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  padding: 6px 0;
}
.site-header .container { max-width: 1760px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-full-img { height: 120px; width: auto; transition: height .3s ease; }
.site-header.scrolled .logo-full-img { height: 88px; }

@media (max-width: 767px) {
  .logo-full-img { height: 72px; }
  .site-header.scrolled .logo-full-img { height: 58px; }
}

.navmenu ul { display: flex; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.navmenu a {
  color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; white-space: nowrap;
  position: relative; padding: 6px 0; transition: color .3s;
}
.navmenu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--accent-color); transition: width .3s;
}
.navmenu a:hover, .navmenu a.active { color: var(--accent-color); }
.navmenu a:hover::after, .navmenu a.active::after { width: 100%; }
.mobile-nav-toggle { display: none; font-size: 1.6rem; color: #fff; cursor: pointer; }

/* Submenu "Ayuda y más" */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  cursor: default;
  color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; white-space: nowrap; padding: 6px 0;
}
.nav-dropdown-toggle i { font-size: .65rem; margin-left: .35rem; vertical-align: 1px; transition: transform .2s ease; }
.nav-dropdown:hover .nav-dropdown-toggle, .nav-dropdown:focus-within .nav-dropdown-toggle { color: var(--accent-color); }
.nav-dropdown:hover .nav-dropdown-toggle i, .nav-dropdown:focus-within .nav-dropdown-toggle i { transform: rotate(180deg); }
.navmenu .nav-dropdown-menu {
  display: block;
  position: absolute; top: 100%; left: 0; margin-top: .9rem; min-width: 230px;
  background: var(--heading-color); border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  padding: .4rem; list-style: none; z-index: 1001;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: .6rem .8rem; border-radius: 8px; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.85); }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Selector de idioma ES / EN */
.lang-toggle {
  display: flex; align-items: center; background: rgba(255,255,255,.1);
  border-radius: 50px; padding: 3px; flex-shrink: 0;
}
.navmenu { flex-shrink: 1; min-width: 0; }
@media (min-width: 992px) and (max-width: 1300px) {
  .navmenu ul { gap: 1.1rem; }
  .navmenu a { font-size: .88rem; }
}
.lang-btn {
  border: none; background: transparent; color: rgba(255,255,255,.7);
  font-family: var(--font-heading); font-weight: 700; font-size: .78rem;
  letter-spacing: .03em; padding: .4rem .8rem; border-radius: 50px; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.lang-btn.active { background: var(--accent-color); color: #fff; }
.lang-btn:not(.active):hover { color: #fff; }

@media (max-width: 991px) {
  .navmenu { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; background: #fff;
    padding: 90px 24px 24px; transform: translateX(100%); transition: transform .35s ease; box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 999; }
  .navmenu.open { transform: translateX(0); }
  .navmenu ul { flex-direction: column; gap: 1.1rem; }
  .navmenu a { color: var(--heading-color); }
  .mobile-nav-toggle { display: block; z-index: 1001; }
  .nav-dropdown-toggle { color: var(--heading-color); }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; padding: .3rem 0 0 1rem; margin: .4rem 0 0;
  }
  .nav-dropdown-menu a { color: var(--default-color); font-size: .9rem; font-weight: 600; padding: .4rem 0; }
}

@media (max-width: 400px) {
  .lang-btn { padding: .35rem .6rem; font-size: .72rem; }
}

/* =========== Hero =========== */
.hero-section {
  position: relative;
  background:
    radial-gradient(640px 480px at 18% 55%, rgba(32, 137, 197, .3), transparent 70%) no-repeat,
    linear-gradient(100deg, rgba(11, 46, 79, .88) 0%, rgba(11, 46, 79, .82) 25%, rgba(11, 46, 79, .72) 48%, rgba(11, 46, 79, .48) 72%, rgba(11, 46, 79, .22) 100%),
    url('https://images.unsplash.com/photo-1724597500306-a4cbb7d1324e?fm=jpg&q=60&w=1920&auto=format&fit=crop&ixlib=rb-4.1.0') center/cover no-repeat;
  padding: 170px 0 130px;
  overflow: hidden;
}
@media (max-width: 576px) {
  .hero-section {
    background:
      radial-gradient(420px 360px at 30% 30%, rgba(32, 137, 197, .3), transparent 70%) no-repeat,
      linear-gradient(100deg, rgba(11, 46, 79, .9) 0%, rgba(11, 46, 79, .82) 35%, rgba(11, 46, 79, .68) 60%, rgba(11, 46, 79, .5) 100%),
      url('https://images.unsplash.com/photo-1724597500306-a4cbb7d1324e?fm=jpg&q=55&w=900&auto=format&fit=crop&ixlib=rb-4.1.0') center/cover no-repeat;
  }
}
.hero-section::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent-color-dark), var(--accent-color), var(--accent-color-dark));
}

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); color: #cfe8f8;
  padding: .4rem 1rem; border-radius: 50px; font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero-copy h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.2; margin-bottom: 1.1rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-copy .lead { color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 520px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.hero-address {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); border-radius: 14px; padding: .75rem 1rem;
  margin: 1.4rem 0 0; max-width: 520px;
}
.hero-address-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-color); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0;
}
.hero-address-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.hero-address-label { color: #9fd0ee; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hero-address-info .contact-address-text { color: #fff; font-size: .92rem; font-weight: 700; margin: 0; line-height: 1.3; }
.hero-address-copy {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.hero-address-copy:hover { background: var(--accent-color); border-color: var(--accent-color); transform: translateY(-2px); }

@media (max-width: 480px) {
  .hero-address { padding: .7rem .85rem; gap: .7rem; }
  .hero-address-info .contact-address-text { font-size: .85rem; }
}

.hero-actions { display: flex; gap: 1rem; margin: 0 0 2.2rem; flex-wrap: wrap; }
.hero-mini-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-mini-stats strong { display: block; color: #fff; font-family: var(--font-heading); font-size: 1.3rem; }
.hero-mini-stats span { color: rgba(255,255,255,.7); font-size: .85rem; }

/* Barra de rastreo integrada */
.hero-search-bar {
  display: flex; align-items: center; gap: .7rem;
  background: #fff; border-radius: 50px; padding: .5rem .5rem .5rem 1.4rem;
  box-shadow: var(--shadow-md); max-width: 560px; margin: 1.8rem 0 2rem;
}
.hero-search-bar i.bi-upc-scan { color: var(--accent-color); font-size: 1.25rem; flex-shrink: 0; }
.hero-search-bar input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: .98rem; font-weight: 600; color: var(--heading-color);
}
.hero-search-bar input::placeholder { color: #9aa7b4; font-weight: 500; }
.hero-search-bar .btn { white-space: nowrap; padding: .75rem 1.7rem; flex-shrink: 0; }
.btn-spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff; animation: spin .7s linear infinite; display: inline-block; flex-shrink: 0;
}
.input-invalid { outline: 2px solid var(--danger-color) !important; animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-6px);} 75%{transform:translateX(6px);} }

@media (max-width: 480px) {
  .hero-search-bar { flex-wrap: wrap; border-radius: 20px; padding: 1rem; }
  .hero-search-bar input { flex-basis: 100%; order: 1; padding: .5rem 0; }
  .hero-search-bar .btn { order: 2; width: 100%; margin-top: .3rem; }
}

/* Collage circular + panel de fondo */
.hero-visual { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin: 0 auto; }

.hero-visual-backdrop {
  position: absolute; inset: 8%; z-index: 0;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-visual-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.15); }
.hero-visual-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(32, 137, 197, .35), rgba(4, 14, 26, .8));
}

.hero-circle-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, .5));
}

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 140px 0 90px; }
  .hero-visual { margin: 2.5rem auto 0; max-width: 320px; }
}

/* =========== Modal Rastreo =========== */
#modalRastreo .modal-content { border: none; border-radius: 20px; overflow: hidden; }
#modalRastreo .modal-header { background: linear-gradient(120deg, var(--heading-color), var(--accent-color)); color: #fff; padding: 1.3rem 1.6rem; border: none; }
#modalRastreo .modal-title { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; }
#modalRastreo .modal-body { padding: 1.8rem; background: var(--bg-soft); }
#modalRastreo .modal-footer { border: none; background: var(--bg-soft); padding: 0 1.8rem 1.8rem; }
#modalRastreo h5 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; color: var(--heading-color); }

.guide-panel {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  border: 1px solid var(--border-color); margin-bottom: 1.5rem;
}
.guide-barcode { flex: 0 0 auto; }
.guide-barcode canvas { max-width: 200px; }
.guide-info { text-align: center; flex: 1 1 200px; }
.guide-info h6 { color: var(--accent-color); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; margin-bottom: .2rem; }
.guide-info h3 { margin: 0; font-size: 1.4rem; letter-spacing: .03em; }
.guide-info p { color: #8b98a5; font-size: .85rem; margin: 0; }
.guide-type { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.badge-pill { background: var(--accent-color); color: #fff; padding: .4rem 1.1rem; border-radius: 50px; font-size: .82rem; font-weight: 600; }
.status-pill { background: var(--success-color); color: #fff; padding: .35rem 1rem; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.status-pill.pending { background: var(--warning-color); }
.status-pill.transit { background: var(--accent-color); }

.info-card { background: #fff; border-radius: 14px; border: 1px solid var(--border-color); overflow: hidden; }
.info-card-header {
  padding: .9rem 1.3rem; font-weight: 700; text-transform: uppercase; font-size: .82rem;
  color: var(--accent-color); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: .5rem;
}
.info-card-body { padding: 1rem 1.3rem; font-size: .92rem; }
.info-card-body p { margin-bottom: .4rem; }

.products-panel { background: #fff; border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--border-color); margin-bottom: .5rem; }
.products-table { margin-bottom: 0; }
.products-table th { color: #8b98a5; font-size: .78rem; text-transform: uppercase; border-bottom: 2px solid var(--border-color); }
.products-table td { vertical-align: middle; font-size: .92rem; }
.products-table tfoot td { border-top: 2px solid var(--border-color); border-bottom: none; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--border-color); position: relative; }
.timeline-item { position: relative; padding-bottom: 1.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-icon {
  position: absolute; left: -42px; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem;
  background: #b9c4cf; box-shadow: 0 0 0 4px var(--bg-soft);
}
.timeline-item.done .timeline-icon { background: var(--success-color); }
.timeline-item.current .timeline-icon { background: var(--accent-color); box-shadow: 0 0 0 4px var(--accent-color-light), 0 0 0 8px rgba(32,137,197,.15); }
.timeline-item h6 { margin-bottom: .15rem; font-size: .96rem; }
.timeline-item.pending h6, .timeline-item.pending p { color: #b0bac4; }
.timeline-item p { margin: 0; font-size: .82rem; color: #8b98a5; }

/* Map */
#map { width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow-sm); z-index: 0; }
.map-pin { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; box-shadow: 0 2px 8px rgba(0,0,0,.35); border: 2px solid #fff; }
.map-pin.origin { background: #12628f; }
.map-pin.dest { background: #1fa971; }
.map-pin.current { background: #e0503d; width: 36px; height: 36px; font-size: 1rem; animation: pulseMarker 1.6s ease-in-out infinite; }
@keyframes pulseMarker {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,80,61,.5), 0 2px 8px rgba(0,0,0,.35); }
  50% { box-shadow: 0 0 0 10px rgba(224,80,61,0), 0 2px 8px rgba(0,0,0,.35); }
}

/* =========== Why Us =========== */
.feature-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; font-weight: 500; color: var(--heading-color); }
.feature-list i { color: var(--success-color); margin-top: .2rem; }

.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-team-img { width: 100%; height: auto; display: block; }
.about-photo-badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(11, 46, 79, .88); color: #fff; backdrop-filter: blur(4px);
  padding: .6rem 1.2rem; border-radius: 50px; font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
}
.about-photo-badge i { color: var(--accent-color); }

.why-choose-highlights { margin-bottom: 4rem; }
.feature-box {
  background: #fff; border: 1px solid var(--border-color); border-radius: 18px; padding: 2rem 1.5rem; height: 100%;
  text-align: center; transition: transform .35s ease, border-color .35s ease;
}
.feature-box:hover { transform: translateY(-6px); border-color: var(--accent-color); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--accent-color-light); color: var(--accent-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 1.2rem;
}
.feature-box h4 { font-size: 1.1rem; }
.feature-box p { font-size: .9rem; margin: 0; }

/* =========== Filosofía Corporativa =========== */
.philosophy .section-header h3 { font-size: 1.5rem; color: var(--heading-color); }
.mv-card {
  background: linear-gradient(135deg, var(--heading-color), #123a5e);
  border-radius: var(--radius); padding: 2.2rem; height: 100%; color: #fff;
}
.mv-card i { font-size: 1.8rem; color: var(--accent-color); margin-bottom: 1rem; display: block; }
.mv-card h4 {
  color: #fff; font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 3px solid var(--accent-color); display: inline-block;
}
.mv-card p { color: rgba(255,255,255,.85); margin: 0; line-height: 1.75; }

.value-card {
  background: #fff; border-radius: 16px; padding: 1.8rem 1.4rem; height: 100%; text-align: center;
  border: 1px solid var(--border-color); transition: transform .3s ease, border-color .3s ease;
}
.value-card:hover { transform: translateY(-6px); border-color: var(--accent-color); }
.value-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent-color-light); color: var(--accent-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 1rem;
}
.value-card h5 { font-size: 1.02rem; color: var(--heading-color); }
.value-card p { font-size: .86rem; margin: 0; }

/* =========== Services =========== */
.services { background: var(--bg-soft); }
.service-card {
  position: relative; background: #fff; border-radius: 18px; overflow: visible; height: 100%;
  border: 1px solid var(--border-color); transition: transform .35s ease, border-color .35s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent-color); }
.service-photo { position: relative; height: 180px; overflow: hidden; border-radius: 18px 18px 0 0; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.service-card:hover .service-photo img { transform: scale(1.08); }
.service-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 46, 79, .65), transparent);
}
.service-icon {
  position: absolute; z-index: 2; top: 152px; left: 22px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent-color); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 6px 14px rgba(11, 46, 79, .4); border: 3px solid #fff;
  transition: transform .35s ease;
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-body { padding: 2.3rem 1.5rem 1.6rem; }
.service-body h4 { font-size: 1.08rem; }
.service-body p { margin: 0; font-size: .9rem; }

/* =========== Routes =========== */
.route-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); height: 100%; transition: transform .35s ease, border-color .35s ease; }
.route-card:hover { transform: translateY(-6px); border-color: var(--accent-color); }
.route-cover {
  height: 160px; display: flex; align-items: center; justify-content: center; position: relative; color: #fff;
  background-size: cover; background-position: center; background-color: var(--heading-color);
}
.route-badge { position: absolute; top: 12px; right: 12px; background: #fff; color: var(--heading-color); font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 50px; }
.route-badge.popular { background: var(--heading-color); color: #fff; }
.route-badge.featured { background: var(--accent-color-dark); color: #fff; }
.route-badge.new { background: var(--accent-color); color: #fff; }
.route-content { padding: 1.5rem; }
.route-content h4 { font-size: 1.15rem; }
.route-content p { font-size: .9rem; }
.route-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.route-tags span { background: var(--accent-color-light); color: var(--accent-color-dark); font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 50px; }
.route-footer { border-top: 1px solid var(--border-color); padding-top: .9rem; font-size: .82rem; color: #8b98a5; font-weight: 600; }

.routes-cta { text-align: center; margin-top: 3.5rem; background: var(--bg-soft); border-radius: 24px; padding: 3rem 2rem; }
.routes-cta h3 { font-size: 1.5rem; }
.routes-cta p { max-width: 560px; margin: 0 auto 1.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========== Banner Envíos Seguros =========== */
.photo-banner {
  position: relative; padding: 75px 0; text-align: center;
  background-size: cover; background-position: center; overflow: hidden;
}
.photo-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11, 46, 79, .82), rgba(4, 14, 26, .88));
}
.photo-banner .container { position: relative; z-index: 1; max-width: 720px; }
.photo-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .9rem; }
.photo-banner p { color: rgba(255, 255, 255, .9); font-size: 1.08rem; margin: 0; }
.photo-banner strong { color: #fff; }

/* =========== Nuestras Sucursales (mapa) =========== */
.branches-map h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1rem 0 1rem; }
.branches-map > .container > .section-header { margin-bottom: 2.5rem; }
#mapaSucursales { width: 100%; height: 420px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.branches-features { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.branches-features li { display: flex; align-items: flex-start; gap: 1rem; }
.branches-feature-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-color-light); color: var(--accent-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.branches-features strong { display: block; color: var(--heading-color); font-size: .96rem; }
.branches-features span { font-size: .86rem; color: var(--default-color); }
.map-pin-branch {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--danger-color);
  transform: rotate(-45deg); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.35); border: 2px solid #fff;
}
.map-pin-branch i { transform: rotate(45deg); color: #fff; font-size: .8rem; }

/* =========== Por Qué Elegirnos (detalle) =========== */
.why-choose-detail .section-header { max-width: 760px; }
@media (min-width: 650px) {
  .why-choose-detail .section-header h2 { white-space: nowrap; }
}
.wcd-item { display: flex; align-items: center; gap: 3.5rem; margin-bottom: 4.5rem; }
.wcd-item:last-child { margin-bottom: 0; }
.wcd-item--reverse { flex-direction: row-reverse; }
.wcd-photo { position: relative; flex: 0 0 42%; max-width: 42%; }
.wcd-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); display: block; }
.wcd-number {
  position: absolute; top: -14px; left: -14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-color); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-heading);
  box-shadow: 0 6px 14px rgba(11, 46, 79, .35);
}
.wcd-text { flex: 1; }
.wcd-text h3 { font-size: 1.35rem; position: relative; padding-bottom: .8rem; margin-bottom: .9rem; }
.wcd-text h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--accent-color); }
.wcd-text > p { margin-bottom: 1.1rem; }
.wcd-text ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.wcd-text ul li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: var(--default-color); }
.wcd-text ul i { color: var(--accent-color); width: 18px; text-align: center; flex-shrink: 0; }

@media (max-width: 767px) {
  .wcd-item, .wcd-item--reverse { flex-direction: column; gap: 1.8rem; }
  .wcd-photo { max-width: 100%; flex-basis: auto; }
}

/* =========== FAQ =========== */
.accordion-item { border: 1px solid var(--border-color); margin-bottom: 1rem; border-radius: 14px !important; overflow: hidden; }
.accordion-button { font-family: var(--font-heading); font-weight: 600; color: var(--heading-color); padding: 1.1rem 1.4rem; }
.accordion-button:not(.collapsed) { background: var(--accent-color-light); color: var(--accent-color-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-body { font-size: .92rem; padding: 1.1rem 1.4rem 1.4rem; }

/* =========== CTA =========== */
.cta { background: linear-gradient(135deg, #0b2e4f, #12628f); color: #fff; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 1.8rem; }
.cta-stat { text-align: center; }
.cta-stat i { font-size: 1.8rem; color: #7fd0ff; margin-bottom: .6rem; display: block; }
.cta-stat h4 { color: #fff; font-size: 1.15rem; }
.cta-stat p { color: rgba(255,255,255,.75); font-size: .85rem; margin: 0; }

/* =========== Contacto por Sucursal =========== */
.branch-contact { background: var(--bg-soft); }
.branch-card { background: #fff; border-radius: var(--radius); padding: 1.7rem 1.4rem; height: 100%; border: 1px solid var(--border-color); text-align: center; }
.branch-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.branch-tag { display: inline-block; font-size: .8rem; color: var(--default-color); margin-bottom: 1.6rem; }
.branch-contacts { list-style: none; margin: 0; padding: 0; text-align: left; }
.branch-contacts li {
  display: flex; align-items: center; gap: .7rem; padding: .9rem 0;
  border-top: 1px solid var(--border-color);
}
.branch-contact-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-color-light); color: var(--accent-color);
  display: flex; align-items: center; justify-content: center; font-size: .92rem; flex-shrink: 0;
}
.branch-contact-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.branch-contact-info strong { font-size: .92rem; color: var(--heading-color); }
.branch-contact-info span { font-size: .85rem; color: #9aa7b4; }
.branch-contact-action { color: #c3cdd6; font-size: 1.15rem; pointer-events: none; transition: color .2s; flex-shrink: 0; }
.branch-contact-action.active { color: #25d366; pointer-events: auto; }
.branch-contact-info span.fst-italic { color: #9aa7b4; }
.branch-contact-info span:not(.fst-italic) { color: var(--accent-color); font-weight: 600; font-size: .8rem; white-space: nowrap; }

.branch-contact-more { display: flex; justify-content: center; margin-top: 2.2rem; }
.branch-more-link {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--accent-color-dark); font-weight: 600; font-size: .92rem;
  padding: .8rem 1.6rem; border-radius: 50px;
  border: 2px solid var(--accent-color-light); transition: all .25s ease;
}
.branch-more-link:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); transform: translateY(-2px); }
.branch-more-arrow { animation: bounceDown 1.6s ease-in-out infinite; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* =========== Contact =========== */
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item i { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-color-light); color: var(--accent-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h6 { margin-bottom: .1rem; font-size: .95rem; }
.contact-item p { margin: 0; font-size: .88rem; color: var(--default-color); }
.contact-item p a { color: var(--accent-color-dark); font-weight: 700; font-size: .95rem; transition: color .2s ease; }
.contact-item p a:hover { color: var(--accent-color); }

.contact-item-highlight {
  background: var(--accent-color-light); border: 1px solid var(--accent-color);
  border-radius: 14px; padding: 1.1rem 1.2rem;
}
.contact-item-highlight i { background: var(--accent-color); color: #fff; }
.contact-item-highlight h6 { color: var(--accent-color-dark); text-transform: uppercase; font-size: .74rem; letter-spacing: .05em; font-weight: 700; }
.contact-address-text { font-weight: 700; color: var(--heading-color); font-size: 1rem; margin: 0 0 .6rem; }
.contact-address-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.contact-week-badge {
  display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--accent-color-dark);
  font-size: .74rem; font-weight: 700; padding: .35rem .8rem; border-radius: 50px;
}
.contact-copy-btn {
  display: inline-flex; align-items: center; gap: .4rem; background: none; border: none; color: var(--accent-color-dark);
  font-size: .78rem; font-weight: 600; cursor: pointer; padding: 0; transition: color .2s;
}
.contact-copy-btn:hover { color: var(--heading-color); text-decoration: underline; }

.contact-social { display: flex; gap: .7rem; margin-top: .5rem; }
.contact-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-color-light); color: var(--accent-color); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.contact-social a:hover { background: var(--accent-color); color: #fff; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border-color); }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--heading-color); margin-bottom: .3rem; display: block; }
.contact-form .form-control { border-radius: 10px; border: 2px solid var(--border-color); padding: .65rem .9rem; }
.contact-form .form-control:focus { border-color: var(--accent-color); box-shadow: none; }

/* =========== Footer =========== */
.site-footer { background: #081f35; color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { margin-bottom: 1.1rem; }
.footer-logo .logo-full-img { height: 50px; }
.site-footer p { font-size: .88rem; color: rgba(255,255,255,.6); }
.site-footer h6 { color: #fff; margin-bottom: 1.1rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .88rem; }
.site-footer ul a { color: rgba(255,255,255,.7); }
.site-footer ul a:hover { color: var(--accent-color); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }

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

/* =========== Scroll to top =========== */
.scroll-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-color); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s ease; z-index: 998; box-shadow: var(--shadow-md);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-color-dark); color: #fff; }

/* =========== AOS fallback (evita contenido invisible si AOS no carga) =========== */
body:not(.aos-ready) [data-aos] { opacity: 1 !important; transform: none !important; }
