/* ==========================================================================
   KESTREX - TRADITIONAL AVIATION DESIGN SYSTEM
   Clean, Professional, Corporate Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Colors - Traditional Aviation Corporate Palette */
  --bg-main: #F4F6F8;
  --bg-light: #FFFFFF;
  
  --surface-color: #FFFFFF;
  --surface-color-hover: #F8FAFC;
  --surface-card: #FFFFFF;
  --surface-dark: #0F172A;

  --primary-blue: #1E3A8A; /* Boeing-like Navy */
  --primary-blue-hover: #172554;
  
  --amber-gold: #F59E0B;
  --amber-gold-hover: #D97706;

  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;

  --border-light: #E2E8F0;
  --border-highlight: #CBD5E1;

  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.3s ease-in-out;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   UTILITIES & REUSABLE CLASSES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 3rem;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--amber-gold);
  color: #FFFFFF;
}

.btn-gold:hover {
  background: var(--amber-gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--primary-blue);
  border: 1px solid var(--border-highlight);
}

.btn-secondary:hover {
  background: var(--surface-color-hover);
  border-color: var(--primary-blue);
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-lang-switch {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-lang-switch:hover {
  background: var(--surface-color-hover);
  border-color: var(--border-highlight);
}

.lang-option {
  opacity: 0.5;
}

.lang-option.active {
  opacity: 1;
  color: var(--primary-blue);
}

.lang-divider {
  color: var(--border-highlight);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-blue);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-metrics {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero-split-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: var(--surface-dark);
}

.hero-split-img {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
}

.hero-split-top-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  z-index: 2;
  filter: drop-shadow(2px 0px 0px var(--amber-gold)) drop-shadow(0px 0px 8px var(--amber-gold));
}

.img-top {
  left: 0;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 75% 45%, 90% 45%, 50% 100%, 0 100%);
}

.img-bottom {
  right: 0;
  left: auto;
  width: 70%;
  z-index: 1;
  object-position: center;
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  .hero-split-wrapper {
    height: 300px;
  }
}

/* ==========================================================================
   WHAT WE DO (LO QUE HACEMOS) & SPECIALTIES
   ========================================================================== */

.services-section {
  padding: 100px 0;
  background: var(--bg-main);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-highlight);
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.carousel-img.active {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.indicator.active, .indicator:hover {
  background: var(--primary-blue);
}

.card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-blue);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.card-action:hover {
  text-decoration: underline;
}

/* ==========================================================================
   WHY CHOOSE US (WHY US)
   ========================================================================== */

.why-us-section {
  padding: 100px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #EFF6FF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   CONTACT & QUOTE REQUEST
   ========================================================================== */

.contact-section {
  padding: 100px 0;
  background: var(--bg-main);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-info-panel {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.info-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.info-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-method-card:hover {
  border-color: var(--primary-blue);
  background: #EFF6FF;
}

.method-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.method-details h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.method-details p {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
}

/* Quote Request Form */
.form-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 24px;
}

.form-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-highlight);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px #BFDBFE;
  outline: none;
}

.form-control::placeholder {
  color: #94A3B8;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background: #D1FAE5;
  border: 1px solid #10B981;
  color: #065F46;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--surface-dark);
  color: var(--text-light);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer .brand-logo {
  color: #FFFFFF;
}

.footer .logo-icon {
  background: #FFFFFF;
  color: var(--primary-blue);
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748B;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 32px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .trust-metrics {
    justify-content: center;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .category-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  .form-group-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
