/* Reset y configuración básica */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: #f4faf7;
  scroll-behavior: smooth;
}

/* Animaciones de aparición */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes zoomFade {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%, 42% { transform: scale(1.2); }
  28%, 70% { transform: scale(1); }
}

/* Header */
header {
  background: linear-gradient(to right, #2e7d32, #66bb6a);
  color: white;
  text-align: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 30px 0;
}

.logo {
  position: absolute;
  left: 30px;
  max-height: 90px;
  width: auto;
  transition: all 0.3s ease;
}

.logo.shrink {
  max-height: 60px;
}

header h1 {
  margin: 0;
  animation: zoomFade 1s ease-out;
}

header i.fa-heartbeat {
  animation: heartbeat 2s infinite;
  color: #ff5252;
}

header p {
  margin: 5px 0 0;
}

/* Navegación */
nav {
 background-color: #388e3c;
  padding: 12px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.sticky {
  background-color: #2e7d32;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 10px;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin: 0 15px;
  padding-bottom: 5px;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Imagen central */
.imagen-central {
  position: relative;
  width: 100%;
  height: 397px;
  background-image: url('cama.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomFade 1.5s ease-out;
}

.logo-overlay {
  z-index: 10;
  text-align: center;
}

.logo-overlay img {
  max-height: 250px;
  opacity: 0.95;
}

/* Secciones generales */
section {
  padding: 60px 20px;
  background-color: transparent;
}

section:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

h2 {
  color: #2e7d32;
  font-size: 1.8rem;
}

/* Separadores SVG */
.separador {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  margin: 0;
  padding: 0;
}

.separador svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Servicios con íconos animados */
#servicios ul {
  list-style: none;
  padding: 0;
}

#servicios li {
  display: flex;
  align-items: center;
  margin: 12px 0;
  font-size: 1rem;
  color: #333;
  animation: fadeInLeft 1s ease both;
}

#servicios li i {
  color: #2e7d32;
  margin-right: 12px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

#servicios li:hover i {
  transform: scale(1.3) rotate(5deg);
}

@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Productos destacados con efecto flip */
.productos-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.producto {
  perspective: 1000px;
  width: 300px;
  height: 370px;
}

.producto-contenido {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.producto:hover .producto-contenido {
  transform: rotateY(180deg);
}

.cara {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.frente img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.trasera {
  transform: rotateY(180deg);
}

.producto h3 {
  margin: 10px 0 5px;
  color: #2e7d32;
}

.ver-mas-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 25px;
  background-color: #2e7d32;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.ver-mas-btn:hover {
  background-color: #1b5e20;
}

/* Formulario de contacto */
.form-contacto {
  max-width: 600px;
  margin: 0 auto;
}

.campo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.campo i {
  color: #2e7d32;
  margin-right: 10px;
}

.campo input,
.campo textarea {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
}

.form-contacto button {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-contacto button:hover {
  background-color: #1b5e20;
}

/* Botón de WhatsApp */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: linear-gradient(to top, #2e7d32, #66bb6a);
  color: white;
  text-align: center;
  padding: 15px;
}

.redes-sociales a {
  color: white;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.redes-sociales a:hover {
  color: #c8e6c9;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    max-height: 50px;
    left: 10px;
  }

  .header-container {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.85rem;
  }

  .menu-toggle {
    display: block;
    text-align: right;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #66bb6a;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 8px 0;
    font-size: 1rem;
  }

  .imagen-central {
    height: auto;
    min-height: 250px;
    padding: 20px 10px;
  }

  .logo-overlay img {
    max-height: 80px;
    width: 80%;
  }

  section {
    padding: 25px 15px;
  }

  h2 {
    font-size: 1.3rem;
  }

  p, li {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .producto {
    width: 100%;
  }

  .form-contacto {
    padding: 0 10px;
  }

  footer {
    font-size: 0.85rem;
    padding: 10px;
  }
}

.sobre-nosotros {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sobre-nosotros h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.sobre-nosotros p {
  font-size: 1.1em;
  line-height: 1.8;
}

.bienvenida {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.bienvenida h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.bienvenida p {
  font-size: 1.1em;
  line-height: 1.8;
}

