/* ================================================================
   Cargo Aviation Services — Estilos principales
   Fuente: Inter (Google Fonts)
   Color principal: #0202ff (azul CAS)
================================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:  #0202ff;
  --gray:  #e4e4e4;
  --cyan:  #00fff2;
  --pink:  #f472b6;
}

body {
  font-family: 'Inter', sans-serif;
  color: #000;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Badge compartido ─────────────────────────────────────── */
.badge {
  display: inline-block;
  background-color: var(--blue);
  color: #fff;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Fondo de sección (imagen absoluta) ──────────────────── */
.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

/* ================================================================
   HEADER
================================================================ */
.header {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang-bar {
  width: 100%;
  height: 56px;
  background-color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lang-btn {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.lang-btn.active  { opacity: 1; }
.lang-btn:hover   { opacity: 0.8; }

.lang-sep {
  font-size: 1.2rem;
  color: var(--blue);
  opacity: 0.5;
}

.header-logo {
  padding: 32px 0;
}
.header-logo img {
  width: 176px;
  height: 176px;
  object-fit: contain;
}

@media (min-width: 640px)  { .header-logo img { width: 208px; height: 208px; } }
@media (min-width: 768px)  { .header-logo img { width: 240px; height: 240px; } }
@media (min-width: 1024px) { .header-logo img { width: 256px; height: 256px; } }

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: clamp(320px, 50vw, 640px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px)  { .hero-inner { padding: 0 40px; } }
@media (min-width: 768px)  { .hero-inner { padding: 0 64px; } }

.hero-text-wrapper {
  position: relative;
  display: inline-block;
  max-width: min(420px, 55vw);
}

/* Overlay de mezcla azul (blend multiply — se mezcla con la foto) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--blue);
  mix-blend-mode: multiply;
}

.hero-title {
  position: relative;
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  font-size: clamp(1.5rem, 3.5vw, 3.5rem);
  padding: 20px 32px;
}

/* ================================================================
   NOSOTROS
================================================================ */
.about {
  position: relative;
  padding: 80px 24px;
  background-color: var(--blue);
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) { .about { padding: 112px 40px; } }

.about-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 24px;
}

@media (min-width: 768px) { .about-logo { width: 160px; height: 160px; } }

.about-pin {
  display: none;
}

.about-text {
  color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.75;
}

/* ================================================================
   NUESTROS PILARES
================================================================ */
.pillars {
  position: relative;
  padding: 80px 24px;
  overflow: hidden;
}

@media (min-width: 768px) { .pillars { padding: 112px 40px; } }

.pillars-inner {
  position: relative;
  z-index: 1;
  max-width: 1152px;
  margin: 0 auto;
}

.badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

@media (min-width: 768px) { .badge-wrap { margin-bottom: 64px; } }

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ── Tarjeta ──────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 640px) { .card-img { height: 208px; } }

.card-head {
  padding: 12px 16px;
  min-height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-head--blue { background-color: var(--blue); }
.card-head--gray { background-color: var(--gray); }

.card-head h3 {
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.text-blue { color: var(--blue) !important; }

.card-body {
  padding: 32px;
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.65;
}
.card-body--gray { background-color: var(--gray); color: var(--blue); }
.card-body--blue { background-color: var(--blue); color: var(--cyan); }

/* ================================================================
   SERVICIOS
================================================================ */
.services {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: auto;
  height: 300px;
}

@media (min-width: 768px) { .services { height: 430px; } }

.services-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.6) contrast(1.1) brightness(1.05);
}

/* En móvil: desplazar la imagen para mostrar la nariz del avión */
@media (max-width: 767px) {
  .services {
    min-height: 500px;
    overflow: hidden;
  }

  .services-bg {
    object-fit: cover;
    object-position: 0% center;
  }

  .services-content {
    padding: 40px 24px 260px;
  }
}

.services-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 24px 176px;
}

@media (min-width: 768px) {
  .services-content {
    position: absolute;
    inset: 0;
    padding: 40px 40px 0;
  }
}

.services-content p {
  text-align: center;
  font-size: clamp(0.875rem, 1.5vw, 1.1rem);
  font-weight: 500;
  line-height: 1.7;
  max-width: 672px;
  color: #000;
}

/* ================================================================
   CONTACTO
================================================================ */
.contact {
  position: relative;
  padding: 80px 24px;
  overflow: hidden;
}

@media (min-width: 768px) { .contact { padding: 112px 40px; } }

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .contact-inner { grid-template-columns: 1fr 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  order: 2;
}

@media (min-width: 768px) { .contact-info { order: 1; } }

.contact-badge { margin-bottom: 40px; width: max-content; }

.contact-details {
  color: var(--blue);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.bold { font-weight: 700; }

.contact-photo { order: 1; }
@media (min-width: 768px) { .contact-photo { order: 2; } }

.contact-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

@media (min-width: 640px)  { .contact-photo img { height: 480px; } }
@media (min-width: 768px)  { .contact-photo img { height: 500px; } }

/* ================================================================
   FOOTER
================================================================ */
.footer {
  background-color: var(--blue);
  padding: 40px 24px;
}

@media (min-width: 768px) { .footer { padding: 48px 40px; } }

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

.footer-copy {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@media (min-width: 768px) { .footer-logo { width: 96px; height: 96px; } }
