/* ============================================================
   ARSA Logística — Rediseño Corporativo Premium
   css/index-redesign.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --arsa-blue:       #1953A0;
  --arsa-blue-dark:  #0D3B7A;
  --arsa-blue-deep:  #071E45;
  --arsa-gold:       #F5A600;
  --arsa-gold-dark:  #D48F00;
  --arsa-white:      #FFFFFF;
  --arsa-off-white:  #F4F7FC;
  --arsa-text:       #111827;
  --arsa-muted:      #5C6070;
  --arsa-border:     rgba(25, 83, 160, 0.10);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:   0 4px 16px rgba(25, 83, 160, 0.06);
  --shadow-md:   0 8px 32px rgba(25, 83, 160, 0.12);
  --shadow-lg:   0 20px 56px rgba(25, 83, 160, 0.18);
  --radius:      16px;
}

body {
  font-family: var(--font-body);
  color: var(--arsa-text);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.arsa-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arsa-gold);
  background: rgba(245, 166, 0, 0.1);
  border: 1px solid rgba(245, 166, 0, 0.35);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.arsa-tag--light {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

.arsa-section-header { text-align: center; margin-bottom: 60px; }

.arsa-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--arsa-text);
  line-height: 1.05;
  margin-bottom: 14px;
}

.arsa-section-title--light { color: var(--arsa-white); }

.arsa-section-sub {
  font-size: 0.98rem;
  color: var(--arsa-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Buttons */
.arsa-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.arsa-btn--primary {
  background: var(--arsa-blue);
  color: var(--arsa-white);
  border-color: var(--arsa-blue);
}
.arsa-btn--primary:hover {
  background: var(--arsa-blue-dark);
  border-color: var(--arsa-blue-dark);
  color: var(--arsa-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(25, 83, 160, 0.35);
}

.arsa-btn--ghost {
  background: transparent;
  color: var(--arsa-white);
  border-color: rgba(255,255,255,0.45);
}
.arsa-btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
  color: var(--arsa-white);
  transform: translateY(-2px);
}

.arsa-btn--gold {
  background: var(--arsa-gold);
  color: #1A1100;
  border-color: var(--arsa-gold);
  font-weight: 700;
}
.arsa-btn--gold:hover {
  background: var(--arsa-gold-dark);
  border-color: var(--arsa-gold-dark);
  color: #1A1100;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 166, 0, 0.38);
}

/* Scroll-reveal base */
.arsa-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.arsa-reveal.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   1. HERO
   ============================================================ */
.arsa-hero {
  position: relative;
  height: 90vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.arsa-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay: izquierda oscura para legibilidad del texto HTML,
   derecha semi-transparente para que el texto del video se vea */
.arsa-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(7, 30, 69, 0.92) 0%,
      rgba(7, 30, 69, 0.75) 25%,
      rgba(7, 30, 69, 0.45) 50%,
      rgba(7, 30, 69, 0.15) 75%,
      rgba(7, 30, 69, 0.05) 100%
    ),
    linear-gradient(
      to top,
      rgba(7, 30, 69, 0.55) 0%,
      transparent 30%
    );
}

.arsa-hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 90px 0 48px;
}

/* Live badge */
.arsa-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 30px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.arsa-hero__dot {
  width: 7px; height: 7px;
  background: var(--arsa-gold);
  border-radius: 50%;
  animation: arsaPulse 2s ease-in-out infinite;
}

@keyframes arsaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.7); }
}

/* Title */
.arsa-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--arsa-white);
  line-height: 0.97;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.arsa-hero__title em {
  font-style: normal;
  color: var(--arsa-gold);
}

.arsa-hero__sub {
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.72;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 42px;
}

.arsa-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats bar — pegada debajo del hero */
.arsa-stats-wrap {
  background: #071E45;
  position: relative;
  z-index: 5;
}

.arsa-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.arsa-stat {
  padding: 22px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.25s;
}
.arsa-stat:last-child { border-right: none; }
.arsa-stat:hover { background: rgba(255,255,255,0.06); }

.arsa-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--arsa-gold);
  line-height: 1;
  margin-bottom: 5px;
}

.arsa-stat__lbl {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}


/* ============================================================
   2. TAGLINE BAND
   ============================================================ */
