/* =========================================
   Industriales GADI — style.css
   ========================================= */

:root {
  --color-accent:  #E53935;
  --color-dark:    #1a1a1a;
  --color-white:   #ffffff;
  --color-gray:    #555555;
  --color-light:   #f5f5f5;
  --font:          'Mulish', sans-serif;
  --container:     1200px;
  --radius:        4px;
  --transition:    0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--color-dark); background: var(--color-white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 3px solid var(--color-accent);
}

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

.navbar-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-nav a {
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.navbar-nav a:hover { color: var(--color-accent); }

.navbar-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 700;
  transition: opacity var(--transition);
}

.navbar-phone:hover { opacity: 0.8; }

.navbar-phone svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide:nth-child(1) { background-image: url('../img/hero-fondo-1.jpg'); }
.hero-slide:nth-child(2) { background-image: url('../img/hero-fondo-2.jpg'); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.hero-dot.active { background: var(--color-white); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 18px 56px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover { background: #c62828; transform: translateY(-2px); }

.btn-accent:hover { background: #c62828; }

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

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

/* =========================================
   SECTION BASE
   ========================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--color-light); }

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-gray);
  margin-bottom: 48px;
  max-width: 640px;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* =========================================
   QUIENES SOMOS
   ========================================= */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.nosotros-heading {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.1;
}

.nosotros-heading span {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-accent);
  margin-top: 16px;
}

.nosotros-text {
  font-size: 17px;
  color: var(--color-gray);
  line-height: 1.7;
}

/* =========================================
   SERVICIOS GALLERY
   ========================================= */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.servicio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}

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

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

.servicio-caption {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.servicio-card:hover .servicio-caption { opacity: 1; }

.servicio-caption h3 {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

/* =========================================
   PRODUCTOS BANNER (dark)
   ========================================= */
.productos-banner {
  background: var(--color-accent);
  padding: 72px 0;
}

.productos-banner .section-title { color: var(--color-white); }
.productos-banner .section-subtitle { color: rgba(255,255,255,0.7); }

.productos-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.productos-cols ul {
  list-style: none;
}

.productos-cols ul li {
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.productos-cols ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* =========================================
   SPLIT SECTIONS (Patines / Apiladores / Equipo)
   ========================================= */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.split-img {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.split-img-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.split-img-slide.active { opacity: 1; }

.split-content {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.split-content p {
  font-size: 16px;
  color: var(--color-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.split-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.split-content ul li {
  color: var(--color-gray);
  font-size: 16px;
  margin-bottom: 6px;
}

.split-envios {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 8px;
}

/* =========================================
   MARCAS
   ========================================= */
.marcas { padding: 60px 0; }

.marcas-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  margin-bottom: 40px;
}

.marcas-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.marcas-grid img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition);
}

.marcas-grid img:hover { filter: grayscale(0%) opacity(1); }

/* =========================================
   ENTREGA
   ========================================= */
.entrega {
  background: var(--color-accent);
  padding: 48px 0;
  text-align: center;
}

.entrega h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

.entrega p {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
}

.entrega strong { color: var(--color-white); font-weight: 800; }

/* =========================================
   NÚMEROS
   ========================================= */
.numeros { background: var(--color-light); padding: 80px 0; text-align: center; }

.numeros h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 48px;
}

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.numero-item .big {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.numero-item p {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 8px;
}

/* =========================================
   CONTACTO
   ========================================= */
.contacto { padding: 80px 0; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contacto-info h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 24px;
}

.contacto-info p {
  font-size: 16px;
  color: var(--color-gray);
  margin-bottom: 12px;
  line-height: 1.6;
}

.contacto-info strong { color: var(--color-dark); }

.contacto-map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.contacto-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* ---- Form ---- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 15px;
  border: 2px solid #d0d0d0;
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color var(--transition);
  background: var(--color-white);
  color: var(--color-dark);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  display: none;
}

.form-msg.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-msg.error   { background: #ffebee; color: #c62828; display: block; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-submit:hover:not(:disabled) { background: #c62828; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--color-dark);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-info {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 24px;
}

/* =========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 34px; }

  .nosotros-grid { grid-template-columns: 1fr; gap: 24px; }

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

  .productos-cols { grid-template-columns: 1fr; }

  .split-section { grid-template-columns: 1fr; }
  .split-img { min-height: 300px; }
  .split-content { padding: 40px 24px; }

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

  .contacto-grid { grid-template-columns: 1fr; }
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
  .navbar-nav,
  .navbar-phone {
    display: none;
  }

  .navbar-toggle { display: flex; }

  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-dark);
    padding: 16px 24px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .navbar-phone.open { display: flex; }

  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 16px; }
  .hero { height: 70vh; }

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

  .marcas-grid { gap: 24px; }
  .marcas-grid img { height: 56px; }

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

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

  .numero-item .big { font-size: 40px; }

  .section { padding: 56px 0; }
}
