/* style.css */

:root {
  --color-primario: #6c5ce7;
  --color-secundario: #00bcd4;
  --color-fondo: #0a1542;
  --color-texto: #ffffff;
  --color-acento: #ff6b6b;
  --color-claro: #f5f5f5;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #0a1542, #1b2a6b);
  color: var(--color-texto);
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #080f2a;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  color: var(--color-primario);
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--color-texto);
  text-decoration: none;
  transition: color 0.3s;
}

.btn-contacto {
  background: linear-gradient(90deg, var(--color-primario), #8e44ad);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.hero {
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
}

h1, h2 {
  color: var(--color-claro);
}

.highlight {
  background: linear-gradient(to right, var(--color-primario), var(--color-secundario));
  -webkit-background-clip: text;
  color: transparent;
}

.badges .badge {
  background: #1e2958;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0.5rem 0 0;
  display: inline-block;
  font-size: 0.9rem;
}

.cta-buttons {
  margin-top: 1rem;
}

.btn-primary, .btn-secondary, .btn-emergencia {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin-right: 1rem;
  display: inline-block;
  font-weight: bold;
}

.btn-primary {
  background: linear-gradient(to right, var(--color-primario), #a64bf4);
  color: white;
}

.btn-secondary {
  background: #000;
  color: white;
  border: 1px solid white;
}

.servicios {
  padding: 4rem 2rem;
  background: #0e1a3a;
}

.servicio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.servicio {
  background: #1e2958;
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
}

.servicio .icono {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.nosotros {
  display: flex;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  gap: 2rem;
  align-items: center;
}

.nosotros .imagen img {
  max-width: 100%;
  border-radius: 12px;
}

.datos, .valores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.datos li, .valor {
  background: #1e2958;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
}

.testimonios {
  padding: 4rem 2rem;
  background: #0c1635;
  text-align: center;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonio {
  background: #1e2958;
  padding: 1rem;
  border-radius: 10px;
  color: white;
}

.resumen {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contacto {
  padding: 4rem 2rem;
  background: #1d2556;
}

.contacto-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.formulario-contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto select,
.formulario-contacto textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  background: #eaeaea;
  color: #000;
}

.info-contacto {
  flex: 1;
  background: #1e2958;
  padding: 1.5rem;
  border-radius: 12px;
  color: white;
}

.btn-emergencia {
  display: block;
  margin-top: 1rem;
  background: var(--color-acento);
  color: white;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: bold;
}

footer {
  background: #0a1542;
  padding: 2rem;
  color: #ccc;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-grid div ul {
  list-style: none;
  padding: 0;
}

.footer-grid div ul li a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.redes a {
  display: inline-block;
  margin-right: 1rem;
  color: white;
  text-decoration: none;
}

.emergencia-footer p {
  margin-top: 1rem;
  background: var(--color-acento);
  padding: 0.5rem;
  border-radius: 8px;
  color: white;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .contacto-grid {
    flex-direction: column;
  }
  .nosotros {
    flex-direction: column;
  }
}
