/* ==========================================
   RESET & TIPOGRAFÍA OFICIAL (Raleway Ampliada)
   ========================================== */
html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Reglas Estrictas de Jerarquía Visual */
h1, h2, h3, h4, h5, h6, strong, .font-bold {
  font-weight: 700;
  color: #0f1d3a;
}

.subtext, .horario-text, .subtitulo, .font-medium {
  font-weight: 500;
  color: #64748b;
  font-size: 14px;
}

p, span, select, input, label, a, .font-regular {
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-padding {
  padding: 80px 0;
}

.responsive-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mt-2 { margin-top: 10px; }
.mt-6 { margin-top: 32px; }
.mb-6 { margin-bottom: 32px; }
.gap-6 { gap: 28px; }
.gap-8 { gap: 40px; }
.rounded { border-radius: 10px; }
.p-6 { padding: 32px; }

/* Grids Responsivos Desktop */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-1-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-1-3 { grid-template-columns: 3.8fr 8.2fr; }
}

/* ==========================================
   HEADER / NAVBAR & HAMBURGER MENU
   ========================================== */
.navbar {
  background-color: #0f1d3a;
  color: #ffffff;
  padding: 18px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  max-height: 48px;
  width: auto;
  display: block;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 105;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  gap: 36px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #cbd5e1;
  letter-spacing: 0.6px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.nav-menu a:hover {
  color: #f0ab00;
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.2s ease;
}

.btn-phone:hover {
  color: #f0ab00;
}

.icon-phone {
  width: 20px;
  height: 20px;
}

.btn-cotizar-header {
  background-color: #f0ab00;
  color: #0f1d3a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-cotizar-header:hover {
  background-color: #e09f00;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  background: linear-gradient(rgba(15, 29, 58, 0.88), rgba(15, 29, 58, 0.88)), url('images/Header/SucursalLTH.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 80px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-container { grid-template-columns: 6.8fr 5.2fr; }
}

.badge {
  background-color: rgba(240, 171, 0, 0.2);
  color: #f0ab00;
  border: 1px solid rgba(240, 171, 0, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .hero-title { font-size: 52px; }
}

.hero-text {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: #f0ab00;
  color: #0f1d3a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-align: center;
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 6px;
  text-align: center;
}

.quick-calculator-card {
  background-color: #ffffff;
  color: #1e293b;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.25);
}

.quick-calculator-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group select, .form-group input {
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background-color: #fff;
}

.form-group select:focus, .form-group input:focus {
  border-color: #f0ab00;
  box-shadow: 0 0 0 3px rgba(240, 171, 0, 0.25);
}

.form-group select:disabled {
  background-color: #f8fafc;
  color: #94a3b8;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-dark-full {
  width: 100%;
  background-color: #0f1d3a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.btn-dark-full:hover {
  background-color: #1e293b;
}

/* ==========================================
   BARRA AMARILLA
   ========================================== */
.banner-yellow {
  background-color: #f0ab00;
  padding: 24px 0;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
  color: #0f1d3a;
  font-weight: 700;
  font-size: 17px;
}

@media (min-width: 900px) {
  .banner-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================
   SUCURSALES Y MAPA COMPLETO
   ========================================== */
.section-branches {
  padding: 72px 0;
}

.section-header h2 {
  font-size: 32px;
}

.branches-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 900px) {
  .branches-wrapper {
    display: grid;
    grid-template-columns: 6.5fr 5.5fr;
    align-items: stretch;
  }
}

.map-container {
  background-color: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  display: block;
  object-fit: cover;
}

.branches-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.branch-btn {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.branch-btn.active {
  background-color: #0f1d3a;
  color: #ffffff;
  font-weight: 700;
  border-color: #0f1d3a;
}

.info-card {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  padding: 24px;
  border-radius: 12px;
}

.info-card h4 { font-size: 18px; margin-bottom: 6px; }
.info-card p { font-size: 14px; margin-bottom: 6px; }

.info-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-sm-navy { background: #0f1d3a; color: #fff; font-size: 12px; font-weight: 700; padding: 10px 18px; border-radius: 6px; text-align: center; }
.btn-sm-yellow { background: #f0ab00; color: #0f1d3a; font-size: 12px; font-weight: 700; padding: 10px 18px; border-radius: 6px; text-align: center; }
.btn-sm-outline { border: 1px solid #cbd5e1; color: #334155; font-size: 12px; font-weight: 500; padding: 10px 18px; border-radius: 6px; text-align: center; }

/* ==========================================
   CARDS DE IMÁGENES Y SEÑALES (MÁS PEQUEÑAS)
   ========================================== */
.card-image-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.img-placeholder {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.bg-navy { background-color: #0f1d3a; }
.text-white { color: #ffffff !important; }

.border-bottom-dark {
  border-bottom: 1px solid #1e293b;
  padding-bottom: 20px;
}

.service-card {
  background-color: #1a2b4c;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid #25385c;
}

.service-icon {
  font-size: 30px;
  margin-bottom: 14px;
}

.service-card h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 18px;
}

.link-wa {
  color: #f0ab00;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================
   CONFIANZA Y RESPALDO (CENTRADOS)
   ========================================== */
.trust-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 380px;
  background-color: #e2e8f0;
}

.badge-40 {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background-color: #f0ab00;
  color: #0f1d3a;
  padding: 16px 28px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.badge-40 .num { font-size: 32px; font-weight: 800; line-height: 1; }
.badge-40 .txt { font-size: 11px; font-weight: 700; text-transform: uppercase; }

#marcas .grid-2 > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-sub {
  color: #d99a00;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.brand-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.btn-brand {
  background-color: #0f1d3a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.trust-stats {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.trust-stats strong { display: block; font-size: 28px; color: #0f1d3a; }
.trust-stats p { font-size: 13px; color: #64748b; }

/* Opiniones Google */
.bg-amber-light { background-color: #fef3c7; border: 1px solid #fde68a; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.review-img-box { border-radius: 10px; overflow: hidden; border: 1px solid #cbd5e1; min-height: 180px; background-color: #fff; }

/* ==========================================
   FORMULARIO "COTIZA EN UN SOLO PASO"
   ========================================== */
.cotiza-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .cotiza-layout {
    grid-template-columns: 7fr 5fr;
  }
}

.cotiza-form-card {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
}

.cotiza-form-card h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0f1d3a;
  margin-bottom: 8px;
}

.cotiza-form-fields {
  margin-top: 24px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.cotiza-form-card input {
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  background-color: #ffffff;
  color: #334155;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cotiza-form-card input::placeholder {
  color: #94a3b8;
}

.cotiza-form-card input:focus {
  border-color: #f0ab00;
  box-shadow: 0 0 0 3px rgba(240, 171, 0, 0.15);
}

.btn-wa-submit {
  width: 100%;
  background-color: #f0ab00;
  color: #0f1d3a;
  font-size: 15px;
  font-weight: 800;
  padding: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: background-color 0.2s ease;
}

.btn-wa-submit:hover {
  background-color: #e09f00;
}

.disclaimer-text {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 16px;
  line-height: 1.5;
}

.cotiza-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-wa-direct {
  background-color: #172a4d;
  color: #ffffff;
  padding: 32px;
  border-radius: 20px;
}

.card-wa-direct h3 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-wa-direct p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-wa-number {
  background-color: #f0ab00;
  color: #0f1d3a;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease;
}

.btn-wa-number:hover {
  background-color: #e09f00;
}

.card-flotilla {
  background-color: #ffffff;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.card-flotilla h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f1d3a;
  margin-bottom: 10px;
}

.card-flotilla p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-asesor {
  width: 100%;
  background-color: #172a4d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  border-radius: 25px;
  display: block;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-asesor:hover {
  background-color: #0f1d3a;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-container {
  background-color: #0f1d3a;
  color: #94a3b8;
  padding: 48px 0 24px 0;
  font-size: 13px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}

@media (min-width: 768px) {
  .footer-content { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer-title { display: block; font-weight: 800; color: #ffffff; font-size: 16px; margin-bottom: 4px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: #cbd5e1; font-size: 14px; }
.footer-bottom { padding-top: 24px; text-align: center; color: #64748b; }

/* ==========================================
   MEDIA QUERIES: TABLETS (768px - 1024px)
   ========================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .navbar {
    padding: 14px 20px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-menu a {
    font-size: 13px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-container {
    min-height: 400px;
  }
}

/* ==========================================
   MEDIA QUERIES: MÓVILES Y CELULARES (< 768px)
   ========================================== */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .section-padding {
    padding: 48px 0;
  }

  /* Header Responsivo: Logo (Izquierda) -> Acciones (Centro) -> Hamburguesa (Derecha) */
  .navbar {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-box {
    order: 1; /* Logo a la izquierda */
  }

  .header-actions {
    order: 2; /* Teléfono e íconos en el centro */
    gap: 8px;
    align-items: center;
  }

  .hamburger-btn {
    display: flex;
    order: 3; /* Menú hamburguesa a la derecha */
  }

  .logo-img {
    max-height: 38px;
  }

  .nav-menu {
    position: fixed;
    top: 62px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 62px);
    background-color: #0f1d3a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: left 0.3s ease;
    z-index: 99;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    font-size: 18px;
    font-weight: 700;
  }

  .btn-phone span {
    display: none;
  }

  .btn-phone {
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 50%;
  }

  .btn-cotizar-header {
    padding: 8px 12px;
    font-size: 11px;
  }

  /* Hero Section */
  .hero-section {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-outline {
    width: 100%;
  }

  .quick-calculator-card {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Barra Amarilla */
  .banner-yellow {
    padding: 16px 0;
  }

  .banner-grid {
    grid-template-columns: 1fr 1fr;
    font-size: 13px;
    gap: 12px;
  }

  /* Sucursales a 2 por hilera en Celular */
  .section-branches {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .branches-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .branch-btn {
    padding: 10px;
    font-size: 12px;
  }

  .map-container {
    min-height: 320px;
  }

  .info-card {
    padding: 18px;
  }

  .info-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-sm-navy, .btn-sm-yellow, .btn-sm-outline {
    width: 100%;
  }

  .brand-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Formulario Cotiza en un solo paso */
  .cotiza-form-card {
    padding: 24px 16px;
  }

  .cotiza-form-card h2 {
    font-size: 24px;
  }

  .card-wa-direct, .card-flotilla {
    padding: 24px 18px;
  }

  .btn-wa-submit, .btn-wa-number, .btn-asesor {
    font-size: 14px;
    padding: 14px;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}