:root {
  --azul: #0b44c9;
  --azul-oscuro: #0a2e82;
  --gris: #f2f4f8;
  --gris-700: #222;
  --blanco: #fff;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 16px;
}

/* === RESET GENERAL === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--gris-700);
  background: var(--blanco);
}

/* === CONTENEDORES === */
.container {
  width: min(1100px, 92%);
  margin: auto;
}

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  background: var(--blanco);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 10;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  height: 56px;
}
nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}
nav a {
  text-decoration: none;
  color: var(--gris-700);
  font-weight: 600;
  transition: color .2s ease;
}
nav a:hover {
  color: var(--azul);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(10,46,130,0.7),rgba(11,68,201,0.7)), url("images/1.jpg") center/cover no-repeat;
}
.hero-content {
  max-width: 800px;
  padding: 1rem;
}
.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* === BOTONES === */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn {
  background: var(--azul);
  color: #fff;
  padding: .9rem 1.3rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s ease;
}
.btn:hover {
  filter: brightness(.9);
  transform: scale(1.02);
}
.btn-secondary {
  border: 2px solid #fff;
  padding: .9rem 1.3rem;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: all .3s ease;
}
.btn-secondary:hover {
  background: #fff;
  color: var(--azul);
  transform: scale(1.02);
}

/* === SECCIONES === */
.section {
  padding: 60px 0;
}
.gray-bg {
  background: var(--gris);
}
h2 {
  color: var(--azul-oscuro);
  margin-bottom: 1rem;
  text-align: center;
}

/* === GRID === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(10,46,130,.06);
  text-align: center;
}
.card h3 { color: var(--azul); margin-bottom: .5rem; }
.card p { font-size: .95rem; line-height: 1.5; }

/* === GALERÍA === */
.image-gallery { text-align: center; }
.gallery-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.gallery-item {
  flex: 1 1 45%;
  max-width: 500px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  display: block;
}
.gallery-item p {
  font-size: .85rem;
  color: #555;
  margin: .5rem 0;
}

/* === FORMULARIO CONTACTO (ContractSolutions-style) === */
form {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(10,46,130,.08);
  width: min(600px, 100%);
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
}
form label {
  font-weight: 600;
  color: var(--azul-oscuro);
  margin-top: 10px;
}
form input,
form textarea {
  width: 100%;
  margin-top: .4rem;
  padding: 12px 14px;
  border: 1px solid #ccd;
  border-radius: 10px;
  background: #f9f9ff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .3s ease, box-shadow .3s ease;
}

form select {
  width: 100%;
  margin-top: .4rem;
  padding: 12px 14px;
  border: 1px solid #ccd;
  border-radius: 10px;
  background: #f9f9ff;
  font-family: inherit;
  font-size: 15px;
  color: #333;
  transition: border-color .3s ease, box-shadow .3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%230b44c9' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

form select:focus {
  border-color: var(--azul);
  box-shadow: 0 0 5px rgba(11,68,201,.2);
  outline: none;
}

form input:focus,
form textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 5px rgba(11,68,201,.2);
}
form button {
  background: linear-gradient(90deg, var(--azul-oscuro), var(--azul));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  margin-top: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
}
form button:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}
.form-success {
  margin-top: 20px;
  text-align: center;
  color: var(--azul-oscuro);
  background: #e7f0ff;
  border: 1px solid #c6ddff;
  padding: 15px;
  border-radius: 12px;
}
form p { margin-top: 0; }
form .intro { text-align: center; }

/* === FOOTER === */
footer {
  background: #0b1a45;
  color: #cfe0ff;
  padding: 20px 0;
  text-align: center;
}

/* === WHATSAPP === */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  background: #25D366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}
.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}
.whatsapp-btn i {
  font-size: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  form { width: 95%; }
}
