/* ============================================
   GRUPO ARICMA - ESTILOS PREMIUM
   Carrusel infinito + Footer corporativo
   ============================================ */

:root {
  --aricma-navy: #0a1628;
  --aricma-navy-dark: #050d18;
  --aricma-blue: #1e3a8a;
  --aricma-accent: #3b82f6;
  --aricma-gold: #facc15;
  --aricma-text: #e5e7eb;
  --aricma-text-muted: #9ca3af;
}

/* ===== FOOTER PREMIUM 4 COLUMNAS ===== */
.aricma-footer {
  background: linear-gradient(180deg, #050d18 0%, #02060d 100%);
  color: var(--aricma-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.aricma-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}
.aricma-footer__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}
.aricma-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

/* Columna del logo: alineada a la izquierda dentro de su columna */
.aricma-footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-right: 20px;
}

.aricma-footer__brand-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
}
.aricma-footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 26px;
  letter-spacing: 0.2px;
}
.aricma-footer__social {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}
.aricma-footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.aricma-footer__social a:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  border-color: #3b82f6;
}

.aricma-footer__title {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
}
.aricma-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, transparent);
}

.aricma-footer__person {
  margin-bottom: 22px;
}
.aricma-footer__person:last-child { margin-bottom: 0; }
.aricma-footer__person-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}
.aricma-footer__person-role {
  font-size: 12px;
  color: #93c5fd;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.aricma-footer__person-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 5px;
  word-break: break-word;
}
.aricma-footer__person-line i {
  color: #3b82f6;
  font-size: 12px;
  min-width: 14px;
}
.aricma-footer__person-line a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-all;
}
.aricma-footer__person-line a:hover { color: #93c5fd; }

.aricma-footer__contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.55;
}
.aricma-footer__contact-item i {
  color: #3b82f6;
  font-size: 15px;
  margin-top: 3px;
  min-width: 16px;
}
.aricma-footer__contact-item strong {
  display: block;
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
  font-weight: 600;
}

/* Lista de enlaces del footer */
.aricma-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aricma-footer__links li {
  margin-bottom: 12px;
}
.aricma-footer__links li:last-child {
  margin-bottom: 0;
}
.aricma-footer__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  line-height: 1.4;
}
.aricma-footer__links a i {
  color: #3b82f6;
  font-size: 12px;
  min-width: 14px;
  transition: transform 0.3s ease;
}
.aricma-footer__links a:hover {
  color: #93c5fd;
  transform: translateX(4px);
}
.aricma-footer__links a:hover i {
  color: #93c5fd;
}

.aricma-footer__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.25), transparent);
  margin: 50px 0 24px;
  border: 0;
}
.aricma-footer__bottom {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.8;
}
.aricma-footer__bottom strong {
  color: #3b82f6;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.aricma-footer__bottom .tagline {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* RESPONSIVE FOOTER */
@media (max-width: 1024px) {
  .aricma-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}
@media (max-width: 640px) {
  .aricma-footer { padding: 60px 0 24px; }
  .aricma-footer__container { padding: 0 20px; }
  .aricma-footer__grid {
    grid-template-columns: 1fr;
    gap: 38px;
    text-align: left;
  }
  .aricma-footer__social { justify-content: flex-start; }
  .aricma-footer__title { font-size: 12px; }
  .aricma-footer__divider { margin: 40px 0 20px; }
}

/* Prevenir scroll horizontal global por culpa del carrusel/footer */
html, body { overflow-x: hidden; max-width: 100%; }

/* ============================================
   CARRUSEL INFINITO DE MARCAS - V2 MEJORADO
   ============================================ */
.aricma-brands-section {
  background: radial-gradient(ellipse at center, #0f2547 0%, #050d18 70%);
  position: relative;
  overflow: hidden;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}
.aricma-brands-section .section-header h5 {
  color: #93c5fd !important;
  letter-spacing: 3px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.aricma-brands-section .section-header h2 {
  color: #ffffff !important;
  font-weight: 700;
  line-height: 1.3;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
}

.aricma-marquee {
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.aricma-marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: aricma-scroll 45s linear infinite;
  will-change: transform;
}
.aricma-marquee:hover .aricma-marquee__track {
  animation-play-state: paused;
}
@keyframes aricma-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.aricma-brand {
  flex: 0 0 auto;
  width: 200px;
  height: 110px;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.aricma-brand:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 18px 35px rgba(59, 130, 246, 0.45), 0 0 0 2px rgba(59, 130, 246, 0.4);
}
.aricma-brand img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: contrast(1.05);
}

@media (max-width: 1024px) {
  .aricma-brand { width: 170px; height: 95px; padding: 14px 18px; }
  .aricma-marquee__track { gap: 24px; animation-duration: 38s; }
}
@media (max-width: 640px) {
  .aricma-brands-section { padding-top: 70px !important; padding-bottom: 70px !important; }
  .aricma-brand { width: 140px; height: 80px; padding: 12px 14px; border-radius: 10px; }
  .aricma-marquee__track { gap: 18px; animation-duration: 32s; }
  .aricma-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
}

/* ============================================
   HERO SLIDER PREMIUM V3 - ENCAJA EN 100VH
   Altura exacta del viewport - header
   ============================================ */

:root {
  --aricma-header-h: 95px;
}

/* 1. Banner ocupa exactamente el alto visible menos el header */
.banner-area {
  height: calc(100vh - var(--aricma-header-h));
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  position: relative;
}

/* 2. Swiper y sus contenedores heredan ese alto */
.banner-area .swiper.banner__slider,
.banner-area .banner__slider {
  height: 100%;
  width: 100%;
}
.banner-area .swiper-wrapper { height: 100%; }
.banner-area .swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;       /* CENTRADO VERTICAL del contenido */
  position: relative;
  overflow: hidden;
}

/* 3. Overlay tenue sobre cada slide para contraste */
.banner-area .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 13, 24, 0.55) 0%,
    rgba(10, 22, 40, 0.30) 45%,
    rgba(10, 22, 40, 0.08) 80%,
    rgba(10, 22, 40, 0.25) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* 4. Triángulo decorativo y container por encima del overlay */
