/* AlfAluminum — styles.css        */
/* =============================== */

:root {
  --color-bg: #f8f9fa;
  --color-primary: #0f1e3a;
  --color-primary-light: #4f657d;
  --color-secondary: #5E5f61;
  --color-text: #212529;
  --color-accent: #007bff;
  --color-accent-light: #0056b3;
  --color-card-bg: #ffffff;
  --color-muted: #6c757d;
  --color-footer-bg: #0d1221;
  --color-footer-text: #adb5bd;

  --logo-height: 60px;
  --logo-height-mobile: 48px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* =============================== */
/* HEADER                          */
/* =============================== */

header {
  background: var(--color-primary);
  color: white !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header .logo-img {
  height: 55px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Nav */
header nav a {
  color: white !important;
  margin-left: 1.5rem;
  font-weight: 600;
  transition: 0.25s ease;
}
header nav a:hover { color: #e2e8f0 !important; }

/* Social links */
.social-icons { display: flex; gap: 1rem; }
.social-icons a svg {
  width: 26px; height: 26px;
  fill: white !important;
  transition: 0.25s ease;
}
.social-icons a:hover svg {
  fill: var(--color-accent) !important;
  transform: scale(1.1);
}

.social-icons a:hover img.social-img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(84%) saturate(2746%) hue-rotate(203deg) brightness(97%) contrast(97%);
}

/* =============================== */
/* HERO                            */
/* =============================== */

.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-bg), #ffffff);
}

.hero h1 {
  font-size: 3rem;
  color: var(--color-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-secondary);
  max-width: 700px;
  margin: 1rem auto 0;
}

/* =============================== */
/* GENERAL SECTIONS                */
/* =============================== */

.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-card-bg);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border: 1px solid #e9ecef;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
  background: var(--color-accent);
  color: white;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  transition: .2s;
}
.btn:hover { background: var(--color-accent-light); }

/* =============================== */
/* FEATURE SECTIONS (NEW)          */
/* =============================== */

.feature {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.feature.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-secondary);
}

.feature-img {
  flex: 1;
}

.feature-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* =============================== */
/* SCROLL REVEAL                   */
/* =============================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================== */
/* FOOTER                          */
/* =============================== */

footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: 3rem 1rem;
}

footer a:hover { color: white; }

/* =============================== */
/* RESPONSIVE                      */
/* =============================== */

@media (max-width: 900px) {
  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature.reverse {
    flex-direction: column;
  }

  .feature-img img {
    max-height: 400px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header .logo-img {
    height: 40px;
    max-width: 130px;
  }

  header nav { margin-top: 1rem; }

  .hero h1 { font-size: 2.2rem; }
  .section { padding: 3rem 1rem; }
}
/* FIX: Mantener imagen y texto alineados correctamente */
.highlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 500px;
}

/* Imagen no debe volverse fondo ni romperse */
.highlight-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
   border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Para evitar desbordes */
.highlight-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* FIX RESPONSIVE */
@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: 1fr;
    text-align: justify;
  }

  .highlight-img img {
    max-width: 400px;
    margin: auto;
  }
}

