/* ─────────────────────────────────────────────────────────────
   flota.css — LexJets fleet page (grid 3×3 + jet modal)
   Replica el patrón fleet-card de fly-supreme con branding noche/oro/hueso.
   Carga DESPUÉS de tabs.css.
   ───────────────────────────────────────────────────────────── */

/* =========================================================
   1. Wrapper de la sección flota
   ========================================================= */

.fleet-grid-section {
  padding: clamp(4rem, 8vw, 6rem) 5vw;
  background: var(--lx-graphite);
  position: relative;
}

.fleet-grid-section .section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.fleet-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.fleet-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--lx-oro);
  margin-bottom: 1.5rem;
}

.fleet-header .eyebrow::before,
.fleet-header .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lx-oro);
  opacity: 0.6;
}

.fleet-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1;
  color: var(--lx-ivory);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.fleet-header h2 em {
  font-style: italic;
  color: var(--lx-oro-light);
  font-weight: 300;
}

.fleet-header p {
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lx-parchment);
  max-width: 580px;
  margin: 0 auto;
}

/* =========================================================
   2. Grid 3×3
   ========================================================= */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(201, 161, 91, 0.12);
}

/* =========================================================
   3. Fleet card
   ========================================================= */

.fleet-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(180deg,
      rgba(15, 18, 33, 0.75) 0%,
      rgba(10, 13, 26, 0.95) 100%);
  border: 1px solid rgba(201, 161, 91, 0.14);
  margin: -0.5px;
  overflow: visible;
  isolation: isolate;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.4s cubic-bezier(.2,.8,.2,1),
    transform 0.4s cubic-bezier(.2,.8,.2,1),
    background 0.4s cubic-bezier(.2,.8,.2,1);
}

.fleet-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(75% 55% at 50% 100%,
    rgba(201, 161, 91, 0.16) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(.2,.8,.2,1);
}

.fleet-card:hover {
  border-color: rgba(201, 161, 91, 0.55);
  background:
    linear-gradient(180deg,
      rgba(15, 18, 33, 0.85) 0%,
      rgba(10, 13, 26, 1) 100%);
  z-index: 2;
}

.fleet-card:hover::before { opacity: 1; }

/* Corner markers (signature 21st.dev — adaptado a oro) */
.fleet-card .corner {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--lx-oro);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(.2,.8,.2,1);
  z-index: 3;
}

.fleet-card .corner.tl { top: -5px; left: -5px; }
.fleet-card .corner.tr { top: -5px; right: -5px; }
.fleet-card .corner.bl { bottom: -5px; left: -5px; }
.fleet-card .corner.br { bottom: -5px; right: -5px; }

.fleet-card:hover .corner { opacity: 1; }

/* Ground shadow */
.fleet-card .ground-shadow {
  position: absolute;
  left: 50%;
  bottom: 28%;
  transform: translateX(-50%);
  width: 55%;
  height: 14px;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(.2,.8,.2,1);
}

.fleet-card:hover .ground-shadow { opacity: 0.7; }

/* Aircraft image container */
.fleet-card .img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.fleet-card .img-wrap img {
  max-width: 82%;
  max-height: 55%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1),
              filter 0.5s cubic-bezier(.2,.8,.2,1);
}

.fleet-card:hover .img-wrap img {
  transform: scale(1.05);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

/* Tail number (solo propias) */
.fleet-card .tail-num {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lx-oro-light);
  z-index: 2;
}

/* Fleet name (bottom centered) */
.fleet-card .fleet-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem 1.4rem;
  text-align: center;
  z-index: 2;
}

.fleet-name {
  position: relative;
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--lx-ivory);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0;
}

/* is-own — subrayado fijo oro */
.fleet-name.is-own {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--lx-oro);
}

/* No is-own — subrayado animado en hover */
.fleet-name:not(.is-own)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--lx-oro);
  transition: width 0.45s cubic-bezier(.2,.8,.2,1),
              left 0.45s cubic-bezier(.2,.8,.2,1);
}

.fleet-card:hover .fleet-name:not(.is-own)::after {
  width: 50%;
  left: 25%;
}

/* Caption mini bajo el nombre — categoría */
.fleet-cat {
  display: block;
  margin-top: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lx-parchment);
  opacity: 0.6;
}

/* =========================================================
   4. Modal — #jetModal
   ========================================================= */

#jetModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 13, 26, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(.2,.8,.2,1);
}