.banner-area .banner__shape-left1 { z-index: 3 !important; position: absolute; }
.banner-area .container { position: relative; z-index: 5; width: 100%; }

/* 5. ANULAR el padding-vertical original que hacía la sección gigante */
.banner-area .banner__content {
  padding: 0 !important;
  position: relative;
  z-index: 6;
  max-width: 770px;
}

/* 6. Tipografía del kicker y títulos */
.banner-area .banner__content h4 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
.banner-area .banner__content h1 {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
}
.banner-area .banner__content p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* 7. Paginación nueva (.swiper-pagination) — visible siempre dentro del viewport */
.aricma-hero__pagination {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 20;
}
.aricma-hero__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  margin: 0 6px !important;
  transition: all 0.35s ease;
  border-radius: 50%;
}
.aricma-hero__pagination .swiper-pagination-bullet-active {
  background: #3b82f6;
  width: 34px;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Ocultar la paginación vieja .banner__dot-wrp si conflictúa */
.banner-area .banner__dot-wrp { z-index: 19; }

/* ===== RESPONSIVE MOBILE-FIRST ===== */

/* Tablet horizontal */
@media (max-width: 1199px) {
  :root { --aricma-header-h: 90px; }
}

/* Tablet / portátil pequeño */
@media (max-width: 991px) {
  :root { --aricma-header-h: 80px; }
  .banner-area { min-height: 480px; }
  .banner-area .banner__content h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
}

/* Móvil */
@media (max-width: 767px) {
  :root { --aricma-header-h: 72px; }
  .banner-area {
    height: calc(100vh - var(--aricma-header-h));
    min-height: 460px;
  }
  .banner-area .banner__content {
    padding: 0 15px !important;
    text-align: left;
  }
  .banner-area .banner__content h4 {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  .banner-area .banner__content h1 {
    font-size: clamp(1.5rem, 7vw, 2.4rem) !important;
    line-height: 1.2;
  }
  .banner-area .banner__content p {
    font-size: 14.5px;
    line-height: 1.55;
  }
  /* Ocultar <br> manuales para que el párrafo fluya natural */
  .banner-area .banner__content p br { display: none; }

  /* Triángulo decorativo más pequeño y sin scroll horizontal */
  .banner__shape-left1 {
    max-width: 38vw;
    overflow: hidden;
  }
  .banner__shape-left1 img { max-width: 100%; height: auto; display: block; }

  /* Paginación más cerca del fondo */
  .aricma-hero__pagination { bottom: 14px; }
  .aricma-hero__pagination .swiper-pagination-bullet { width: 8px; height: 8px; }
  .aricma-hero__pagination .swiper-pagination-bullet-active { width: 26px; }
}

/* Móvil muy pequeño */
@media (max-width: 480px) {
  .banner-area .banner__content h1 {
    font-size: clamp(1.3rem, 8vw, 2rem) !important;
  }
  .banner-area .banner__content p { font-size: 13.5px; }
  .banner__shape-left1 { max-width: 32vw; }
}

/* Móvil horizontal: asegurar que se vea bien aunque la altura sea poca */
@media (max-height: 500px) and (orientation: landscape) {
  .banner-area { height: auto; min-height: 100vh; }
  .banner-area .banner__content { padding: 40px 0 !important; }
}
