/* Tipografía y colores base */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #fdfdfd;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  color: #0d2c54;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 30px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.header img {
  height: 60px;
  transform: scale(1.75);
  transform-origin: left center;
  margin-top: 20px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #0d2c54;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  height: 90vh; /* altura portada */
  background: url("images/portada.png") no-repeat center 18%/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

/* Overlay general */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 30px;
  border-radius: 8px;
  background: none;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #f1f1f1;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero .btn {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: #1ebe5d;
}

/* About */
.about {
  padding: 60px 20px;
  background: #fff;
}

.about-content {
  display: flex;
  gap: 30px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.about img {
  width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* Servicios */
.services {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Novedades */
.blog {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.post img {
  width: 100%;
  border-radius: 8px;
}

/* Contacto */
.contact {
  padding: 60px 20px;
  background: #0d2c54;
  color: white;
}

.contact h2 {
  text-align: center;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* dos columnas iguales */
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  align-items: stretch; /* que tengan la misma altura */
}

/* Formulario */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
}

.contact label {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 3px;
}

.contact label span.required {
  color: #ff6b6b; /* rojo para asterisco */
  margin-left: 2px;
}

.contact input,
.contact textarea {
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-family: inherit;
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.contact button {
  background: white;
  color: #0d2c54;
  font-weight: bold;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s ease-in-out;
}

.contact button:hover {
  background: #e6e6e6;
}

/* Leyenda de campos obligatorios */
.form-note {
  font-size: 0.85rem;
  color: #ddd;
  margin-top: 5px;
  font-style: italic;
}

/* Info + Mapa */
.contact .info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
}

.contact iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
  flex-grow: 1;
  margin-top: 15px;
}

/* Botón WhatsApp en sección Contacto */
.whatsapp-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.2s ease-in-out;
}

.whatsapp-contact:hover {
  background: #1ebe5d;
}

.whatsapp-contact img {
  width: 24px;
  height: 24px;
}

/* Footer */
.footer {
  text-align: center;
  background: #0d2c54;
  color: white;
  padding: 20px;
}

/* Botón flotante de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 35px;
  height: 35px;
}

/* Responsivo */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px; right: 20px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}