/* =====================================================
   Bevelle S.A. de C.V. — Landing Page Styles (styles.css)
   Author: ChatGPT
   Notes: Modern, corporativo, responsive, accesible
   ===================================================== */

/* ----------------------
   1) Base & Reset
----------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* Brand Palette */
  --brand-900: #0b1b2b; /* Azul petróleo oscuro */
  --brand-700: #123a59;
  --brand-600: #17507a;
  --brand-500: #1e6ba6; /* Primario botones */
  --brand-300: #6fa9d6;
  --accent-500: #00c2b2; /* Detalles */
  --neutral-900: #0f172a;
  --neutral-800: #1f2937;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --white: #ffffff;

  /* Layout */
  --container-w: 1180px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 6px 16px rgba(2, 6, 23, 0.06);
  --shadow-md: 0 12px 28px rgba(2, 6, 23, 0.10);
  --shadow-lg: 0 18px 48px rgba(2, 6, 23, 0.18);

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --leading-tight: 1.15;
  --leading-normal: 1.5;

  /* Timing */
  --speed-1: 120ms;
  --speed-2: 220ms;
}

/* A) Reset mínimo y accesibilidad */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--neutral-900);
  background: var(--white);
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }
button, input, select, textarea { font: inherit; }

/* Focus visible accesible */
:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ----------------------
   2) Layout helpers
----------------------- */
.container {
  width: min(100% - 2rem, var(--container-w));
  margin-inline: auto;
}
.section {
  padding: clamp(48px, 6vw, 96px) 0;
}
.bg-light {
  background: linear-gradient(180deg, var(--neutral-100), #fff);
}

/* ----------------------
   3) Typography scale
----------------------- */
 h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -0.02em; }
 h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: var(--leading-tight); margin: 0 0 12px; }
 h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 14px; }
 h3 { font-size: clamp(18px, 2.2vw, 22px); margin: 0 0 8px; }
 p { color: var(--neutral-700); font-size: clamp(15px, 1.2vw, 18px); margin: 10px 0 0; }
 .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--brand-600); font-size: 12px; }

/* ----------------------
   4) Buttons
----------------------- */
.btn-primary, .btn-secondary { 
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 12px 18px; border-radius: var(--radius-md);
  font-weight: 600; transition: transform var(--speed-1) ease, box-shadow var(--speed-2) ease, background var(--speed-1) ease, color var(--speed-1) ease; 
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: var(--white); color: var(--brand-700); border-color: var(--neutral-300); }
.btn-secondary:hover { border-color: var(--brand-300); color: var(--brand-600); box-shadow: var(--shadow-sm); }

/* Button group */
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ----------------------
   5) Hero
