/* ==========================================================================
   RANC INTERNACIONAL - SERVICIOS STYLESHEET (Brand Color Matched)
   ========================================================================== */

:root {
  /* Colores Oficiales extraídos del Logo */
  --brand-navy: #002855;
  --brand-orange: #e68a00;
  --brand-orange-hover: #cc7a00;
  --brand-gray: #64748b;

  /* Fondos */
  --bg-dark: #0b192c;
  --bg-dark-surface: #1e293b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;

  /* Textos */
  --text-primary-dark: #f8fafc;
  --text-secondary-dark: #94a3b8;
  --text-primary-light: #002855;
  --text-secondary-light: #475569;

  --accent: var(--brand-orange);
  --accent-glow: rgba(230, 138, 0, 0.25);
  --accent-hover: var(--brand-orange-hover);

  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 40, 85, 0.08);

  /* Tipografía */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace, sans-serif;

  /* Elevación */
  --shadow-sm: 0 2px 8px rgba(0, 40, 85, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(0, 40, 85, 0.1);
  --shadow-glow: 0 0 35px -5px var(--accent-glow);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER EN CRISTAL CLARO */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 40, 85, 0.08);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-navy);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-orange);
}

.btn-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--brand-navy);
  font-size: 1.5rem;
  cursor: pointer;
}

.wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: rgba(230, 138, 0, 0.12);
  border: 1px solid rgba(230, 138, 0, 0.3);
  color: var(--brand-orange);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-orange);
}

.badge-light {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background: rgba(0, 40, 85, 0.06);
  border: 1px solid rgba(0, 40, 85, 0.12);
  color: var(--brand-navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

/* HERO SERVICIOS */
.hero-servicios {
  background: var(--bg-dark);
  color: #fff;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary-dark);
  max-width: 800px;
}

/* TABS DE FILTRADO */
.tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 3rem;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1.5rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  color: var(--text-secondary-dark);
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-glow);
}

/* SECCIÓN CLARA BENTO */
.light-section {
  background: var(--bg-light);
  color: var(--text-primary-light);
  border-radius: 32px 32px 0 0;
  position: relative;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
}

.category-header {
  margin-bottom: 2.5rem;
}

.category-code {
  font-family: var(--font-mono);
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.4rem;
}

.category-header h2 {
  font-size: 2.2rem;
  color: var(--brand-navy);
}

.category-header p {
  color: var(--text-secondary-light);
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 138, 0, 0.4);
}

.span-4 {
  grid-column: span 4;
}
.span-5 {
  grid-column: span 5;
}
.span-6 {
  grid-column: span 6;
}
.span-7 {
  grid-column: span 7;
}
.span-8 {
  grid-column: span 8;
}
.span-12 {
  grid-column: span 12;
}

.stat-big {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
}

.stat-big span {
  color: var(--brand-orange);
}

.fleet-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.spec-item {
  background: var(--bg-light);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-navy);
  border: 1px solid var(--border-light);
}

.aduanas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-pill {
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-navy);
  border: 1px solid var(--border-light);
}

.custom-check-list {
  list-style: none;
}

.custom-check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary-light);
}

.custom-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-orange);
  font-weight: 800;
}

/* BANNER DARK */
.dark-section {
  background: var(--bg-dark-surface);
  border-top: 1px solid var(--border-dark);
}

.cta-banner-card {
  background: linear-gradient(135deg, #1e293b 0%, #0b192c 100%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-category-block.is-hidden {
  display: none;
}

footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary-dark);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }
  .cta-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  .nav-links.is-open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
