 :root {
            --primary: #3a7d44;
            --secondary: #f8f8f8;
            --accent: #f5b942;
            --dark: #2c3e50;
            --light: #ffffff;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background-color: var(--secondary);
        }
        
        #about, #menu, #gallery, #contact {
  scroll-margin-top: 80px; /* la altura de tu header */
}

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background-color: var(--light);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: fixed;
            width: 100%;
            z-index: 1000;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        
        .logo-img {
            width: 70px;
            height: 70px;
            margin-right: 10px;
        }
        
        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }
        
        .logo-text span {
            color: var(--accent);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 30px;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            transition: color 0.3s;
        }
        
        nav ul li a:hover {
            color: var(--primary);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary);
        }
        
        /* Hero Section */
        .hero {
            background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img-galeria/lr2.jpg');
            background-size: cover;
            background-position: center;
            height: 100vh;
            min-height: 400px;
            display: flex;
            align-items: center;
            text-align: center;
            color: var(--light);
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            animation: fadeIn 1.5s;
            color: var(--light);
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            animation: fadeIn 2s;
        }
        
        .btn {
            display: inline-block;
            background-color: var(--primary);
            color: var(--light);
            padding: 12px 30px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
            animation: fadeIn 2.5s;
        }
        
        .btn:hover {
            background-color: var(--light);
            transform: translateY(-3px);
            color: var(--dark);
        }
        
        /* About Section */
        .about {
            padding: 50px 0;
            background-color: var(--light);
        }
        
        .about-content {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 50px;
        }
        
        .about-text {
            flex: 1;
            min-width: 300px;
        }
        
        .about-text h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: var(--primary);
        }
        
        .about-text p {
            margin-bottom: 20px;
        }
   .about-image {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.about-image::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 10px;
    background: rgba(0,0,0,0.4); /* capa oscura */
}

        .frase-destacada {
  background: #e8f5e9;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.8rem;
  font-style: italic;
  animation: fadeIn 2s ease-in;
  color: var(--primary);
}
        /* Menu Section */
        .menu {
            padding: 10px 0;
            background-color: var(--secondary);
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: var(--primary);
        }
        
        .section-title p {
            color: #777;
            font-size: 1.1rem;
        }
        
       
main {
  padding: 1rem 1rem 1rem; /* un padding-top mayor que la altura del header */
}


h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}
#menu {
  scroll-margin-top: 120px;
}
.menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.25); /* sombra tipo 3D */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px; 
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.3);
}


.item img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* Recorta bien si las imágenes son diferentes */
}
.item h2 {
  margin: 1rem 0 0.0rem;
  color: #333;
}


.price {
  display: block;
 
  color: var(--primary);
  padding: 2rem;

  font-weight: bold;
}

.menu-filtros {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: max-content;
  position: relative;
  padding-bottom: 0.5rem;
}

.menu-filtros-scroll {
  overflow-x: auto;
  padding: 0 1rem;
  margin-bottom: 1rem;
}
.menu-filtros-scroll::-webkit-scrollbar {
  display: none;
}
.menu-filtros button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1.5rem 1rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.menu-filtros button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 0;
  background-color: transparent;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.menu-filtros button.activo::after {
  width: 60%;
  background-color: var(--primary);
}

@keyframes growLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40%;
    opacity: 1;
  }
}

.menu-filtros-wrapper {
  position: relative;
}

.menu-filtros-scroll {
  overflow-x: auto;
  padding: 0 1rem;
  margin-bottom: 1rem;
  scroll-behavior: smooth;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

        /* Gallery Section */
        .gallery {
            padding: 50px 0;
            background-color: var(--light);
        }
        
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .gallery-item {
            overflow: hidden;
            border-radius: 10px;
            height: 250px;
            position: relative;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .gallery-item:hover img {
            transform: scale(1.1);
        }
        /* ---------------------------------------*/
      
        
        /* Contact Section */
        .contact {
            padding: 30px 0;
            background-color: var(--light);
        }
        
        .contact-content {
            display: flex;
            flex-wrap: wrap;
            gap: 50px;
        }
        
        .contact-info {
            flex: 1;
            min-width: 300px;
        }
        
        .contact-info h3 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: var(--primary);
        }
        
        .contact-info-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
        }
        
        .contact-info-icon {
            font-size: 1.5rem;
            color: var(--primary);
            margin-right: 15px;
            margin-top: 5px;
        }
        
        .contact-form {
           
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
width: 60%;
        }
      .contact-info p, .contact-info a {
  color: #333;
  font-size: 0.95rem;
  text-decoration: none;
}
        
        /* Footer */
        footer {
            background-color: var(--dark);
            color: var(--light);
            padding: 50px 0 20px;
        }
  
.social-links {
  text-align: center;
  margin-top: 1rem;
}

.social-links a {
  margin: 0 10px;
  font-weight: bold;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--secondary);
}
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            gap: 50px;
            margin-bottom: 30px;
        }
        
        .footer-column {
            flex: 1;
            min-width: 200px;
        }
        
        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: var(--secondary);
        }
        
        .footer-column p {
            margin-bottom: 15px;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
    .item img {
    height: 300px;
  }
   .menu {
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem; 
  }
}

