/* =========================================================
   CENTRAL TAXI AIRPORT LIMA — common.css
   Compartido por todas las páginas: variables, navbar, botones,
   footer, utilidades de sección y animación (scroll-reveal).
   Paleta basada en el logo: negro, dorado, blanco humo.
   ========================================================= */
:root {
  --color-black: #0d0d0d;
  --color-black-soft: #161616;
  --color-dark: #1e1e1e;
  --color-gold: #c9a227;
  --color-gold-light: #e8c874;
  --color-gold-dark: #8a6d1a;
  --color-white: #f5f5f2;
  --color-gray: #b8b8b8;

  --font-main: 'Poppins', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Poppins', sans-serif;

  /* Curvas de animación (skill: animate) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-dark);
  overflow-x: hidden;
}

a { text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  text-wrap: balance;
}

/* Enlace "saltar al contenido" (accesibilidad teclado) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-gold);
  color: var(--color-black);
  padding: .6rem 1rem;
  font-weight: 700;
  z-index: 2000;
  border-radius: 0 0 .4rem 0;
}
.skip-link:focus {
  left: 0;
}

/* Foco visible (accesibilidad teclado) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ===== Botones ===== */
.btn-gold, .btn-outline-gold, .btn-outline-light {
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out),
              color .2s var(--ease-out), transform .12s var(--ease-out);
}
.btn-gold {
  background-color: var(--color-gold);
  border: 1px solid var(--color-gold);
  color: var(--color-black);
  font-weight: 600;
  letter-spacing: .3px;
}
.btn-gold:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-black);
}
.btn-outline-gold {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
  font-weight: 600;
}
.btn-outline-gold:hover { background-color: var(--color-gold); color: var(--color-black); }

.btn-gold:active, .btn-outline-gold:active, .btn-outline-light:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover, .btn-outline-gold:hover { transform: translateY(-1px); }
}

/* ===== Cabecera (fila 1: logo a la izquierda, marca centrada, reservar a la derecha) ===== */
.brand-header {
  background-color: var(--color-black);
  padding: 1.1rem 1rem;
}
@media (min-width: 768px) {
  .brand-header { padding: 1.5rem 2rem; }
}
.brand-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo-link { flex-shrink: 0; }
.brand-logo-xl {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  display: block;
}
@media (min-width: 768px) {
  .brand-logo-xl { width: 96px; height: 96px; border-width: 3px; }
}
@media (min-width: 1200px) {
  .brand-logo-xl { width: 118px; height: 118px; border-width: 4px; }
}

.brand-center { flex: 1 1 auto; min-width: 0; text-align: center; }
.brand-name-xl {
  font-family: var(--font-display);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(1.15rem, 4.5vw, 2.9rem);
  margin-bottom: .35rem;
  line-height: 1.15;
}
.brand-name-xl span { display: block; color: var(--color-gold); font-size: .55em; letter-spacing: .25em; font-weight: 600; }
.brand-tagline-xl {
  color: var(--color-gray);
  font-style: italic;
  font-size: clamp(.7rem, 1.6vw, 1.15rem);
  margin-bottom: 0;
}

.brand-reserve { flex-shrink: 0; white-space: nowrap; }
.brand-reserve .btn-label { display: none; }
@media (min-width: 576px) {
  .brand-reserve .btn-label { display: inline; }
}

/* ===== Barra de navegación (fila 2, se pega arriba al hacer scroll) ===== */
#mainNavbar {
  background-color: var(--color-black-soft);
  border-top: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s var(--ease-out);
  z-index: 1030;
}
#mainNavbar .container-fluid { position: relative; }
#mainNavbar .navbar-nav { gap: .25rem; }
#mainNavbar .nav-link {
  color: var(--color-gray) !important;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .3px;
  padding: .9rem 1.1rem !important;
  position: relative;
  transition: color .2s var(--ease-out);
}
#mainNavbar .nav-link::after {
  content: "";
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: .3rem;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
#mainNavbar .nav-link:hover { color: var(--color-gold) !important; }
#mainNavbar .nav-link:hover::after,
#mainNavbar .nav-link.active::after { transform: scaleX(1); }
#mainNavbar .nav-link.active { color: var(--color-gold) !important; }
#mainNavbar .navbar-toggler {
  border-color: rgba(255,255,255,.25);
  padding: .35rem .6rem;
}

/* Selector de idioma tipo segmentado, con banderas (dentro de la barra de nav) */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: .2rem;
  gap: .2rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
