/* =============================================
   FoodLogistic S.A. – Stylesheet
   Estructura: Reset → Variables → Base → Components → Sections → Responsive
   ============================================= */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #1D6FA4;
  --brand-dark:  #124E78;
  --brand-light: #E8F4FB;
  --accent:      #2EAA6E;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --border: #e2e8f0;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --container: 1100px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text-primary); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* --- Utilities --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.section-head { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-head h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.section-head p { color: var(--text-secondary); }

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-nav {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-light); text-decoration: none; }
.btn-nav { background: var(--brand); color: #fff !important; padding: 0.5rem 1.2rem; }
.btn-nav:hover { background: var(--brand-dark); text-decoration: none; }
.btn-full { width: 100%; text-align: center; border: none; font-size: 1rem; padding: 0.9rem; }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.brand-icon { color: var(--brand); font-size: 1.4rem; }
.brand-sa { font-weight: 400; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

/* --- Hero --- */
.hero { padding: 5rem 0 4rem; background: linear-gradient(135deg, var(--brand-light) 0%, #fff 60%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-text { max-width: 540px; }
.hero-badge {
  display: inline-block; background: var(--brand-light); color: var(--brand);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem; border-radius: 99px; margin-bottom: 1.25rem;
  border: 1px solid rgba(29,111,164,0.2);
}
.hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-sub { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow);
}
.hero-card:nth-child(2) { margin-left: 2rem; }
.hero-card:nth-child(3) { margin-left: 1rem; }
.hc-icon { font-size: 1.6rem; }
.hero-card strong { display: block; font-weight: 700; font-size: 0.95rem; }
.hero-card span { font-size: 0.85rem; color: var(--text-muted); }

/* --- Stats --- */
.stats { background: var(--brand); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item strong { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; }
.stat-item span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.ic-blue   { background: #EBF4FB; }
.ic-green  { background: #EAF7EF; }
.ic-amber  { background: #FEF6E4; }
.ic-teal   { background: #E1F5EE; }
.ic-coral  { background: #FAECE7; }
.ic-purple { background: #EEEDFE; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* --- About --- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; }
.about-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.about-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-secondary); }
.about-list li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.about-img-wrap { border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-light); min-height: 240px; position: relative; }
.about-img-wrap img { width: 100%; height: 240px; object-fit: cover; }
.img-placeholder {
  display: none; align-items: center; justify-content: center; flex-direction: column;
  height: 240px; color: var(--brand); gap: 0.5rem;
}
.img-placeholder span { font-size: 3rem; }
.img-placeholder p { font-size: 0.9rem; color: var(--text-secondary); }
.cert-badges { display: flex; gap: 0.75rem; margin-top: 1rem; }
.badge {
  background: #fff; border: 1px solid var(--border);
  border-radius: 99px; padding: 0.35rem 0.9rem;
  font-size: 0.8rem; font-weight: 600; color: var(--brand);
}

/* --- Contact --- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-data { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon { font-size: 1.3rem; margin-top: 2px; }
.contact-item strong { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-item span { font-size: 0.9rem; color: var(--text-secondary); }

.contact-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.form-group input, .form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); }
.form-group textarea { resize: vertical; }
.form-check { flex-direction: row; align-items: center; }
.form-check input { width: auto; margin-right: 0.5rem; }
.form-check label { font-size: 0.82rem; font-weight: 400; }
.form-ok { color: var(--accent); font-weight: 600; margin-top: 0.75rem; font-size: 0.9rem; }

/* --- Footer --- */
.site-footer { background: #0f1929; color: rgba(255,255,255,0.8); padding: 3rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
.footer-brand .brand-icon { color: #5ba8d4; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 0.75rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.site-footer ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .hero h1 { font-size: 1.75rem; }
}