/* === RESET SUAVE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* === FONDO GENERAL === */
html {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: url('img/fondo.png') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  color: #222;
  line-height: 1.6;
  padding: 20px 80px 80px 80px;
  min-height: 100%;
}

/* Fondo fijo solo en desktop */
@media (min-width: 901px) {
  body {
    background-attachment: fixed;
  }
}

/* === HEADER === */
.site-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #6dbb95;
  border-radius: 16px;
  padding: 16px 28px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  border: 3px solid #a0eac4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Primera fila: Logo + Nombre + Navegación */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: nowrap;
  position: relative;
}

/* Logo + nombre */
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo {
  width: 220px;
  height: auto;
}

.brand-name {
  font-size: 1.4rem;
  color: #103c26;
  white-space: nowrap;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #103c26;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navegación */
.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 16px;
  background: #ffe9bd;
  color: #103c26;
  border-radius: 28px;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.12s;
  white-space: nowrap;
}

.site-nav a:hover {
  background: #103c26;
  color: #fff;
  transform: translateY(-2px);
}

/* Hero text debajo */
.hero-text {
  text-align: justify;
}

.hero-text h2 {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 500;
}

/* === ESPACIO TRANSPARENTE === */
.spacer {
  height: 30px;
}

/* === SECCIONES === */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  text-align: center;
  border: 3px solid #a0eac4;
}

.section h2 { 
  color: #103c26; 
  margin-bottom: 24px;
  font-size: 1.8rem;
}

.section p { 
  color: #222; 
  line-height: 1.6; 
  text-align: justify;
}

/* Imagen de la sección Nosotros */
.section-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  margin: 18px 0;
}

/* Texto de la sección Nosotros */
.nosotros p {
  text-align: justify;
  max-width: 900px;
  margin: 0 auto 16px auto;
}

/* === PRODUCTOS === */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}

.producto {
  background: rgba(255,248,240,0.9);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.producto img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 12px;
}

.producto p {
  font-weight: 600;
  color: #103c26;
  text-align: justify;
}

/* === BENEFICIOS === */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}

.beneficio {
  background: rgba(255,248,240,0.9);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.beneficio img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 12px;
}

.beneficio p {
  font-weight: 600;
  color: #103c26;
  text-align: justify;
}

/* === SUSCRIPCIÓN === */
.suscripcion-texto {
  font-size: 1.1rem;
  margin-bottom: 24px;
  text-align: center !important;
  color: #103c26;
}

.suscripcion-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 16px auto;
  flex-wrap: wrap;
  justify-content: center;
}

.suscripcion-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: 2px solid #a0eac4;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s;
}

.suscripcion-form input[type="email"]:focus {
  border-color: #6dbb95;
}

.btn-suscribir {
  padding: 14px 32px;
  background: #6dbb95;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, transform 0.12s;
}

.btn-suscribir:hover {
  background: #0e3d2f;
  transform: translateY(-2px);
}

.suscripcion-privacidad {
  font-size: 0.85rem;
  color: #666;
  text-align: center !important;
  font-style: italic;
}

/* === CONTACTO === */
.contacto-pregunta {
  font-size: 1.2rem;
  color: #103c26;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center !important;
}

.btn-telefono {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #6dbb95;
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.25s, transform 0.12s;
  margin-bottom: 24px;
}

.btn-telefono:hover {
  background: #0e3d2f;
  transform: translateY(-2px);
}

.icono-telefono {
  width: 24px;
  height: 24px;
}

.socials { 
  margin-top: 24px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: inline-block;
  transition: transform 0.2s;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link img {
  width: 50px;
  height: 50px;
  display: block;
}

/* === PIE DE PÁGINA === */
.site-footer {
  text-align: center;
  margin-top: 30px;
  color: #103c26;
  padding: 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid #a0eac4;
}

.footer-link {
  color: #103c26;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s;
}

.footer-link:hover {
  color: #6dbb95;
}

/* === WhatsApp flotante === */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  z-index: 998;
}

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

.whatsapp-float img {
  width: 36px;
  height: 36px;
}

/* === Botón volver arriba === */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 22px;
  background: #6dbb95;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 998;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #0e3d2f;
  transform: scale(1.1);
}

/* === Responsive === */
@media (max-width: 900px) {
  body { 
    padding: 20px;
  }
  
  .site-header {
    padding: 14px 18px;
  }
  
  .logo { width: 120px; }
  
  .brand-name {
    font-size: 1.1rem;
    white-space: normal;
  }
  
  .header-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .logo-area {
    flex: 1;
    min-width: 0;
  }
  
  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: flex;
  }
  
  /* Menú en móvil */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #6dbb95;
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: 100%;
  }
  
  .site-nav.active {
    display: flex;
  }
  
  .site-nav a {
    width: 100%;
    text-align: center;
  }
  
  .productos-grid { grid-template-columns: repeat(2, 1fr); }
  .beneficios-grid { grid-template-columns: repeat(2, 1fr); }
  
  .hero-text h2 {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  body { 
    padding: 15px;
  }
  
  .site-header {
    padding: 12px 14px;
  }
  
  .section {
    padding: 24px 20px;
  }
  
  .productos-grid { grid-template-columns: 1fr; }
  .beneficios-grid { grid-template-columns: 1fr; }
  
  .logo-area {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .logo { width: 100px; }
  
  .brand-name {
    font-size: 0.95rem;
  }
  
  .social-link img {
    width: 40px;
    height: 40px;
  }
  
  .hero-text h2 {
    font-size: 0.8rem;
  }
  
  .suscripcion-form {
    flex-direction: column;
  }
  
  .suscripcion-form input[type="email"] {
    width: 100%;
  }
}