/* ======== ESTILOS GENERALES ======== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #f5f5f5;
  color: #333;
}

/* ======== HEADER ======== */
header {
  background-color: #03002e; /* Color corporativo */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 70px;
  margin-right: 10px;
}

.nombre-empresa {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: bold;
}

/* ======== NAV ======== */
nav {
  display: flex;
  gap: 20px;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
nav a:hover {
  text-decoration: underline;
}

/* ======== BOTÓN COTIZA ======== */
.cotiza {
  margin-left: 20px;
}
.btn-cotiza {
  background-color: #43A047;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-cotiza:hover {
  background-color: #2E7D32;
}
.icono {
  width: 20px;
  height: 20px;
}

/* ======== RESPONSIVO HEADER ======== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  nav {
    margin: 10px 0;
    flex-direction: column;
    gap: 10px;
  }
  .cotiza {
    margin-top: 10px;
  }
}

/* ======== HERO ======== */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(3, 0, 46, 0.6);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 25px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.hero .btn-cotiza {
  background-color: #136f17;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}
.hero .btn-cotiza:hover {
  background-color: #2E7D32;
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
}

/* ======== SERVICIOS ======== */
.servicios {
  padding: 40px 30px;
  background: linear-gradient(to bottom, rgba(3,0,46,0.8) 0%, #f5f5f5 12%, #e0e0e0 100%);
  text-align: center;
  margin-top: -30px;
}
.servicios h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #03002e;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.servicio-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* botón al fondo */
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.servicio-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}
.servicio-card h3 {
  color: #03002e;
  margin-bottom: 10px;
}
.servicio-card p {
  flex-grow: 1; /* ocupa espacio flexible */
  margin-bottom: 20px;
  color: #555;
  text-align: justify;
}
.btn-servicio {
  align-self: center;
  background-color: #43A047;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn-servicio:hover {
  background-color: #2E7D32;
}

/* ======== POR QUÉ ELEGIRNOS ======== */
.elegirnos {
  padding: 60px 30px;
  background-color: #ffffff;
  text-align: center;
}
.elegirnos h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #03002e;
}
.elegirnos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.ventaja-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ventaja-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.ventaja-card .icono {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  stroke: #43A047;
}
.ventaja-card h3 {
  color: #03002e;
  margin-bottom: 10px;
}
.ventaja-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ======== CONTACTO ======== */
.contacto {
  padding: 60px 30px;
  background-color: #f5f5f5;
  text-align: center;
}

.contacto h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #03002e;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Formulario */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Input, textarea y select */
.contacto-form input,
.contacto-form textarea,
.contacto-form select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* Aseguramos que el select se vea igual que los demás campos */
.contacto-form select {
  order: -1; /* mueve el selector hasta arriba */
}

.btn-enviar {
  background-color: #43A047;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-enviar:hover {
  background-color: #2E7D32;
}

/* QR */
.contacto-qr img {
  width: 200px;
  margin-bottom: 15px;
}
.contacto-qr p {
  color: #555;
  font-size: 0.95rem;
}

/* Redes sociales */
.redes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 40px;
}
.redes img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.redes img:hover {
  transform: scale(1.1);
}

/*Ubicación*/
.seccion-ubicacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background-color: #fff; /* fondo blanco general */
}

.seccion-ubicacion .mapa-wrapper {
  background-color: rgba(234, 234, 239, 0.779); /* tono sutil */
  padding: 15px;
  border-radius: 8px;
  display: inline-block;   /* 👈 clave: se ajusta al contenido */
}
.seccion-ubicacion iframe {
  width: 600px;   /* tamaño fijo del mapa */
  height: 400px;
  border: 0;
  display: block;
} 

.seccion-ubicacion h2 {
  color: #71798a; /* mantiene contraste */
  margin-top: 5px;
  margin-bottom: 5px;
}

.seccion-ubicacion p {
 color: #71798a; /* mantiene contraste */
  margin-top: 0 px;
  margin-bottom: 15px;
}

/*Página trabajando*/
.pagina-trabajando {
  text-align: center;
  padding: 60px 20px;
}

.pagina-trabajando img {
  width: 350px;
  margin-bottom: 20px;
}

.pagina-trabajando h2 {
  color: #333;
  margin-bottom: 10px;
}

.pagina-trabajando p {
  color: #555;
  margin-bottom: 20px;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }
}
