@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700&display=swap');

:root {
  --verde: #6D6D52;
  --crema: #e1e0d6;
  --blanco: #ffffff;
  --oscuro: #2c2c24;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Nunito', sans-serif; }

body { background-color: var(--verde); color: var(--blanco); overflow-x: hidden; }

/* =========================================
   HEADER UNIFICADO ESTILO LIMPIO
   ========================================= */
.header {
  background-image: url("../img/madera_grande.jpg");
  background-size: cover;
  background-position: center;
  height: 90px; /* Altura unificada */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .logo img {
  height: 180px; /* Tamaño más uniforme */
  width: auto;
  transition: transform 0.3s;
}

.header .logo img:hover {
  transform: scale(1.05);
}

.header .nav-links {
  list-style: none;
}

.header .nav-links li {
  display: inline-block;
  padding: 0 20px;
}

.header .nav-links a {
  font-weight: 700;
  color: black;
  text-decoration: none;
  font-size: 20px;
}

.header .nav-links li a:hover {
  color: var(--verde);
  transform: scale(1.05);
  transition: 0.3s;
}

/* Hamburguesa móvil */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: black;
}

/* =========================================
   HERO & CONTENT
   ========================================= */
.hero-forest {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/cafe.JPG') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-forest h1 { font-size: 3.5rem; text-transform: uppercase; letter-spacing: 3px; }

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  background-color: var(--crema);
}

.split-image img { width: 100%; height: 100%; object-fit: cover; }

.split-text {
  padding: 10%;
  color: var(--oscuro);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subtitle { color: var(--verde); font-weight: bold; text-transform: uppercase; font-size: 0.8rem; }
.split-text h2 { font-size: 2.8rem; margin: 1rem 0; line-height: 1.2; }
.split-text p { margin-bottom: 1rem; line-height: 1.7; font-size: 1.1rem; }

/* =========================================
   CAFES GRID
   ========================================= */
.nuestros-cafes { padding: 5rem 10%; background-color: var(--verde); }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 3rem; margin-bottom: 1rem; }

.cafes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.cafe-card {
  background: var(--crema);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease;
  color: var(--oscuro);
}

.cafe-card:hover { transform: translateY(-15px); }

.cafe-img-container { height: 300px; overflow: hidden; }
.cafe-img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.cafe-card:hover img { scale: 1.1; }

.cafe-info { padding: 1.5rem; text-align: center; }
.cafe-info h3 { margin-bottom: 1rem; color: var(--verde); font-size: 1.4rem; }
.cafe-info p { font-size: 0.95rem; line-height: 1.4; }

/* =========================================
   FOOTER UNIFICADO
   ========================================= */
.contacto-section {
  background-image: url("../img/madera_grande.jpg");
  background-size: cover;
  padding: 80px 20px; /* Padding unificado */
  text-align: center;
}

.contacto-section h2 { color: #000; font-size: 2.2rem; margin-bottom: 10px; }
.contacto-section p { color: #333; margin-bottom: 30px; }
.contacto-icons a { font-size: 2.5rem; color: #000; margin: 0 15px; transition: 0.3s; }
.contacto-icons a:hover { color: var(--verde); transform: scale(1.2); }

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 85px; right: 0; width: 250px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    height: 40rem;
    gap: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active { display: flex; }
  
  .nav-links a { color: black; font-size: 1.2rem; display: block; }

  .hamburger { display: block; font-size: 1.8rem; cursor: pointer; color: black; }

  .split-section { grid-template-columns: 1fr; }
  .hero-forest h1 { font-size: 2.2rem; }
}