:root {
  /* Paleta de Colores de la Marca */
  --verde-oscuro: #09301C;
  --beige: #F5E4CA;
  --amarillo: #FEBC44;
  --cafe: #53211A;
  
  /* Otros Colores Útiles */
  --blanco: #ffffff;
  --negro: #111111;
  --gris-claro: #EBEBEB;
  
  /* Fuentes */
  --font-principal: 'Barlow', sans-serif;
  --font-logo: 'Amarante', 'Barlow', serif;
  
  /* Transiciones y Sombras */
  --transicion-rapida: 0.3s ease;
  --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.08);
  --sombra-fuerte: 0 10px 30px rgba(9, 48, 28, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-principal);
  background-color: var(--beige);
  color: var(--verde-oscuro);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
}

p {
  font-weight: 400;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transicion-rapida);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background-color: var(--verde-oscuro);
  padding: 1rem 0;
  box-shadow: var(--sombra-fuerte);
}

.navbar.scrolled .logo a,
.navbar.scrolled .nav-links a {
  color: var(--beige);
}

.navbar.scrolled .hamburger span {
  background-color: var(--beige);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 65px;
  width: auto;
  transition: var(--transicion-rapida);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--verde-oscuro);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--cafe);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--amarillo);
}

.btn-contacto {
  background-color: var(--amarillo);
  color: var(--verde-oscuro) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 800;
}

.btn-contacto:hover {
  background-color: var(--cafe);
  color: var(--beige) !important;
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--verde-oscuro);
  border-radius: 3px;
  transition: var(--transicion-rapida);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 228, 202, 0.85); /* beige with transparency to blend */
  z-index: 1;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--verde-oscuro);
  text-transform: uppercase;
}

.highlight {
  color: var(--cafe);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--verde-oscuro);
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--verde-oscuro);
  color: var(--beige);
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: var(--sombra-suave);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background-color: var(--cafe);
  transform: translateY(-3px);
  box-shadow: var(--sombra-fuerte);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  animation: fadeLeft 1s ease forwards;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background-color: var(--amarillo);
  border-radius: 50%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sombra-fuerte);
}

.hero-image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- NUESTRO CAFE SECTION --- */
.nuestro-cafe {
  background-color: var(--blanco);
  padding: 6rem 2rem;
  position: relative;
}

.floating-seal {
  position: absolute;
  top: 3rem;
  right: 5%;
  width: 140px;
  max-width: 25vw;
  animation: floatSeal 4s ease-in-out infinite;
  z-index: 10;
}

@keyframes floatSeal {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.cafe-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.cafe-header h2 {
  font-size: 3rem;
  color: var(--verde-oscuro);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.cafe-header p {
  color: #555;
}

.cafe-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cafe-specs, .cafe-sensory {
  background-color: var(--beige);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
  transition: var(--transicion-rapida);
}

.cafe-specs:hover, .cafe-sensory:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-fuerte);
}

.cafe-specs h3, .cafe-sensory h3 {
  font-size: 1.8rem;
  color: var(--verde-oscuro);
  margin-bottom: 1.5rem;
  text-align: center;
}

.cafe-specs ul, .cafe-sensory ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.cafe-specs li, .cafe-sensory li {
  font-size: 1.1rem;
  color: var(--verde-oscuro);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(83, 33, 26, 0.1);
  padding-bottom: 0.8rem;
}

.cafe-specs li:last-child, .cafe-sensory li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cafe-specs strong, .cafe-sensory strong {
  color: var(--cafe);
}

/* --- PRODUCTOS SECTION --- */
.productos {
  padding: 6rem 2rem;
  background-color: var(--verde-oscuro);
  color: var(--beige);
}

.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--amarillo);
  text-transform: uppercase;
}

.productos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.producto-item {
  background-color: var(--blanco);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transicion-rapida);
  box-shadow: var(--sombra-suave);
}

.producto-item:hover {
  transform: scale(1.03);
}

.prod-img-wrapper {
  width: 100%;
  height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gris-claro);
}

.prod-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem; /* Margen interior para que no toque los bordes */
  transition: transform 0.5s ease;
}

.producto-item:hover .prod-img-wrapper img {
  transform: scale(1.1);
}

.producto-info {
  padding: 2rem;
  text-align: center;
}

.producto-info h3 {
  color: var(--verde-oscuro);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.producto-desc {
  color: var(--cafe);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.btn-ver {
  display: inline-block;
  background-color: var(--amarillo);
  color: var(--verde-oscuro);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-ver:hover {
  background-color: var(--cafe);
  color: var(--beige);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--negro);
  color: var(--beige);
  padding: 5rem 2rem 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(245, 228, 202, 0.2);
  padding-bottom: 3rem;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.8;
}

.footer-social h3, .footer-contact h3 {
  color: var(--blanco);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--beige);
}

.social-links a:hover {
  background-color: var(--amarillo);
  color: var(--verde-oscuro);
  transform: translateY(-3px);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  background-color: #25D366; /* WhatsApp color */
  color: var(--blanco);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.whatsapp-link:hover {
  background-color: #1EBE5D;
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--verde-oscuro);
    flex-direction: column;
    padding: 2rem 0;
    clip-path: circle(0% at top right);
    transition: clip-path 0.5s ease;
  }

  .nav-links.active {
    clip-path: circle(150% at top right);
  }

  .nav-links a {
    color: var(--beige);
    font-size: 1.2rem;
  }
  
  .nav-links a:hover {
    color: var(--amarillo);
  }

  .navbar.scrolled .logo a {
    color: var(--beige);
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--beige);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--beige);
  }
  
  .beneficios-header h2, .section-title h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .beneficios, .productos {
    padding: 4rem 1.5rem;
  }
}
