@charset "utf-8";
/* CSS Document */
:root {
  /* Variables para personalización */
  --hero-background-image: url("images/FondoLandingPageCafe.jpg");
  --primary-font-family: 'Source Sans Pro', sans-serif;
  --secondary-font-family: 'Plus Jakarta Sans', sans-serif;
  --accent-font-family: 'Inconsolata', monospace;
  --primary-color: #1a1a1a;
  --secondary-color: #2563eb;
  --accent-color: #ff9800;
  --text-color: #333;
  --background-color: #f7f5f2;
  --card-background: #ffffff;
  --overlay-color: rgba(0,0,0,0.35);
  --header-text-color: #ffffff;
  --destacado-color: #ffd700;
}

body, html {
  height: 100%;
  font-family: var(--primary-font-family);
  margin: 0;
  padding: 0;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Mejora para el scroll suave */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Asegurar que las secciones tengan espacio para el header fijo */
.w3-container[id] {
  scroll-margin-top: 80px;
}

/* Imagen de fondo que cubre toda la pantalla */
.hero-section {
  background-position: center;
  background-size: cover;
  background-image: var(--hero-background-image);
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::after {
  content: "";
  background-color: var(--overlay-color);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

/* Contenedor del contenido del hero */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Estilos para el logo */
.emprendedor-logo {
  max-width: 200px;
  max-height: 200px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  margin: 0 auto 30px auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emprendedor-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Título principal */
.header-text {
  text-shadow: 2px 2px 8px #000;
  color: var(--header-text-color);
}

.header-text h1 {
  font-size: 64px;
  font-family: var(--secondary-font-family);
  font-weight: 700;
  border: 4px solid #fff;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  backdrop-filter: blur(3px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 90%;
  word-wrap: break-word;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.header-text h1:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.header-text p {
  font-size: 24px;
  font-family: var(--secondary-font-family);
  font-weight: 500;
  margin-top: 15px;
  color: var(--header-text-color);
  letter-spacing: 0.5px;
}

/* Menú superior */
.w3-top .w3-bar { 
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.8) !important;
}

.w3-bar .w3-bar-item:hover {
  background-color: #444 !important;
}

.w3-bar .w3-button {
  font-family: var(--secondary-font-family);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 15px;
}

/* Animación de aparición */
.w3-animate {
  animation: fadeInUp 0.7s ease both;
}
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* Menú hamburguesa */
.w3-bar .w3-hide-large {
  display: none;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #ccc;
  font-family: var(--primary-font-family);
  font-weight: 400;
  font-size: 14px;
}
footer a { color: var(--accent-color); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* NUEVO: Estilos para productos destacados */
.producto-destacado {
  border: 3px solid var(--destacado-color) !important;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3) !important;
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
}

.badge-destacado {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, var(--destacado-color), #ffed4e);
  color: #000;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--secondary-font-family);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  z-index: 10;
  border: 2px solid #fff;
}

.badge-destacado i {
  margin-right: 4px;
}

/* Efecto de carga suave para la imagen */
.emprendedor-logo {
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* SOLUCIÓN DEFINITIVA: Flexbox simple y efectivo */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.product-card {
  flex: 0 0 calc(33.333% - 16px); /* 3 columnas con gap */
  display: flex;
  flex-direction: column;
  min-height: 480px; /* Altura mínima igual para todas */
  max-height: 480px; /* Altura máxima igual para todas */
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--card-background);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #f0f0f0;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image-container {
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-image:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Indicador de que la imagen es clickeable - CORREGIDO */
.product-image-container::after {
  content: "🔍";
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.product-image-container:hover::after {
  opacity: 1;
}

.product-image-placeholder {
  height: 220px;
  width: 100%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.product-title {
  font-size: 17px;
  font-family: var(--secondary-font-family);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-color);
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.product-description {
  flex: 1;
  overflow-y: auto;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
  padding-right: 5px;
  max-height: 120px;
  font-weight: 400;
  font-size: 14px;
  
  /* Estilos para la barra de scroll */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f5f5f5;
}

/* Estilos para Webkit (Chrome, Safari, Edge) */
.product-description::-webkit-scrollbar {
  width: 6px;
}

.product-description::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.product-description::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.product-description::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.product-info {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e5e5e5;
}

.product-price {
  font-family: var(--secondary-font-family);
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 16px;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.product-stock {
  font-family: var(--secondary-font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* Títulos de secciones */
.w3-tag.w3-wide {
  font-family: var(--secondary-font-family);
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 18px;
  text-transform: uppercase;
  background: var(--primary-color) !important;
  color: white !important;
  padding: 12px 24px;
  border-radius: 6px;
}

/* Sección de contacto */
.w3-card.w3-padding.w3-white {
  font-family: var(--primary-font-family);
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.w3-card.w3-padding.w3-white strong {
  font-family: var(--secondary-font-family);
  font-weight: 600;
  color: var(--primary-color);
}

/* Modal para imágenes */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin-top: 2%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-family: var(--secondary-font-family);
  font-size: 18px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
  transform: scale(1.1);
}

/* Loading para imagen del modal */
.modal-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
}

/* Botones de navegación en modal */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1001;
}

.modal-nav:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* NUEVOS ESTILOS PARA EL MODAL DE COMPARTIR */
.share-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  animation: fadeIn 0.3s ease;
}

.share-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  animation: slideIn 0.3s ease;
}

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

.share-modal-header {
  background: var(--primary-color);
  color: white;
  padding: 20px;
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.share-modal-header h3 {
  margin: 0;
  font-family: var(--secondary-font-family);
  font-weight: 600;
}

.share-modal-body {
  padding: 30px;
  text-align: center;
}

.share-url-container {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  word-break: break-all;
  font-family: monospace;
  font-size: 14px;
  position: relative;
}

.copy-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--secondary-font-family);
  font-weight: 500;
  margin-left: 10px;
  transition: background 0.3s ease;
}

.copy-btn:hover {
  background: #45a049;
}

.copy-btn.copied {
  background: #2196F3;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  color: white;
  font-family: var(--secondary-font-family);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
  color: white;
}

.share-btn.whatsapp {
  background: #25D366;
}

.share-btn.facebook {
  background: #3b5998;
}

.share-btn.twitter {
  background: #1DA1F2;
}

.share-btn.link {
  background: var(--accent-color);
}

.close-share-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-share-modal:hover {
  background: rgba(255,255,255,0.2);
}

/* MEDIA QUERIES - RESPONSIVE DESIGN */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .emprendedor-logo {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 20px;
  }
  
  .header-text h1 {
    font-size: 28px;
    padding: 8px 16px;
    max-width: 95%;
    letter-spacing: 0.5px;
  }
  
  .header-text p {
    font-size: 16px;
  }
  
  .w3-bar .w3-hide-large {
    display: block;
  }
  
  .w3-bar .w3-col {
    display: none;
  }
  
  .w3-container[id] {
    scroll-margin-top: 60px;
  }
  
  html {
    scroll-padding-top: 60px;
  }
  
  .product-card {
    flex: 0 0 100%;
    min-height: 420px;
    max-height: none;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .product-description {
    max-height: 80px;
  }
  
  .product-title {
    font-size: 16px;
  }
  
  .share-modal-content {
    margin: 20% auto;
    width: 95%;
  }
  
  .share-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .share-btn {
    justify-content: center;
  }
  
  .modal-nav {
    display: none;
  }
  
  .badge-destacado {
    font-size: 10px;
    padding: 6px 10px;
    top: -8px;
    right: -8px;
  }
  
  .w3-justify {
    font-size: 1.1em;
    font-family: var(--accent-font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }
  .TextoNosotros {
	font-size: 20px;	
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .emprendedor-logo {
    max-width: 180px;
    max-height: 180px;
  }
  
  .header-text h1 {
    font-size: 36px;
  }
  
  .header-text p {
    font-size: 18px;
  }

  .product-card {
    flex: 0 0 calc(50% - 12px);
    min-height: 460px;
    max-height: 460px;
  }
  
  .w3-justify {
    font-size: 1.2em;
    font-family: var(--accent-font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }
  .TextoNosotros {
	font-size: 20px;	
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .products-grid {
    gap: 20px;
  }
  
  .product-card {
    min-height: 440px;
    max-height: 440px;
  }
  
  .product-content {
    padding: 20px;
  }
  
  .w3-justify {
    font-size: 1.3em;
    font-family: var(--accent-font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }
  
  /* Ajustes para modal en tablets */
  .modal-content {
    max-width: 95%;
    max-height: 80%;
    margin-top: 10%;
  }
  
  .modal-caption {
    font-size: 16px;
    width: 90%;
  }
  
  .close-modal {
    top: 10px;
    right: 20px;
    font-size: 35px;
  }
  
  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }
  .TextoNosotros {
	font-size: 22px;	
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .product-card {
    flex: 0 0 calc(33.333% - 16px);
    min-height: 480px;
    max-height: 480px;
  }
  
  .w3-justify {
    font-size: 1.4em;
    font-family: var(--accent-font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }
  .TextoNosotros {
	font-size: 24px;	
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .w3-justify {
    font-size: 1.5em;
    font-family: var(--accent-font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }
  
  .emprendedor-logo {
    max-width: 200px;
    max-height: 200px;
  }
  
  .header-text h1 {
    font-size: 64px;
  }
  
  .header-text p {
    font-size: 24px;
  }
  .TextoNosotros {
	font-size: 26px;	
  }
}

/* Mejoras generales de estilo */
.w3-container {
  font-family: var(--primary-font-family);
}

.w3-content h3 {
  font-family: var(--secondary-font-family);
  font-weight: 600;
}

/* Mejora para los enlaces de contacto */
.w3-text-blue, .w3-text-green {
  font-family: var(--primary-font-family);
  font-weight: 500;
}

/* Efectos de hover mejorados */
.w3-bar .w3-button:hover {
  background-color: #333 !important;
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Mejora para el menú móvil */
#mobileMenu .w3-bar-item {
  font-family: var(--secondary-font-family);
  font-weight: 500;
  padding: 12px 16px;
}

