/* ==========================================================================
   RANC INTERNACIONAL - INDEX STYLESHEET (Brand Color Matched)
   ========================================================================== */

:root {
  /* Colores Oficiales extraídos del Logo */
  --brand-navy: #002855; /* Azul Marino Oficial "RANC" */
  --brand-orange: #e68a00; /* Naranja/Dorado Oficial "INTERNATIONAL" */
  --brand-orange-hover: #cc7a00;
  --brand-gray: #64748b; /* Gris de la Esfera */

  /* Fondos del Sitio */
  --bg-dark: #0b192c; /* Fondo Oscuro en Azul Marino Profundo */
  --bg-dark-surface: #1e293b; /* Tarjetas oscuras */
  --bg-light: #f8fafc; /* Fondo Claro Principal */
  --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 y Sombras */
  --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 & NAVEGACIÓN (Cristal Claro para Contrastar el Logo Original)
   ========================================================================== */

.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);
}

/* Botones */
.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);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--brand-navy);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Layout General */
.wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 6rem 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.5rem;
}

.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 SECTION (Azul Marino Profundo)
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 7rem 2rem 5rem;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(
    circle,
    rgba(230, 138, 0, 0.15) 0%,
    rgba(11, 25, 44, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary-dark);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.hero-media-inner {
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  height: 480px;
  position: relative;
}

.hero-media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-tag {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BENTO GRID SECTION (Fondo Claro)
   ========================================================================== */

.light-section {
  background: var(--bg-light);
  color: var(--text-primary-light);
  border-radius: 32px 32px 0 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.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);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 40, 85, 0.12);
  border-color: rgba(230, 138, 0, 0.4);
}

.span-8 {
  grid-column: span 8;
}
.span-4 {
  grid-column: span 4;
}
.span-6 {
  grid-column: span 6;
}
.span-12 {
  grid-column: span 12;
}

.stat-big {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
}

.stat-big span {
  color: var(--brand-orange);
}

.bento-card-media {
  padding: 0;
}

.bento-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.bento-card-body {
  padding: 2rem;
}

.fleet-pill-light {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--brand-navy);
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.fleet-pill-light:hover {
  border-color: var(--brand-orange);
  transform: translateY(-2px);
}

/* ==========================================================================
   DARK SECTION (Proceso Integral, Flota & Formulario)
   ========================================================================== */

.dark-section {
  background: var(--bg-dark-surface);
  color: var(--text-primary-dark);
  padding: 6rem 0;
  border-top: 1px solid var(--border-dark);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  padding: 2rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--brand-orange);
  transform: translateY(-4px);
}

.process-num {
  font-family: var(--font-mono);
  color: var(--brand-orange);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.fleet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.fleet-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  color: var(--text-primary-dark);
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.fleet-pill:hover {
  border-color: var(--brand-orange);
  background: rgba(230, 138, 0, 0.1);
  color: #fff;
}

/* Formulario Dark */
.contact-card-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0b192c 100%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.form-control-dark {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control-dark:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(230, 138, 0, 0.2);
}

/* ==========================================================================
   ANIMACIONES Y RESPONSIVE
   ========================================================================== */

.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);
}

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-8,
  .span-4,
  .span-6 {
    grid-column: span 12;
  }
  .hero-section,
  .contact-card-dark {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .floating-tag {
    left: 0;
    bottom: -1rem;
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .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;
  }
}
