/* ====================================
   AGUILA AZTECA — Autotransporte
   Editorial Dark Warm + Professional
   ==================================== */

:root {
  --bg:        #FFFFFF;
  --bg-2:      #F5F5F5;
  --bg-3:      #F0F0F0;
  --cream:     #1A1A1A;
  --cream-2:   #333333;
  --cream-3:   #666666;
  --accent:    #C5301E;
  --accent-2:  #A82516;
  --gold:      #C5301E;
  --line:      rgba(0, 0, 0, 0.1);

  --ease-out: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: clip;
}

/* ====================================
   SPLASH LOADER
   ==================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashSafety .01s 4.5s forwards;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  animation: splashPulse 2s ease-in-out infinite;
}

.splash-text {
  font-size: 28px;
  font-weight: bold;
  fill: var(--accent);
  letter-spacing: 2px;
}

@keyframes splashPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}

.splash.is-out {
  opacity: 0;
  pointer-events: none;
}

/* ====================================
   NAVIGATION
   ==================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: 1.5rem 0;
  transition: all 0.4s var(--ease-out);
}

.nav.is-solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.nav-logo h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--cream);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--cream-3);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--cream);
}

.nav-link:hover::after {
  width: 100%;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 255, 255, 0.86) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--cream);
  font-weight: 600;
  letter-spacing: -1px;
}

.hero-title span {
  display: block;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--cream-2);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-submit {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  width: 100%;
  padding: 1.2rem;
}

.btn-submit:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

/* ====================================
   CONTAINER & SECTIONS
   ==================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--cream);
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--cream-3);
  margin-bottom: 3rem;
}

/* ABOUT SECTION */
.section-about {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  background: #F9F9F9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-intro {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.about-text {
  font-size: 1.1rem;
  color: var(--cream-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-left: 2rem;
}

.pillar {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.pillar h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--cream-3);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FLEET SECTION */
.section-fleet {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(30px);
}

.gallery-item.is-revealed {
  animation: galleryReveal 0.8s var(--ease-out) forwards;
}

@keyframes galleryReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: 0.95rem;
  color: #FFFFFF;
  font-weight: 500;
}

/* QUOTE SECTION */
.section-quote {
  padding: 5rem 0;
  background: #F0F0F0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.big-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.big-quote p {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.big-quote footer {
  font-size: 1rem;
  color: var(--cream-3);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* CONTACT SECTION */
.section-contact {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

.contact-info > p {
  color: var(--cream-3);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail h4 {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.detail p {
  color: var(--cream-2);
  font-size: 1rem;
}

.link-contact {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.link-contact:hover {
  color: #1A1A1A;
}

/* FORM */
.contact-form {
  display: grid;
  gap: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--cream-3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #FAFAFA;
  box-shadow: 0 0 0 2px rgba(197, 48, 30, 0.1);
}

.form-note {
  font-size: 0.85rem;
  color: var(--cream-3);
  text-align: center;
  margin-top: 1rem;
}

/* FOOTER */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #F5F5F5;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--cream-3);
  line-height: 1.8;
}

.footer-col a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.footer-col a:hover {
  color: #1A1A1A;
}

/* ====================================
   REVEAL ANIMATIONS
   ==================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal[data-split] {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s var(--ease-out);
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .big-quote p {
    font-size: 1.5rem;
  }

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