/* Fade + Slide */
.fade-slide {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ICON CARDS PREMIUM */
.icon-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.icon-card img {
  width: 58px;
  height: auto;
  margin-bottom: 14px;
  opacity: 0.9;
}

.icon-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.icon-card p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.85;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* GRID DEL HERO PRINCIPAL */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Imagen izquierda | Texto derecha */
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

/* Imagen del hero */
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Texto del hero */
.hero-text {
  text-align: justify;
}

/* Boton centrado */
.hero-btn-container {
  text-align: center;
  margin-top: 20px;
}

/* GRID DE UBICACIÓN */
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* TEXTO */
.location-text h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.location-text .subtitle {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

/* CAJA DE INFORMACIÓN */
.address-box {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  border: 1px solid #e9ecef;
}

.address-box h4 {
  color: var(--color-primary);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.address-box p {
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* MAPA */
.location-map {
  width: 100%;
  height: 380px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .address-box {
    text-align: left;
    margin: auto;
    max-width: 320px;
  }

  .location-map {
    height: 320px;
  }
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 18px;
  background-color: #25D366;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
}

    /* Ajustes extra por si no están en tu CSS */
    .section {
      padding: 3rem 1.5rem;
    }

    .section-title {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      text-align: justify;
    }

    .privacy-box {
      background: white;
      border-radius: 16px;
      padding: 2rem 2.5rem;
      max-width: 900px;
      margin: auto;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      line-height: 1.8;
      font-size: 1.05rem;
    }

    .privacy-box a {
      color: #003366;
      text-decoration: none;
      font-weight: 600;
    }

   /* =============================== */
/* HERO – UNIFICADO Y CORREGIDO    */
/* =============================== */

/* Contenedor principal del hero */
.hero-grid {
  display: flex;
  flex-direction: column; /* Siempre texto arriba, imagen abajo */
  gap: 2rem;
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: auto;
}

/* Texto del hero */
.hero-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Imagen del hero */
.hero-image img,
.highlight-img img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Botón centrado */
.hero-btn-container {
  text-align: center;
  margin-top: 20px;
}

/* Mejora para pantallas grandes */
@media (min-width: 1100px) {
  .hero-grid {
    gap: 3rem;
    padding: 4rem 2rem;
  }

  .hero-text h1 {
    font-size: 2.7rem;
  }
}

/* Contenedor general */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

/* Contenedor de las imágenes */
.slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

/* Cada imagen */
.slides img {
  width: 100%;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

/* Botones */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width:700px;   /* controla el ancho en desktop */
  height: 400px;      /* controla el alto */
  margin: 0 auto;     /* lo centra */
  border-radius: 12px;
}


.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* mantiene imagen centrada */
  object-position: center; /* CENTRADO EXACTO */
}

.industries-box {
  margin-top: 2.5rem;
  padding: 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.industries-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.industries-tabs .tab {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #666;
  border-bottom: 3px solid transparent;
}

.industries-tabs .tab.active {
  color: #000;
  border-color: var(--color-primary);
}

.industry-panel {
  display: none;
  gap: 2rem;
  align-items: center;
}

.industry-panel.active {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.industry-panel img {
  width: 100%;
  border-radius: 10px;
}

.industry-panel p {
  text-align: justify;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .industry-panel.active {
    grid-template-columns: 1fr;
  }
}


/* HERO CONTENIDO / BORDEADO */
.hero-box {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 2.5rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

/* Mantener el grid interno limpio */
.hero-box .hero-grid {
  gap: 2.5rem;
}

/* Texto más lleno y profesional */
.hero-box .hero-text p {
  text-align: justify;
  line-height: 1.75;
}

/* Título con más presencia */
.hero-box .hero-text h1 {
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Botón alineado naturalmente */
.hero-box .hero-btn-container {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-box {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }

  .hero-box .hero-text p {
    text-align: left; /* mejor legibilidad en móvil */
  }
}

.industry-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.industry-panel.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TABS PROGRESO ===== */
.industries-tabs {
  position: relative;
}

.tab {
  position: relative;
  overflow: hidden;
}

/* Barra de progreso */
.tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-primary);
  transition: width 5s linear;
}

.tab.active::after {
  width: 100%;
}

/* ===== ANIMACIÓN LATERAL SUAVE ===== */
.industry-panel {
  display: none;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.industry-panel.active {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  opacity: 1;
  transform: translateX(0);
}

/* Cuando sale (hacia la izquierda) */
.industry-panel.exit {
  opacity: 0;
  transform: translateX(-40px);
}

/* ===== LINK FICHA ===== */
.ficha-link {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.ficha-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .industry-panel.active {
    grid-template-columns: 1fr;
  }
}
