/* 
  Beco Distribuidora Custom CSS 
  Modern, Premium, and Responsive
*/

:root {
  /* Brand Colors */
  --beco-blue: #0E47A1;
  --beco-blue-light: #1976D2;
  --beco-blue-dark: #002171;
  --panco-red: #E53935;
  --panco-yellow: #FFB300;
  
  /* Neutral Colors */
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= Reset & Base ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-white { color: var(--bg-white) !important; }
.bg-light { background-color: var(--bg-white); }

.section-subtitle {
  color: var(--panco-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.section-title {
  font-size: 2.5rem;
  color: var(--beco-blue-dark);
  margin-bottom: 1.5rem;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--beco-blue);
  color: var(--bg-white);
  box-shadow: 0 4px 14px 0 rgba(14, 71, 161, 0.39);
}

.btn-primary:hover {
  background-color: var(--beco-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 71, 161, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--beco-blue);
  border: 2px solid var(--beco-blue);
}

.btn-outline:hover {
  background-color: var(--beco-blue);
  color: var(--bg-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

/* ================= Header & Nav ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--beco-blue-dark);
  line-height: 1;
}

.logo-dot {
  color: var(--panco-red);
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--panco-red);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--beco-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--beco-blue-dark);
  cursor: pointer;
}

/* ================= Hero Section ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, #f0f4f8 0%, #e1e8f0 100%);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background-color: rgba(14, 71, 161, 0.2);
  top: -10%;
  right: -5%;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background-color: rgba(229, 57, 53, 0.15);
  bottom: -10%;
  left: -5%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 179, 0, 0.2);
  color: #c98e00;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--beco-blue-dark);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--panco-red);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-xl);
}

.hero-image img {
  border-radius: 12px;
  width: 50%;
  margin: 0 auto;
  object-fit: contain;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 4s ease-in-out infinite;
}

.floating-card i {
  font-size: 2rem;
  color: var(--panco-yellow);
}

.fc-text {
  display: flex;
  flex-direction: column;
}

.fc-text strong {
  color: var(--beco-blue-dark);
  font-family: var(--font-heading);
}

.fc-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.prod-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.prod-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ================= About Section ================= */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--beco-blue);
  color: white;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 6px solid var(--bg-light);
  box-shadow: var(--shadow-md);
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.exp-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
}

.features-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(14, 71, 161, 0.1);
  color: var(--beco-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text-dark);
}

.feature-text span {
  color: var(--text-muted);
}

/* ================= Products ================= */
.section-desc {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--beco-blue-light);
}

.card-img {
  height: 240px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-group {
  display: flex;
  width: 100%;
  height: 100%;
}

.img-group img {
  width: 50%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s ease;
}

.product-card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--beco-blue-dark);
  margin-bottom: 0.5rem;
}

/* ================= Coverage Section ================= */
.coverage {
  background-color: var(--beco-blue-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.coverage::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 24px 24px;
}

.coverage-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.coverage p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--panco-yellow);
  line-height: 1;
}

.stat-text {
  color: white;
  font-weight: 500;
  margin-top: 0.5rem;
}

.glass-panel-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-icon {
  font-size: 5rem;
  color: var(--panco-red);
  margin-bottom: 1.5rem;
}

.glass-panel-dark h4 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ================= Contact Section ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.info-items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(229, 57, 53, 0.1);
  color: var(--panco-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-item h5 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.info-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-link {
  color: var(--beco-blue);
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

/* WhatsApp Action Panel */
.whatsapp-action-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  height: 100%;
}

.wa-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-title {
  color: var(--beco-blue-dark);
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.wa-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 90%;
  text-align: center;
}

.btn-wa {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

.btn-wa:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: white;
}

/* ================= Footer ================= */
.footer {
  background-color: var(--text-dark);
  color: #94a3b8;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: white;
}

/* ================= Animations & Modifiers ================= */
.reveal-up, .reveal-left, .reveal-right, .fade-in-up, .fade-in-left {
  opacity: 0;
  visibility: hidden;
}

/* Base states for JS animation */
.reveal-up.active {
  animation: slideUp 0.6s ease forwards;
  visibility: visible;
}

.reveal-left.active {
  animation: slideRight 0.6s ease forwards;
  visibility: visible;
}

.reveal-right.active {
  animation: slideLeft 0.6s ease forwards;
  visibility: visible;
}

/* For elements above fold (Hero) */
.fade-in-up {
  animation: slideUp 0.8s ease forwards;
  visibility: visible;
}

.fade-in-left {
  animation: slideRight 0.8s ease forwards;
  visibility: visible;
}

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

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* ================= Media Queries ================= */
@media (max-width: 992px) {
  .hero-title { font-size: 2.75rem; }
  .hero-container, .about-container, .coverage-container, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero { text-align: center; padding-top: 120px; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .prod-1, .prod-2 { position: relative; top: auto; left: auto; right: auto; bottom: auto; animation: none; transform: none; box-shadow: none; padding: 0.5rem; display: inline-flex; margin: 0.5rem; }
  .floating-card { position: static; display: inline-flex; margin-top: -20px; background: rgba(255,255,255,0.9); }
  .experience-badge { right: 20px; bottom: -20px; }
  .coverage-map { margin-top: 2rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .navbar {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: white;
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }
  .navbar.open { left: 0; }
  .nav-list { flex-direction: column; align-items: center; width: 100%; gap: 1.5rem; }
  .hero-title { font-size: 2.25rem; }
  .section-padding { padding: 4rem 0; }
  .stats-row { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
