:root {
  /* Paleta: Artesanal y Moderna */
  --primary: #1F4E5F;       /* Azul petróleo */
  --primary-light: #29667C;
  --secondary: #F7F3EA;     /* Crema */
  --accent: #C66A4A;        /* Terracota */
  --accent-hover: #B05D41;
  --mostaza: #D6A84F;       /* Detalles pequeños */
  --text: #252525;          /* Carbón */
  --text-light: #5A5A5A;    /* Gris oscuro */
  --border: #E8E2D2;        /* Crema oscuro para bordes */
  --card-bg: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--secondary);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía Moderna y Premium */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Utilidades */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--mostaza);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

/* Elementos Globales */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(31, 78, 95, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(31, 78, 95, 0.1);
  border-color: var(--accent);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--mostaza) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-panel:hover::before {
  opacity: 1;
}

/* Botones Premium */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: 30px; /* Pill shape for modern look */
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(198, 106, 74, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(198, 106, 74, 0.4);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 36px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* Navbar rediseñada: Azul Petróleo Translúcida */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(31, 78, 95, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.navbar-links a {
  color: var(--secondary);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-links a:hover {
  color: var(--mostaza);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--mostaza);
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Asymmetrical Grid / Masonry Style para Productos */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  cursor: pointer;
}

.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.bento-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-item:hover img {
  transform: scale(1.08);
}

.bento-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(31, 78, 95, 0.9) 0%, transparent 100%);
  padding: 30px 20px 20px 20px;
  color: white;
  transform: translateY(20px);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.bento-item:hover .bento-overlay {
  transform: translateY(0);
  opacity: 1;
}

.bento-overlay h3 {
  color: white;
  margin: 0 0 5px 0;
  font-size: 1.4rem;
}

.bento-overlay span {
  color: var(--mostaza);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .bento-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .bento-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
}

/* Global WhatsApp Button */
.whatsapp-global-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whatsapp-global-btn:hover {
  transform: scale(1.1) translateY(-5px);
}
