/* ============================================================
   ESTILOS UNIFICADOS - PROESTÉTICA DEL LLANO
   Colores institucionales:
   Verde: #1E9245 | Azul: #00375e | Amarillo: #ffcc00
   Tipografía: Poppins + Montserrat
   ============================================================ */

/* ========================= */
/* BASE GENERAL */
/* ========================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
}

/* ========================= */
/* BARRA SUPERIOR */
/* ========================= */
.top-bar {
  background-color: #1E9245;
  color: white;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8px 20px;
  font-size: 0.9rem;
  animation: fadeInDown 0.8s ease;
}

.top-bar i {
  margin-right: 5px;
  color: #ffcc00;
}

.top-bar .top-right a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.top-bar .top-right a:hover {
  color: #ffcc00;
}

/* ========================= */
/* CABECERA PRINCIPAL */
/* ========================= */
header, .main-header {
  background-color: #FFFFFF;
  color: #00375e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-header .logo img {
  height: 75px;
  max-height: 80px;
  transition: transform 0.3s ease;
}

.main-header .logo img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .main-header .logo img {
    height: 65px;
  }
}

/* ========================= */
/* BUSCADOR */
/* ========================= */
.search-box {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-box input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #1E9245;
  border-radius: 25px 0 0 25px;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 8px rgba(255,204,0,0.5);
}

.search-box button {
  background-color: #1E9245;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
}

.search-box button:hover {
  background-color: #158a40;
  transform: scale(1.05);
}

/* ========================= */
/* CARRITO */
/* ========================= */
.cart {
  position: relative;
}

