/* ================================
   SAFAMI TRANSPORTES - ESTILOS v2
   Paleta: Azul marino + Violeta
   ================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:          #0D1B4B;
  --navy2:         #162259;
  --blue:          #1D4ED8;
  --blue-light:    #3B6FEF;
  --purple:        #7C3AED;
  --purple-light:  #9255F5;
  --purple-pale:   #EDE9FE;
  --white:         #ffffff;
  --off-white:     #F5F6FF;
  --border:        #D8D5F0;
  --mid:           #5B5680;
  --text:          #1A1535;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--text);
}

/* ================================
   NAVEGACIÓN
   ================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  border-bottom: 3px solid var(--purple);
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1px;
}

.logo span { color: var(--purple-light); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #b8b4d8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--purple-light); }

/* ================================
   HERO
   ================================ */
.hero {
  margin-top: 60px;
  background: var(--navy);
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background: var(--purple);
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-text {
  padding: 5rem 2rem 5rem 3rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(146, 85, 245, 0.4);
  color: #b490ff;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  width: fit-content;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title em {
  color: #b490ff;
  font-style: normal;
}

.hero-desc {
  color: #9794bd;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  padding: 0.9rem 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.hero-cta:hover { background: var(--purple-light); }

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.truck-icon { font-size: 8rem; line-height: 1; }

.zone-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ================================
   ESTADÍSTICAS
   ================================ */
.stats-bar {
  background: var(--navy2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 3px solid var(--purple);
}

.stat {
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--purple-light);
}

.stat-label {
  font-size: 0.8rem;
  color: #7a7899;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ================================
   SECCIONES
   ================================ */
.section { padding: 5rem 3rem; }

.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--purple);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3rem;
}

/* ================================
   AVISO DE COBERTURA
   ================================ */
.coverage-banner {
  background: var(--purple-pale);
  border-left: 4px solid var(--purple);
  padding: 1rem 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #4C1D95;
  border-radius: 0;
}

.coverage-banner strong { font-weight: 600; }

/* ================================
   SERVICIOS
   ================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-top: 3px solid transparent;
  transition: border-color 0.2s;
}

.service-card:hover { border-top-color: var(--purple); }

.service-icon { font-size: 2rem; margin-bottom: 1rem; }

.service-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.6; }

/* ================================
   MUNICIPIOS
   ================================ */
.municipalities { padding: 0 3rem 5rem; }

.muni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.muni-tag {
  background: var(--purple-pale);
  border: 1px solid #c4b5fd;
  color: #5B21B6;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.5px;
}

/* ================================
   FORMULARIO
   ================================ */
.form-section {
  background: var(--off-white);
  padding: 5rem 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-intro p {
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.benefits-list { list-style: none; padding: 0; }

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mid);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.benefits-list li::before {
  content: '→';
  color: var(--purple);
  font-weight: 700;
  flex-shrink: 0;
}

.form-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--purple);
}

.form-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--purple); }

.form-group textarea { resize: vertical; min-height: 90px; }

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--purple);
  color: var(--white);
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.submit-btn:hover { background: var(--purple-light); }
.submit-btn:disabled { background: #999; cursor: not-allowed; }

.success-msg {
  display: none;
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #15803d;
}

.error-msg {
  display: none;
  background: #fdf0f0;
  border-left: 4px solid #dc2626;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #b91c1c;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: var(--navy);
  color: #7a7899;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--purple);
}

footer span { color: var(--purple-light); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero-text { padding: 3rem 1.5rem; }
  .hero-visual { background: var(--purple); padding: 2rem; }
  .hero-title { font-size: 2.8rem; }
  .hero-eyebrow { color: #d8b4fe; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .section { padding: 3rem 1.5rem; }
  .municipalities { padding: 0 1.5rem 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .muni-grid { grid-template-columns: repeat(2, 1fr); }
  .form-section { padding: 3rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}