/* ===== VARIABLES ===== */
:root {
  --primary: #FF8C00;
  --primary-light: #FFD700;
  --primary-dark: #e65c00;
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card2: #222222;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --border: #2a2a2a;
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-title span { background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  font-size: 1rem;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #000;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 140, 0, 0.4); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #000; transform: translateY(-2px); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { padding: 10px 0; box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}
/* Flama: 78% superior del PNG (1222px total → 952px de flama) */
.nav-logo-flame {
  height: 54px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo-flame img {
  height: 69px;        /* 54/69 = 78.3% → flama completa sin cortar */
  width: auto;
}
/* Wordmark: 22% inferior del MISMO PNG — fuente 100% idéntica al logo */
.nav-logo-wordmark {
  height: 24px;        /* área visible = solo el texto LUBREMA */
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
  margin-left: -10px;
}
.nav-logo-wordmark img {
  height: 110px;       /* imagen escalada a 110px: texto=24px, flama=86px */
  width: auto;
  margin-top: -86px;   /* salta la flama (86px) para mostrar solo el texto */
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--text); border-radius: 4px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255, 140, 0, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255, 215, 0, 0.07) 0%, transparent 50%),
              var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.hero-badge span { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }

/* ===== MAPA GUATEMALA ===== */
.guatemala-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.guatemala-svg {
  width: 440px;
  height: 440px;
  filter: drop-shadow(0 0 18px rgba(255,140,0,0.25));
}
.map-fill {
  animation: mapPulse 4s ease-in-out infinite;
}
.map-border {
  animation: borderGlow 4s ease-in-out infinite;
}
.map-logo {
  animation: floatInMap 20s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(255,140,0,0.5));
}
.map-label {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

@keyframes mapPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
@keyframes borderGlow {
  0%, 100% { opacity: 1;   stroke-width: 2; }
  50%       { opacity: 0.6; stroke-width: 3; }
}
/* Logo recorre toda Guatemala — posiciones calculadas con coordenadas GPS reales */
@keyframes floatInMap {
  0%   { transform: translate(0px,    0px);  }   /* Centro — Alta Verapaz */
  11%  { transform: translate(-16px,  15px); }   /* Cobán — Baja Verapaz */
  22%  { transform: translate(38px, -150px); }   /* Flores — Petén (norte) */
  34%  { transform: translate(141px,  11px); }   /* Izabal (noreste) */
  45%  { transform: translate(78px,   90px); }   /* Chiquimula (este) */
  56%  { transform: translate(38px,  149px); }   /* Jutiapa — Costa Pacífica (sur) */
  67%  { transform: translate(-63px, 147px); }   /* Escuintla (suroccidente) */
  78%  { transform: translate(-148px, 86px); }   /* Quetzaltenango (occidente) */
  89%  { transform: translate(-143px, 32px); }   /* Huehuetenango (noroccidente) */
  100% { transform: translate(0px,    0px);  }   /* Centro (vuelve) */
}

/* ===== BRANDS ===== */
.brands { padding: 100px 0; }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
/* Fila 1: 3 tarjetas, cada una ocupa 2 de 6 columnas */
.brands-grid .brand-card { grid-column: span 2; }
/* Fila 2: 2 tarjetas centradas (columnas 2-3 y 4-5 de las 6) */
.brands-grid .brand-card:nth-child(4) { grid-column: 2 / 4; }
.brands-grid .brand-card:nth-child(5) { grid-column: 4 / 6; }

@media (max-width: 768px) {
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .brands-grid .brand-card { grid-column: span 2; }
  .brands-grid .brand-card:nth-child(4) { grid-column: 1 / 3; }
  .brands-grid .brand-card:nth-child(5) { grid-column: 3 / 5; }
}
@media (max-width: 480px) {
  .brands-grid { grid-template-columns: 1fr; }
  .brands-grid .brand-card,
  .brands-grid .brand-card:nth-child(4),
  .brands-grid .brand-card:nth-child(5) { grid-column: 1; }
}
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  color: inherit;
}
.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-color, var(--primary));
}
.brand-card:hover { transform: translateY(-6px); border-color: rgba(255,140,0,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.brand-logo-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
}
.brand-logo-wrap img { max-height: 60px; max-width: 180px; object-fit: contain; }
.brand-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.brand-card p { font-size: 0.88rem; color: var(--text-muted); }
.brand-origin {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(255,140,0,0.1);
  color: var(--primary);
  font-weight: 600;
}

/* ===== PRODUCTS ===== */
.products { padding: 100px 0; background: linear-gradient(180deg, var(--bg) 0%, #111111 100%); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.product-card:hover { border-color: var(--primary); background: var(--bg-card2); transform: translateY(-4px); }
.product-icon { font-size: 2.4rem; margin-bottom: 0.8rem; }
.product-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.product-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== ABOUT ===== */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap {
  position: relative;
}
.about-img-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.about-logo {
  width: 180px;
  margin: 0 auto 0.8rem;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255,140,0,0.4));
}
.about-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.4rem;
}
.about-brands-mini {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.brand-mini-item {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: var(--transition);
}
.brand-mini-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(255,140,0,0.3); }
.brand-mini-item img { width: 100%; height: 100%; object-fit: contain; }
.about-badge {
  position: absolute;
  top: -16px; right: -16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #000;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(255,140,0,0.4);
}
.about-badge strong { display: block; font-size: 1.6rem; }
.about-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1.2rem; }
.about-content h2 span { background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; }
.about-features { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.feature-item { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.feature-item::before { content: '✓'; width: 24px; height: 24px; background: rgba(255,140,0,0.15); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: #111; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.contact-info h2 span { background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { width: 44px; height: 44px; background: rgba(255,140,0,0.1); border: 1px solid rgba(255,140,0,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item-text strong { display: block; font-size: 0.85rem; color: var(--primary); margin-bottom: 2px; }
.contact-item-text span { font-size: 0.95rem; color: var(--text-muted); }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-link {
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #000; transform: translateY(-3px); }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,140,0,0.1); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== FOOTER ===== */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand img {
  height: 64px;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,140,0,0.25));
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 280px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text-muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-bottom span { color: var(--primary); }

/* ===== ANIMATIONS ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { justify-content: center; order: -1; }
  .hero-logo-wrap { width: 260px; height: 260px; }
  .hero-logo-wrap img { width: 190px; }
  .hero-ring-1 { width: 300px; height: 300px; }
  .hero-ring-2 { width: 360px; height: 360px; }
  .hero p { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,13,13,0.98); padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