@media (min-width: 1800px) {
  .container {
    max-width: 1600px;
  }
    .item img {
    height: 350px;
  }
   .menu {
    grid-template-columns: repeat(6, 1fr);
    gap: 3rem; 
  }
}

        /* Responsive Styles */
        @media (max-width: 768px) {
            
            .header-container {
                padding: 15px 0;
            }
            
            .logo-text {
                font-size: 1.3rem;
            }

            
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    z-index: 11;
  }

  nav#nav {
    flex-grow: 0;
    justify-content: flex-end;

  }

  /* MENÚ */
  .menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

            nav {
                position: fixed;
                top: 100px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 80px);
                background-color: var(--light);
                transition: left 0.3s;
                z-index: 999;
            }
            
            nav.active {
                left: 0;
            }
            
            nav ul {
                flex-direction: column;
                padding: 20px;
            }
            
            nav ul li {
                margin: 15px 0;
            }
            
            .mobile-menu-btn {
                display: block;

            }
            
            
            .about-content {
                flex-direction: column;
            }
             .contact-form {
           
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
width: 100%;
        }
         .about-text {
            text-align: center;
               min-width: 300px;

        }
        
        .about-text h2 {
           font-size: 2rem;
            margin-bottom: 20px;
        }

          .section-title {
            text-align: center;
            margin-bottom: 60px;
        }
        
        .section-title h2 {
            font-size: 2rem;
            color: var(--primary);
        }
         .section-title p {
            color: var(--dark);
            font-size: 1rem;
        }
        
        

  /* HERO BANNER */
  .hero-content h1 {
    font-size: 2.5rem;
    z-index: -1000;
  }

  .hero-content p {
    font-size: 1rem;
    z-index: -1;
  }

  /* FRASE DESTACADA */
  .frase-destacada {
    font-size: 1.3rem;
     text-align: center;
  }

  /* GALERÍA */
  .galeria-info {
    padding: 2rem 1rem;
    gap: 2rem;
  }
        .bloque {
   display: block;
  }

  .bloque img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 300px;
    flex: none;
    border-radius: 12px;
    order: 1;
  }

  .bloque.invertido img {
    order: -1;
  }

  .bloque .texto {
    order: 2;
    padding: 1rem;
  }

  .bloque .texto h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .bloque .texto p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* permite que salten a otra fila en pantallas pequeñas */
  gap: 10px;       /* espacio uniforme entre enlaces */
  margin-top: 1rem;
  padding: 0 1rem; /* margen lateral para que no queden pegados al borde */
}

.social-links a {
  font-weight: bold;
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem; /* tamaño adaptable */
}

.social-links a:hover {
  color: #1b5e20;
}
        }
        
        @media (max-width: 480px) {
            .header-container {
                padding: 15px 0;
            }
            
            .logo-text {
                font-size: 1.3rem;
            }
    
        }
        /* Frase destacada */


/* Galería con texto intercalado */
.galeria-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.bloque {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.bloque.invertido {
  flex-direction: row-reverse;
}

.bloque img {
  flex: 1 1 300px;
  max-width: 500px;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bloque .texto {
  flex: 1 1 300px;
}

.bloque .texto h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.bloque .texto p {
  font-size: 1.1rem;
  line-height: 1.6;
}
/* Botón modo oscuro */
.dark-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  margin-left: 0.2rem;
  transition: transform 0.2s;
}
.dark-btn:hover {
  transform: scale(1.2);
}

/* --- Estilos Modo Oscuro --- */
body.dark-mode {
  background: #121212;
  color: #f5f5f5;

  

}

body.dark-mode header {
  background: #1e1e1e;
  color: #fff;
}
body.dark-mode nav {
  background: #1e1e1e;
  color: #fff;
}

/* Menú */
body.dark-mode nav ul li a {
  color: #ffffff !important;
}

/* Items del menú */
body.dark-mode .item {
  background: #1c1c1c;
  color: #fff;
}
body.dark-mode .about {
  background: #1c1c1c;
  color: #fff;
}
body.dark-mode .menu {
  background: #121212;
  color: #fff;
}
body.dark-mode .gallery {
  background: #121212;
  color: #fff;
}
body.dark-mode .contact-content {
  background: #121212;
  color: #fff;
}
body.dark-mode .contact {
  background: #121212;
  color: #fff;
}

/* Precios */
body.dark-mode .price {
  color: #81c784;
}

/* Footer */
body.dark-mode footer {
  background: #1e1e1e;
  color: #f5f5f5;
}

/* Contacto: dirección, teléfono, horario */
body.dark-mode .contact-info p,
body.dark-mode .contact-info a,
body.dark-mode .contact-info h4 {
  color: #f0f0f0 !important;
}
body.dark-mode .section-title p,
body.dark-mode .section-title a,
body.dark-mode .menu h2 {
  color: #f0f0f0 !important;
}

body.dark-mode .contact-info h3 {
  color: #ffffff !important;
}

/* Frase destacada */
body.dark-mode .frase-destacada {
  background: #2c2c2c;
  color: #eee;
}



/* Fondo difuminado */