----------------------- */
.hero-section {
  position: relative;
  isolation: isolate;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(30,107,166,.20), transparent 60%),
              linear-gradient(180deg, var(--brand-900), var(--brand-700));
  color: var(--white);
  padding: clamp(72px, 8vw, 140px) 0 clamp(56px, 6vw, 96px);
  overflow: hidden;
}
.hero-section::after {
  content: "";
  position: absolute; inset: 0;
  background: url('img/hero-tech-grid-1.png') center/cover no-repeat;
  opacity: .20; pointer-events: none; z-index: -1;
}
.hero-section h1 { color: #eaf4ff; }
.hero-section p { color: #d3e6f7; max-width: 820px; }

/* ----------------------
   6) Features / Quiénes Somos
----------------------- */
.features-list {
  display: grid; gap: 12px; margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.features-list li {
  list-style: none; background: var(--white); border: 1px solid var(--neutral-200);
  padding: 14px 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.features-list strong { color: var(--neutral-800); }

/* ----------------------
   7) Brands grid
----------------------- */
.brands-grid {
  display: grid; gap: 18px; margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brand-card {
  background: var(--white); border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform var(--speed-2) ease, box-shadow var(--speed-2) ease, border-color var(--speed-2) ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.brand-card img { height: 80px; width: auto; object-fit: contain; filter: grayscale(10%); opacity: .95; }
.brand-card p { min-height: 48px; }
.brand-card .btn-secondary { margin-top: 8px; }

/* ----------------------
   8) Solutions grid
----------------------- */
.solutions-grid {
  display: grid; gap: 14px; margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.solution-item {
  background: var(--white); border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-sm);
}

/* ----------------------
   9) Benefits list
----------------------- */
.benefits-list {
  display: grid; gap: 12px; margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.benefits-list li {
  list-style: none; background: var(--white); border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-sm);
}

/* ----------------------
   10) Testimonials
----------------------- */
#testimonios blockquote {
  margin: 0; padding: 22px; background: var(--white);
  border-left: 4px solid var(--brand-500); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); color: var(--neutral-800);
}
#testimonios cite { display: block; color: var(--neutral-600); margin-top: 8px; font-style: normal; }

/* ----------------------
   11) Contact form
----------------------- */
.contact-section .container { max-width: 760px; }
.contact-form {
  margin-top: 16px; display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300); background: var(--white);
  transition: border-color var(--speed-1) ease, box-shadow var(--speed-2) ease;
}
.contact-form textarea { grid-column: 1 / -1; resize: vertical; min-height: 130px; }
.contact-form button { grid-column: 1 / -1; justify-self: start; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 4px rgba(111, 169, 214, .20);
}

/* ----------------------
   12) Footer
----------------------- */
.footer {
  background: linear-gradient(180deg, var(--brand-900), #b1d0ee);
  color: var(--neutral-200);
  padding: 28px 0;
}
.footer-content { display: grid; gap: 12px; align-items: center; justify-items: center; text-align: center; }
.footer-logo { height: 80px; width: auto; opacity: .9; }
.footer-links { list-style: none; display: flex; gap: 14px; padding: 0; margin: 10px 0 0; flex-wrap: wrap; }
.footer-links a { color: #cfe4fb; font-weight: 500; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

/* ----------------------
   13) Utilities
----------------------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ----------------------
   14) Cards Elevation Helpers
----------------------- */
.card { background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ----------------------
   15) Responsive
----------------------- */
@media (max-width: 1024px) {
  .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .hero-buttons { gap: 10px; }
  .features-list, .benefits-list, .solutions-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .brand-card img { height: 36px; }
}

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .btn-primary, .btn-secondary { width: 100%; }
}

/* ----------------------
   16) Animaciones sutiles
----------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-section .container { animation: fadeInUp .6s ease-out both; }

/* ----------------------
   17) Print tweaks (opcional)
----------------------- */
@media print {
  .btn-primary, .btn-secondary, .hero-buttons { display: none !important; }
  .section { padding: 16px 0; }
  a::after { content: " (" attr(href) ")"; font-size: 12px; color: #555; }
}
/* ----------------------
   18) Header & Navigation (nuevo)
----------------------- */
:root { --header-h: 72px; }

.main-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(120%) blur(8px);
  background: color-mix(in oklab, #ffffff 84%, var(--neutral-100));
  border-bottom: 1px solid var(--neutral-200);
}
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}
.logo img { height: 80px; width: auto; display: block; }

/* Nav desktop */
.main-nav ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; color: var(--neutral-800); padding: 10px 12px; border-radius: 10px; }
.main-nav a:hover { background: var(--neutral-100); color: var(--brand-600); }
.main-nav .btn-primary { padding: 10px 14px; }

/* Toggle (mobile) */
.nav-toggle { display: none; border: 1px solid var(--neutral-300); background: var(--white); border-radius: 10px; padding: 8px 12px; }
.nav-toggle.active { border-color: var(--brand-300); }

/* Mobile menu */
@media (max-width: 992px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 50;
    opacity: 0; transform: translateY(-6%); pointer-events: none; transition: opacity var(--speed-2) ease, transform var(--speed-2) ease; }
  .main-nav.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 8px; background: var(--white); border-top: 1px solid var(--neutral-200);
    padding: 14px; box-shadow: var(--shadow-md); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .main-nav a { width: 100%; display: block; }
}

/* Header compact on scroll (opcional) */
@media (min-width: 993px) {
  .main-header.is-scrolled .header-container { min-height: 60px; transition: min-height var(--speed-2) ease; }
}

