/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #273358;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* NAVBAR */
.navbar {
  background: #1B4650;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}

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

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover,
.btn-nav {
  color: #C5D147;
}

#nav-menu.open ul {
  display: flex;
  flex-direction: column;
}

/* HERO */
.hero {
  background: url('hero-fexin.jpg') center center/cover no-repeat;
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(39, 51, 88, 0.7);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #C5D147;
}

.hero span {
  color: #fff;
}

.btn-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #C5D147;
  color: #1B4650;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background: #b1bf3d;
  transform: scale(1.02);
}

/* SECCIONES */
.section {
  padding: 60px 20px;
}

.gray {
  background-color: #f4f4f9;
}

.section h2 {
  color: #3A3460;
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* PRODUCTOS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff;
  border: 2px solid #9785B9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: #3A3460;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: default;
}

.card:hover {
  background-color: #fdfdfd;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* CONTACTO */
.contacto-flex {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 20px; /* Reducido de 40px para menos espacio */
}

.formulario-wrap,
.info-contacto {
  flex: 1 1 400px;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.formulario input,
.formulario textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.formulario input:focus,
.formulario textarea:focus {
  border-color: #9785B9;
  outline: 2px solid #C5D147;
}

.formulario button {
  align-self: start;
}

/* Reducir el espacio entre la sección de contacto y el footer */
#contacto {
  padding-bottom: 15px; /* Reducido aún más a 15px */
}

.info-contacto {
  margin-bottom: 0; /* Evita margen adicional */
}

/* FOOTER */
footer {
  background: #9785B9;
  text-align: center;
  padding: 0px; /* Asegurar que no añada padding */
  font-size: 0.9em;
  color: #fff;
  margin-top: 0; /* Evitar margen superior no deseado */
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.whatsapp-float img {
  width: 100%;
  max-width: 60px;
  max-height: 60px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo-img {
    height: 45px;
    margin-right: auto;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  /* Menú desplegable */
  nav ul {
    display: none;
    flex-direction: column;
    background: #1B4650;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  #nav-menu.open ul {
    display: flex;
  }

  nav ul li {
    text-align: center;
    margin: 10px 0;
  }

  .contacto-flex {
    flex-direction: column;
    margin-top: 10px; /* Menor margen en móvil */
  }

  .info-contacto {
    margin-bottom: 0 !important;
  }

  /* Reducir aún más el espacio en móvil */
  #contacto {
    padding-bottom: 10px; /* Menos padding en móvil */
  }
}