@import url('favoritos.css');

/* Estilos generales */
:root {
  --primary-color: #1e5631;
  --secu-color: #01c000;
  --secondary-color: #388e3c;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-light: #6c757d;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  padding-top: 120px; /* banner (40px) + header (80px) */
  line-height: 1.6;
  background-color: #f8f9fa;
  min-height: 100vh;
  transition: padding-top 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 50px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--secu-color) !important;
}


/* categorias*/
.categorias-section {
  padding: 60px 20px;
  background: #112240;

}

.titulo-categorias {
text-align: center;
font-size: 2rem;
margin-bottom: 40px;
color: white;

/* 🔹 Fuente distinta solo aquí */
font-family: 'Playfair Display', serif; 
letter-spacing: 1px;
}


.container-categorias {
  max-width: 1200px;
  margin: 0 auto;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card-categoria {
  position: relative;
  height: 350px; /* altura fija */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card-categoria:hover {
  transform: scale(1.03);
}

.card-categoria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-texto {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 15px;
  background: rgba(0,0,0,0.45);
}

.card-texto h5 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
}
/* 🔹 Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
.categorias-grid {
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 15px;
}

.card-categoria {
  height: 200px; /* más compacto en celular */
}

.card-texto h5 {
  font-size: 1rem;
}
}
/* ===== Sección CTA ===== */
.cta-section {
          background: #ffffff;
          padding: 70px 20px;
          text-align: center;
          font-family: "Arial", sans-serif;
        }
      
        .cta-section h2 {
          font-size: 2.2rem;
          color: #1e5631;
          margin-bottom: 20px;
        }
      
        .cta-section p {
          font-size: 1.2rem;
          color: #333;
          margin-bottom: 35px;
        }
      
        /* ===== Botón Verde con Efecto Shine ===== */
        .cta-btn {
          display: inline-block;
          padding: 15px 40px;
          font-size: 1.1rem;
          font-weight: bold;
          color: #ffffff;
          background: #1e5631;
          border: none;
          border-radius: 8px;
          cursor: pointer;
          position: relative;
          overflow: hidden;
          transition: transform 0.2s ease, box-shadow 0.3s ease;
          text-decoration: none;
        }
      
        .cta-btn:hover {
          transform: translateY(-3px);
          box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
        }
      
        /* Efecto de luz */
        .cta-btn::before {
          content: "";
          position: absolute;
          top: 0;
          left: -75px;
          width: 50px;
          height: 100%;
          background: rgba(255, 255, 255, 0.6);
          transform: skewX(-25deg);
          transition: 0.5s;
        }
      
        .cta-btn:hover::before {
          left: 120%;
        }
/* 🔹 Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
.categorias-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.card-categoria {
  height: 200px;
}

.card-texto h5 {
  font-size: 1rem;
}
}