.arsa-band {
  background: var(--arsa-blue);
  padding: 52px 0;
}

.arsa-band__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.arsa-band__rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
  min-width: 30px;
}

.arsa-band__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.01em;
}

.arsa-band__text strong { color: var(--arsa-gold); font-weight: 700; }


/* ============================================================
   3. SERVICES
   ============================================================ */
.arsa-services {
  background: var(--arsa-off-white);
  padding: 100px 0;
}

/* 6-col base: 3 cards row-1 (span 2 each), 2 cards row-2 centered */
.arsa-srv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.arsa-srv-grid .arsa-srv:nth-child(1),
.arsa-srv-grid .arsa-srv:nth-child(2),
.arsa-srv-grid .arsa-srv:nth-child(3) {
  grid-column: span 2;
}

.arsa-srv-grid .arsa-srv:nth-child(4) { grid-column: 2 / 4; }
.arsa-srv-grid .arsa-srv:nth-child(5) { grid-column: 4 / 6; }

/* Card */
.arsa-srv {
  background: var(--arsa-white);
  border-radius: var(--radius);
  padding: 32px 26px 26px;
  border: 1px solid var(--arsa-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.arsa-srv::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--arsa-blue), var(--arsa-gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.arsa-srv:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(25,83,160,0.18);
}
.arsa-srv:hover::after { opacity: 1; }

/* Featured card */
.arsa-srv--feat {
  background: var(--arsa-blue);
  border-color: var(--arsa-blue);
}
.arsa-srv--feat::after { opacity: 1; }
.arsa-srv--feat:hover { transform: translateY(-6px); border-color: var(--arsa-blue-dark); }

.arsa-srv--feat .arsa-srv__icon { background: rgba(255,255,255,0.14); color: var(--arsa-gold); }
.arsa-srv--feat .arsa-srv__name { color: var(--arsa-white); }
.arsa-srv--feat .arsa-srv__desc { color: rgba(255,255,255,0.74); }
.arsa-srv--feat .arsa-srv__link { color: var(--arsa-gold); }

/* Card inner */
.arsa-srv__icon {
  width: 54px; height: 54px;
  background: rgba(25,83,160,0.07);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--arsa-blue);
  margin-bottom: 20px;
  transition: transform 0.25s var(--ease), background 0.25s;
  flex-shrink: 0;
}
.arsa-srv:hover .arsa-srv__icon { transform: scale(1.08); background: rgba(25,83,160,0.12); }
.arsa-srv--feat:hover .arsa-srv__icon { background: rgba(255,255,255,0.2); transform: scale(1.08); }

.arsa-srv__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--arsa-text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.arsa-srv__desc {
  font-size: 0.88rem;
  color: var(--arsa-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 22px;
}

.arsa-srv__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--arsa-blue);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
  margin-top: auto;
}
.arsa-srv__link:hover { gap: 10px; }
.arsa-srv--feat .arsa-srv__link:hover { color: #fff; }


/* ============================================================
   4. HERITAGE / NOSOTROS
   ============================================================ */
.arsa-heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.arsa-heritage__img-col {
  position: relative;
  overflow: hidden;
}

/* Oculta la parte inferior oxidada del barco con degradado */
.arsa-heritage__img-col::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* El badge "Desde 2015" queda por encima del degradado */
.arsa-heritage__badge {
  z-index: 2;
}

.arsa-heritage__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease);
}
.arsa-heritage__img-col:hover .arsa-heritage__img { transform: scale(1.03); }

.arsa-heritage__badge {
  position: absolute;
  bottom: 32px; right: 28px;
  background: var(--arsa-gold);
  color: #1A1100;
  padding: 14px 22px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.arsa-heritage__badge-since {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.arsa-heritage__badge-year {
  display: block;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.arsa-heritage__text-col {
  background: var(--arsa-white);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arsa-heritage__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--arsa-text);
  line-height: 1.08;
  margin-bottom: 20px;
}
.arsa-heritage__title em { font-style: normal; color: var(--arsa-blue); }

.arsa-heritage__body {
  font-size: 1rem;
  color: var(--arsa-muted);
  line-height: 1.72;
  margin-bottom: 32px;
}
.arsa-heritage__body strong { color: var(--arsa-text); font-weight: 600; }

.arsa-checks { display: flex; flex-direction: column; gap: 13px; margin-bottom: 36px; }

.arsa-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--arsa-text);
}
.arsa-check i { color: var(--arsa-blue); font-size: 1rem; flex-shrink: 0; }