.cart a {
  color: #1E9245;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.cart a:hover {
  color: #ffcc00;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ffcc00;
  color: #1E9245;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* ========================= */
/* MENÚ PRINCIPAL */
/* ========================= */
.nav-categorias {
  background-color: #005b96;
  padding: 0;
}

.nav-categorias ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.nav-categorias .menu-item > a {
  display: block;
  padding: 12px 20px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-categorias .menu-item > a:hover {
  background-color: #00375e;
  color: #ffcc00;
}

.nav-categorias .submenu {
  position: absolute;
  left: 0;
  top: 100%;
  background-color: white;
  min-width: 220px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 0 0 6px 6px;
  z-index: 999;
}

.nav-categorias .submenu li a {
  padding: 10px 15px;
  color: #00375e;
  text-decoration: none;
}

.nav-categorias .submenu li a:hover {
  background-color: #ffcc00;
  color: #00375e;
}

.nav-categorias .menu-item:hover .submenu {
  display: flex;
}

/* ========================= */
/* SLIDER */
/* ========================= */
.slider-container {
  position: relative;
  overflow: hidden;
  height: 420px;
  width: 100%;
  border-radius: 0 0 25px 25px;
}

.slide, .slider-container img {
  display: none;
  height: 420px;
  width: 100%;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  animation: fadeIn 1s ease;
}

.slide.active, .slider-container img.active {
  display: block;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Flechas del slider */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(30,146,69,0.6);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.prev:hover, .next:hover {
  background-color: rgba(30,146,69,0.9);
}

.prev { left: 15px; }
.next { right: 15px; }

/* ========================= */
/* BOTÓN PRINCIPAL */
/* ========================= */
.btn-cta {
  background: #ffcc00;
  color: #00375e;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-cta:hover {
  background: #ffd633;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
}

/* ========================= */
/* SECCIONES Y TARJETAS */
/* ========================= */
.seccion {
  padding: 70px 20px;
  max-width: 1200px;
  margin: 30px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.seccion h3 {
  text-align: center;
  font-size: 2rem;
  color: #1E9245;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,91,150,0.3);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h4 {
  padding: 10px;
  color: #00375e;
  font-size: 1.1rem;
}

.card p {
  padding: 0 10px;
  color: #777;
  font-size: 0.9rem;
}

.precio-box {
  background-color: #e8f0fe;
  color: #00375e;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
}

/* ========================= */
/* CATEGORÍAS (listado lateral) */
/* ========================= */
.container-cat {
  display: flex;
  gap: 25px;
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

.filtros {
  flex: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 25px;
  height: fit-content;
  transition: all 0.3s ease-in-out;
}

.filtros:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.filtros h3 {
  font-size: 1.3em;
  color:#1E9245;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid #ffcc00;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

ul.categorias {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.categorias li {
  background: #f9fafc;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #e3e7ec;
  transition: all 0.3s ease;
}

ul.categorias li:hover {
  background: #f0f7ff;
  border-color: #1E9245;
  transform: translateX(4px);
}

ul.categorias li a {
  display: block;
  padding: 10px 12px;
  color: #1E9245;
  font-weight: 500;
  text-decoration: none;
}

ul.categorias li a:hover {
  color: #1E9245;
}

.subcats {
  background: #fff;
  padding: 8px 14px 12px 20px;
  border-top: 1px solid #e3e7ec;
}

.subcats a {
  display: block;
  color: #666;
  font-size: 0.9em;
  margin: 4px 0;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.subcats a:hover {
  color: #1E9245;
  transform: translateX(3px);
}

/* ========================= */
/* PRODUCTOS */
/* ========================= */
.productos-listado {
  flex: 3;
}

.breadcrumb {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.breadcrumb a {
  color:#1E9245;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card-product {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 15px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.card-product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.card-product h4 {
  font-size: 1em;
  color: #00375e;
  margin: 10px 0 5px;
}

.card-product .precio {
  font-weight: bold;
  color: #1E9245;
}

.card-product .descuento {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4b4b;
  color: #fff;
  font-size: 0.85em;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: bold;
}

/* ========================= */
/* SECCIÓN QUIÉNES SOMOS */
/* ========================= */
.quienes-somos {
  background: #f7fff7;
  padding: 80px 20px;
  text-align: center;
}

.quienes-somos h2 {
  color: #2c7a2c;
  font-size: 2.2em;
  margin-bottom: 15px;
}

.quienes-somos .intro {
  max-width: 900px;
  margin: 0 auto 50px;
  color: #333;
  font-size: 1.1em;
  line-height: 1.7;
}

.quienes-somos .info-boxes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.quienes-somos .info {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1 1 280px;
  max-width: 320px;
  transition: transform 0.3s;
}

.quienes-somos .info:hover {
  transform: translateY(-8px);
}

.quienes-somos i {
  font-size: 2.5em;
  color: #3ab54a;
  margin-bottom: 10px;
}

.quienes-somos h3 {
  color: #1d5c1d;
  margin-bottom: 10px;
}

.quienes-somos p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
}

/* ========================= */
/* FOOTER */
/* ========================= */
.footer {
  background-color: #111;
  color: #f1f1f1;
  padding: 60px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ffd700;
  text-transform: uppercase;
  font-weight: 600;
}

.footer p, .footer address, .footer a {
  font-size: 0.95rem;
  color: #ccc;
  text-decoration: none;
  line-height: 1.6;
}

.footer a:hover {
  color: #ff4b4b;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2rem;
  color: #ccc;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #00bfff;
}

.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom a {
  color: #ffd700;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

.categorias {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.categoria {
  width: 120px;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.categoria:hover {
  box-shadow: 0 6px 15px rgba(0,91,150,0.2);
  background: linear-gradient(to right, #005b96, #007acc);
}

.categoria i {
  font-size: 30px;
  color: #005b96;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.categoria:hover i {
  color: #fff;
}

.categoria p {
  margin: 0;
  font-weight: bold;
}




/* ================================================================
   MENÚ PRINCIPAL
================================================================ */
.nav-categorias {
    background-color: #005b96;
}

.nav-categorias ul {
    display: flex;
    justify-content: center;
    padding: 0;
}

.nav-categorias .menu-item > a {
    display: block;
    padding: 12px 20px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-categorias .menu-item > a:hover {
    background-color: #00375e;
    color: #ffcc00;
}

.nav-categorias .submenu {
    position: absolute;
    background-color: white;
    min-width: 220px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-categorias .submenu li a {
    padding: 10px 15px;
    color: #00375e;
    text-decoration: none;
}

.nav-categorias .submenu li a:hover {
    background-color: #ffcc00;
    color: #00375e;
}

.nav-categorias .menu-item:hover .submenu {
    display: flex;
}

/* ================================================================
   TIENDA / CATEGORÍAS Y PRODUCTOS
================================================================ */

/* Contenedor principal de tienda */
.contenedor-tienda {
    display: flex;
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* ------------------------
   PANEL LATERAL (CATEGORÍAS)
------------------------- */
.panel-categorias {
    flex: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 25px;
    height: fit-content;
}

.titulo-panel {
    font-size: 1.3em;
    color: #00375e;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.lista-categorias li {
    background: #f9fafc;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e3e7ec;
    transition: all 0.3s ease;
}

.lista-categorias li:hover {
    background: #f0f7ff;
    border-color: #1E9245;
    transform: translateX(4px);
}

.categoria-enlace {
    display: block;
    padding: 10px 12px;
    color: #00375e;
    font-weight: 500;
    text-decoration: none;
}

.categoria-enlace.activa {
    background-color: #1E9245;
    color: #fff;
    border-radius: 6px;
}

.lista-subcategorias {
    padding: 8px 14px 12px 20px;
}

.lista-subcategorias a {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin: 4px 0;
    text-decoration: none;
}

.lista-subcategorias a:hover {
    color: #1E9245;
}

/* ------------------------
   SECCIÓN DE PRODUCTOS
------------------------- */
.seccion-productos {
    flex: 3;
}

.breadcrumb {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #1E9245;
    text-decoration: none;
}

.encabezado-categoria {
    border-bottom: 2px solid #e3e7ec;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.descripcion-categoria {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Tarjetas de producto */
.tarjeta-producto {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.imagen-producto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.nombre-producto {
    font-size: 1em;
    margin: 10px 0 5px;
}

.precio-producto {
    font-weight: bold;
    color: #1E9245;
}

/* Etiqueta de descuento */
.etiqueta-descuento {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4b4b;
    color: #fff;
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}

/* Mensajes de estado */
.sin-productos,
.mensaje-seleccion {
    text-align: center;
    padding: 60px;
    color: #666;
}

/* ========================= */
/* SECCIÓN CONTACTO */
/* ========================= */
.contacto {
    background: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
}

.contacto h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #1E9245;
    margin-bottom: 40px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.contacto .formulario {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contacto .formulario input,
.contacto .formulario textarea {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
}

.contacto .formulario button {
    background: #1E9245;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contacto .formulario button:hover {
    background: #148235;
}

.contacto-info {
    text-align: left;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contacto-info h4 {
    color: #00375e;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #1ea955;
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.4em;
}

/* ========================= */
/* SECCIÓN BLOG */
/* ========================= */
.blog {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}

.blog h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #1E9245;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-grid article {
    background: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-grid article:hover {
    transform: translateY(-8px);
}

.blog-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-grid h4 {
    color: #1E9245;
    font-family: 'Montserrat', sans-serif;
    margin: 15px;
    font-size: 1.2em;
}

.blog-grid p {
    font-family: 'Poppins', sans-serif;
    color: #333;
    padding: 0 15px 15px;
    font-size: 0.95em;
}

.blog-grid a {
    display: inline-block;
    margin-bottom: 20px;
    background: #00375e;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.blog-grid a:hover {
    background: #00294a;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contacto-info {
        text-align: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================= */
/* ANIMACIONES */
/* ========================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
  