@media (min-width: 992px) {
  .lang-switch { right: 1.5rem; }
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--color-gray);
  font-weight: 700;
  font-size: .8rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.lang-switch button.active {
  background-color: var(--color-gold);
  color: var(--color-black);
}

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  z-index: 1050;
  animation: floatPulse 2.6s var(--ease-in-out) infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(37,211,102,.45); }
  50% { box-shadow: 0 6px 26px rgba(37,211,102,.85); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ===== Scroll reveal (reemplaza librería externa: CSS transitions, skill "animate") ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="zoom"] { transform: scale(0.94); }
[data-reveal="zoom"].is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===== Secciones genéricas ===== */
.section-padding { padding: 5rem 0 5.75rem; }
.section-dark { background-color: var(--color-black); color: var(--color-white); }
.section-dark .section-text, .section-dark p { color: var(--color-gray); }

.section-tag {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 600;
  font-style: italic;
  font-size: .95rem;
  margin-bottom: .5rem;
}
.section-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -.01em;
  margin-bottom: 1.2rem;
  color: inherit;
}
.section-text { color: #555; line-height: 1.75; max-width: 62ch; }
.shadow-gold { box-shadow: 0 10px 35px rgba(201, 162, 39, .25); }

/* ===== Banner de página interna (Nosotros/Servicios/Contacto) ===== */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.page-hero .hero-overlay { z-index: 1; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--color-white);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.breadcrumb-gold { color: var(--color-gray); font-weight: 500; }
.breadcrumb-gold a { color: var(--color-gold); }
.breadcrumb-gold .sep { margin: 0 .4rem; color: var(--color-gold); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,.96) 0%, rgba(13,13,13,.88) 45%, rgba(13,13,13,.72) 100%);
}

/* ===== Tarjetas de flota, estilo claro (compartidas entre Inicio y Servicios) ===== */
.fleet-card-light {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .fleet-card-light:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
}
.fleet-card-light .fleet-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: .15rem;
}
.fleet-card-light .fleet-subtitle {
  color: #888;
  font-size: .85rem;
  margin-bottom: 1.1rem;
}
.fleet-card-light img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  margin-bottom: 1.1rem;
}
.fleet-capacity-light {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
  font-size: .88rem;
  color: #444;
}
.fleet-capacity-light i { color: var(--color-gold); margin-right: .4rem; width: 18px; text-align: center; }

/* ===== CTA final (compartido) ===== */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  text-align: center;
}
.cta-section .container { position: relative; z-index: 2; color: var(--color-white); }
.cta-section h2 { font-weight: 800; }

/* ===== Footer ===== */
.footer { background-color: var(--color-black); color: var(--color-gray); padding: 3rem 0 1.5rem; }
.footer-logo { width: 108px; height: 108px; object-fit: cover; border-radius: 50%; border: 3px solid var(--color-gold); }
.footer-copy { font-size: .85rem; color: #777; }
.footer-links { font-size: .85rem; }
.footer-links a { color: var(--color-gray); }
.footer-links a:hover { color: var(--color-gold); }

/* ===== Medios de pago (footer) ===== */
.footer-payment-title {
  font-size: .85rem;
  color: var(--color-gray);
  font-style: italic;
  margin-bottom: .8rem;
}
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
}
.payment-methods i {
  transition: transform .2s var(--ease-out), filter .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .payment-methods i:hover { transform: translateY(-2px) scale(1.08); filter: brightness(1.2); }
}
/* Colores de marca de cada método, aclarados para verse bien sobre fondo negro */
.payment-methods .bi-cash-coin { color: #5fd170; }
.payment-methods .fa-cc-visa { color: #4f8fd6; }
.payment-methods .fa-cc-mastercard { color: #ff8a3d; }
.payment-methods .fa-cc-amex { color: #4fa8e8; }
.payment-methods .fa-cc-diners-club { color: #29c2f0; }
.payment-methods .payment-badge { font-size: 1rem; padding: .4rem .95rem; }
.payment-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .32rem .75rem;
  border-radius: 999px;
  letter-spacing: .3px;
  line-height: 1;
}
.payment-badge-yape { background: #7d2ae8; color: #fff; }
.payment-badge-plin { background: #00c9b7; color: #0d0d0d; }

/* Íconos sociales sin destino real todavía: deshabilitados visualmente en vez de enlace muerto */
.social-icons a.is-disabled {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}