#jetModal.is-open {
  display: flex;
  opacity: 1;
}

#jetModal .jet-modal-panel {
  position: relative;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg,
    rgba(15, 18, 33, 0.98) 0%,
    rgba(10, 13, 26, 1) 100%);
  border: 1px solid rgba(201, 161, 91, 0.32);
  border-radius: 18px;
  box-shadow:
    0 30px 100px -20px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

#jetModal.is-open .jet-modal-panel {
  transform: scale(1);
  opacity: 1;
}

/* Close button */
.jet-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 161, 91, 0.08);
  border: 1px solid rgba(201, 161, 91, 0.25);
  color: var(--lx-bone);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
  z-index: 5;
}

.jet-modal-close:hover {
  background: var(--lx-oro);
  color: var(--lx-noche);
  border-color: var(--lx-oro);
  transform: rotate(90deg);
}

/* Layout split */
.jet-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

/* Imagen lado izquierdo */
.jet-modal-img-side {
  position: relative;
  background:
    radial-gradient(60% 50% at 50% 35%,
      rgba(201, 161, 91, 0.12) 0%, transparent 70%),
    linear-gradient(180deg,
      rgba(15, 18, 33, 0.7) 0%,
      rgba(10, 13, 26, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 360px;
  border-right: 1px solid rgba(201, 161, 91, 0.18);
}

.jet-modal-img-side img {
  max-width: 88%;
  max-height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.7));
}

.jet-modal-img-cat {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lx-oro-light);
}

/* Contenido lado derecho */
.jet-modal-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.jet-modal-cat-mobile {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lx-oro-light);
  margin-bottom: 1rem;
}

.jet-modal-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
  color: var(--lx-ivory);
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
}

/* Spec grid 2×2 */
.jet-modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 161, 91, 0.18);
}

.jet-modal-specs .spec {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.jet-modal-specs .spec-val {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--lx-oro);
}

.jet-modal-specs .spec-label {
  font-family: 'Archivo', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lx-parchment);
}

/* Ideal para */
.jet-modal-ideal-title {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lx-oro);
  margin-bottom: 1rem;
}

.jet-modal-ideal {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.jet-modal-ideal li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--lx-bone);
}

.jet-modal-ideal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 12px;
  height: 1px;
  background: var(--lx-oro);
}

/* CTA modal */
.jet-modal-cta {
  align-self: flex-start;
  padding: 1rem 1.75rem;
  background: var(--lx-noche);
  border: 1px solid var(--lx-oro);
  color: var(--lx-ivory);
  font-family: 'Archivo', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.4s, color 0.4s;
}

.jet-modal-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(227, 197, 127, 0.32) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: shimmer-sweep 3.6s ease-in-out infinite;
}

.jet-modal-cta > span { position: relative; z-index: 1; }

.jet-modal-cta:hover {
  background: var(--lx-oro);
  color: var(--lx-noche);
}

/* Editorial strip — debajo del grid */
.fleet-editorial {
  padding: 5rem 5vw;
  text-align: center;
  background: var(--lx-noche);
  border-top: 1px solid rgba(201, 161, 91, 0.15);
}

.fleet-editorial h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  line-height: 1.1;
  color: var(--lx-ivory);
  margin: 0 0 1.2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.fleet-editorial h3 em {
  font-style: italic;
  color: var(--lx-oro-light);
}

.fleet-editorial p {
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--lx-parchment);
  max-width: 640px;
  margin: 0 auto;
}

.fleet-editorial .eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--lx-oro);
  margin-bottom: 1rem;
}

/* =========================================================
   5. Responsive
   ========================================================= */

@media (max-width: 900px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }

  .jet-modal-grid { grid-template-columns: 1fr; }
  .jet-modal-img-side {
    min-height: 280px;
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(201, 161, 91, 0.18);
  }
  .jet-modal-img-cat { display: none; }
  .jet-modal-cat-mobile { display: block; }
  .jet-modal-content { padding: 2rem 1.75rem; min-height: auto; }
}

@media (max-width: 560px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-card .img-wrap img { max-width: 70%; max-height: 50%; }
  .jet-modal-specs { grid-template-columns: 1fr; gap: 1.2rem; }
  .jet-modal-content h3 { font-size: 1.7rem; }
  #jetModal { padding: 0.5rem; }
  #jetModal .jet-modal-panel { border-radius: 12px; }
}
