/* styles.css */

/* --- VARIABLES DE COLOR --- */
:root {
  /* Tema ART (Azul Corporativo) */
  --art-primary: #0d47a1;
  --art-overlay: rgba(13, 71, 161, 0.75);

  /* Tema TRÁNSITO (Rojo Alerta) */
  --transito-primary: #b71c1c;
  --transito-overlay: rgba(90, 10, 10, 0.75);

  --whatsapp-green: #25d366;
}

body {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #212529;
}

/* SPLIT CONTAINER */
.main-container {
  flex: 1;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

.split-side {
  flex: 1;
  min-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  padding: 40px 20px;
  color: white;
  min-height: calc(100vh - 60px);
  cursor: pointer;
  overflow: hidden;
}

/* --- FONDOS --- */
.art-side {
  background: linear-gradient(var(--art-overlay), var(--art-overlay)),
    url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?q=80&w=1000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.transito-side {
  background: linear-gradient(var(--transito-overlay), var(--transito-overlay)),
    url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?q=80&w=1000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

/* TÍTULOS */
.main-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* EFECTO HOVER */
.split-side:hover { flex: 1.4; }
.split-side:hover .main-title { transform: scale(1.05); transition: transform 0.4s; }

/* TARJETAS DE FORMULARIO */
.contact-card {
  background: #ffffff;
  color: #333;
  border-radius: 16px;
  padding: 35px;
  width: 100%;
  max-width: 500px;
  display: none;
  cursor: default;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BOTONES */
.btn-art, .btn-transito {
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s;
}

.btn-art { background-color: var(--art-primary); }
.btn-art:hover { background-color: #002171; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3); }

.btn-transito { background-color: var(--transito-primary); }
.btn-transito:hover { background-color: #7f0000; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3); }

/* FORMULARIO ESTILOS */
.section-header h2 { font-weight: 800; font-size: 1.3rem; margin: 0; letter-spacing: 0.5px; }
.line { flex-grow: 1; height: 3px; margin-left: 15px; border-radius: 2px; }
.line-art { background-color: var(--art-primary); }
.line-transito { background-color: var(--transito-primary); }

.form-control {
  border-radius: 8px;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}
.form-control:focus { background-color: #fff; border-color: #aaa; box-shadow: none; }

.contact-info div { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; font-weight: 500; }
.contact-info i { margin-right: 15px; font-size: 1.3rem; }
.text-art { color: var(--art-primary); }
.text-transito { color: var(--transito-primary); }

/* Honeypot invisible */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* WHATSAPP & FOOTER */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

footer {
  background-color: #111;
  color: #adb5bd;
  padding: 15px 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: auto;
  border-top: 1px solid #333;
}

@media (max-width: 768px) {
  .split-side { min-width: 100%; min-height: 50vh; }
  .main-title { font-size: 2.8rem; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 26px; bottom: 20px; right: 20px; }
  .contact-card { padding: 25px; }
}