/* ============================================================
   5. HOW WE WORK
   ============================================================ */
.arsa-how {
  background: var(--arsa-blue-deep);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow */
.arsa-how::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,0,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.arsa-how::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,83,160,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.arsa-how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.arsa-how-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.arsa-how-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(245,166,0,0.28);
  transform: translateY(-4px);
}

/* Big ghost number */
.arsa-how-card__num {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  transition: color 0.3s;
}
.arsa-how-card:hover .arsa-how-card__num { color: rgba(245,166,0,0.07); }

.arsa-how-card__icon {
  width: 48px; height: 48px;
  background: rgba(245,166,0,0.10);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--arsa-gold);
  margin-bottom: 22px;
  transition: background 0.25s, transform 0.25s;
}
.arsa-how-card:hover .arsa-how-card__icon { background: rgba(245,166,0,0.18); transform: scale(1.06); }

.arsa-how-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arsa-white);
  margin-bottom: 12px;
}

.arsa-how-card__text {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.56);
  line-height: 1.68;
  margin: 0;
}


/* ============================================================
   6. FINAL CTA
   ============================================================ */
.arsa-cta {
  background: var(--arsa-blue);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.arsa-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(245,166,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(7,30,69,0.55) 0%, transparent 55%);
  pointer-events: none;
}

.arsa-cta__inner {
  position: relative; z-index: 1;
}

.arsa-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--arsa-white);
  line-height: 1;
  margin: 16px 0 18px;
}

.arsa-cta__sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 44px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.arsa-cta__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.arsa-cta__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.arsa-cta__tel:hover { color: var(--arsa-white); }
.arsa-cta__tel i { font-size: 1.1rem; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .arsa-how__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  /* Services: 2 col */
  .arsa-srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arsa-srv-grid .arsa-srv:nth-child(1),
  .arsa-srv-grid .arsa-srv:nth-child(2),
  .arsa-srv-grid .arsa-srv:nth-child(3),
  .arsa-srv-grid .arsa-srv:nth-child(4),
  .arsa-srv-grid .arsa-srv:nth-child(5) {
    grid-column: span 1;
  }

  /* Heritage stacked */
  .arsa-heritage { grid-template-columns: 1fr; }
  .arsa-heritage__img-col { height: 360px; }
  .arsa-heritage__text-col { padding: 48px 40px; }

  /* Stats 2x2 */
  .arsa-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .arsa-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .arsa-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.1); }
  .arsa-stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 767px) {
  .arsa-hero { height: auto; min-height: 100svh; }
  .arsa-hero__body { padding: 90px 0 36px; }

  .arsa-hero__title { font-size: clamp(2.8rem, 11vw, 4rem); }
  .arsa-hero__sub { font-size: 0.94rem; }
  .arsa-hero__ctas { flex-direction: column; }
  .arsa-hero__ctas .arsa-btn { justify-content: center; }

  .arsa-stats-bar { grid-template-columns: repeat(2, 1fr); border-radius: 12px 12px 0 0; }
  .arsa-stat { padding: 18px 12px; }
  .arsa-stat__num { font-size: 1.7rem; }

  .arsa-band__inner { flex-direction: column; gap: 14px; }
  .arsa-band__rule { flex: none; width: 60px; }

  .arsa-srv-grid { grid-template-columns: 1fr; }

  .arsa-heritage__img-col { height: 260px; }
  .arsa-heritage__text-col { padding: 36px 24px; }
  .arsa-heritage__badge { bottom: 20px; right: 16px; padding: 10px 16px; }
  .arsa-heritage__badge-year { font-size: 2.6rem; }

  .arsa-how__grid { grid-template-columns: 1fr; }

  .arsa-cta__row { flex-direction: column; gap: 20px; }

  .arsa-section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .arsa-stats-bar { grid-template-columns: 1fr; }
  .arsa-stat { border-right: none; border-left: none !important; }
}
