/* =========================================================================
   VentaDeCables.com.ar — Landing Page
   Identidad visual inspirada en Cetya (fábrica de cables): azul institucional,
   gris oscuro y naranja de acento. Mobile-first, sin dependencias externas.
   ========================================================================= */

/* ---------- 1. Variables de marca ---------- */
:root {
  --color-navy: #0a2a43;          /* Azul institucional oscuro (header, footer, fondos fuertes) */
  --color-blue: #145d9c;          /* Azul principal (CTA primario) */
  --color-blue-light: #1c74c2;    /* Azul hover */
  --color-gray-dark: #2b2f33;     /* Gris oscuro (texto principal) */
  --color-gray: #5b6570;          /* Gris texto secundario */
  --color-gray-light: #f2f4f7;    /* Fondo gris claro (bloque de confianza) */
  --color-border: #e2e6ea;
  --color-orange: #f5821f;        /* Naranja de acento / urgencia */
  --color-orange-dark: #d96e10;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebe5b;
  --color-white: #ffffff;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 42, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 42, 67, 0.14);
  --container-width: 1180px;
}

/* ---------- 2. Reset básico ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* compensa el header sticky al usar anclas */
}

body {
  font-family: var(--font-base);
  color: var(--color-gray-dark);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* red de seguridad ante cualquier desborde horizontal */
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
}

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

section {
  padding: 64px 0;
}

.section-lead {
  color: var(--color-gray);
  font-size: 1.05rem;
  max-width: 640px;
  margin-top: 8px;
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--color-blue-light);
}

.btn-cta {
  background-color: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(245, 130, 31, 0.35);
}
.btn-cta:hover {
  background-color: var(--color-orange-dark);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
}
.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
  padding: 10px 20px;
}
.btn-outline:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-navy);
}

.logo-icon {
  color: var(--color-orange);
}

.logo-accent {
  color: var(--color-orange);
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  color: var(--color-gray-dark);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--color-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: none;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.92rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 5. Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, #123a5c 100%);
  color: var(--color-white);
  padding: 56px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

/* Evita que las imágenes con ancho/alto intrínsecos grandes desborden
   la celda del grid en mobile (bug clásico de CSS Grid + <img>) */
.hero-content,
.hero-media {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #d7e3ee;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: #cfe0ee;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-highlights i {
  color: var(--color-orange);
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- 6. Bloque de confianza ---------- */
.trust {
  background-color: var(--color-gray-light);
}

.trust-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.trust-stat {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-orange);
}

.trust-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.trust-label {
  color: var(--color-gray);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-caption {
  text-align: center;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.logo-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-box:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- 7. Solución industrial ---------- */
.solution {
  text-align: center;
}

.solution h2 {
  font-size: 1.8rem;
}

.solution .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.solution-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.solution-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.solution-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(20, 93, 156, 0.1);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.solution-card p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* ---------- 8. Productos destacados ---------- */
.products {
  background-color: var(--color-gray-light);
}

.products h2 {
  font-size: 1.8rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-body {
  padding: 20px;
}

.product-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.product-body p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
  min-height: 42px;
}

/* ---------- 9. Formulario de conversión ---------- */
.lead-form {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.form-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.form-copy h2 {
  color: var(--color-white);
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.form-copy p {
  color: #cfe0ee;
  margin-bottom: 20px;
}

.form-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-benefits i {
  color: var(--color-orange);
}

.quote-form {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.form-row {
  margin-bottom: 16px;
}

.form-row-half {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gray-dark);
  margin-bottom: 6px;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-gray-dark);
  background-color: var(--color-white);
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-blue);
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-gray);
  text-align: center;
  min-height: 20px;
}

.form-note.is-success {
  color: #1a9c4c;
  font-weight: 700;
}

/* ---------- 10. Cierre de urgencia ---------- */
.urgency {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  color: var(--color-white);
  padding: 40px 0;
}

.urgency-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.urgency-icon {
  font-size: 2rem;
}

.urgency h2 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.urgency p {
  color: #fff2e6;
}

.urgency .btn-cta {
  background-color: var(--color-navy);
  box-shadow: none;
  flex-shrink: 0;
}
.urgency .btn-cta:hover {
  background-color: #071f33;
}

/* ---------- 11. Footer ---------- */
.site-footer {
  background-color: #071c2e;
  color: #b9c7d4;
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.logo-footer {
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-col p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ---------- 12. Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 200;
  animation: pulse-whatsapp 2.4s infinite;
}

.whatsapp-float:hover {
  background-color: var(--color-whatsapp-dark);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================================
   MOBILE NAV (menú hamburguesa) — visible solo en breakpoint móvil
   ========================================================================= */
@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.is-open {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .header-actions .btn-sm {
    display: none;
  }
}

/* =========================================================================
   BREAKPOINTS — mobile-first: a partir de acá, pantallas más grandes
   ========================================================================= */

/* Tablet: 600px+ */
@media (min-width: 600px) {
  .trust-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row-half {
    grid-template-columns: 1fr 1fr;
  }

  .urgency-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Desktop pequeño: 768px+ */
@media (min-width: 768px) {
  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Desktop: 900px+ (nav completa visible) */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: none;
    background: transparent;
  }

  .main-nav ul {
    flex-direction: row;
    padding: 0;
  }

  .main-nav a {
    padding: 0;
    border-bottom: none;
  }

  .header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop grande: 1100px+ */
@media (min-width: 1100px) {
  .logo-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
