/* ===========================================================
   PEDAL ANDINO · Salidas ciclísticas Quito
   Paleta: verde montaña · naranja atardecer · crema andina
=========================================================== */

:root {
  --green-900: #0f3d2e;
  --green-700: #1a5d3a;
  --green-500: #2a8b5e;
  --orange-500: #ff6b35;
  --orange-600: #e85a2a;
  --yellow-400: #ffc857;
  --cream: #faf6ef;
  --gray-900: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #777;
  --gray-200: #e8e6e1;
  --gray-100: #f5f3ee;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 61, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 61, 46, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 61, 46, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =================== NAVBAR =================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--green-900);
}

.logo-icon { font-size: 1.6rem; }
.logo-accent { color: var(--orange-500); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  transition: color 0.2s;
}

.nav-links a:not(.nav-cta):hover { color: var(--green-700); }

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-500);
  transition: width 0.3s;
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--green-700);
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--green-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-900);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=2000&q=85');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15,61,46,0.85) 0%, rgba(26,93,58,0.5) 50%, rgba(255,107,53,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.highlight {
  background: linear-gradient(120deg, var(--orange-500), var(--yellow-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--orange-500);
  color: white;
  box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}
.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255,107,53,0.5);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
}

.btn-full { width: 100%; }

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.stat strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--yellow-400);
  letter-spacing: 1px;
}
.stat span {
  font-size: 0.85rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(8px); }
}

/* =================== INTRO STRIP =================== */
.intro-strip {
  background: var(--white);
  padding: 4rem 0;
  position: relative;
  margin-top: -2rem;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.intro-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--gray-100);
  transition: all 0.3s;
}

.intro-card:hover {
  background: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.intro-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

.intro-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--green-900);
}

.intro-card p {
  font-size: 0.92rem;
  color: var(--gray-700);
}

/* =================== SECTIONS =================== */
.section {
  padding: 5rem 0;
  background: var(--white);
}
.section-alt { background: var(--cream); }
.section-dark {
  background: var(--green-900);
  background-image:
    radial-gradient(at 80% 0%, rgba(255,107,53,0.12) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(42,139,94,0.2) 0px, transparent 50%);
  color: white;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-500);
  margin-bottom: 0.8rem;
}
.eyebrow-light { color: var(--yellow-400); }

.section-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 1px;
  color: var(--green-900);
  margin-bottom: 0.6rem;
}

.section-head-light h2 { color: white; }

.section-head p {
  color: var(--gray-700);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-head-light p { color: rgba(255,255,255,0.85); }

/* =================== FILTROS =================== */
.filters {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter {
  background: var(--gray-100);
  border: 2px solid transparent;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-700);
}
.filter:hover {
  background: white;
  border-color: var(--green-500);
  color: var(--green-700);
}
.filter.active {
  background: var(--green-700);
  color: white;
  border-color: var(--green-700);
}

/* =================== ROUTES GRID =================== */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.route-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.route-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.route-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}
.level-facil    { background: #2a8b5e; }
.level-moderada { background: #ffc857; color: #333; }
.level-dificil  { background: #ff6b35; }
.level-extrema  { background: #d22b2b; }

.route-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.route-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  color: var(--green-900);
}

.route-route {
  font-size: 0.9rem;
  color: var(--orange-500);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.route-desc {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.route-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.route-meta span {
  background: var(--gray-100);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--gray-700);
  font-weight: 500;
}

.route-cta {
  font-weight: 700;
  color: var(--green-700);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.route-cta:hover { color: var(--orange-500); }

/* =================== NOSOTROS =================== */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nosotros-text .eyebrow { margin-bottom: 0.5rem; }
.nosotros-text h2 {
  text-align: left;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--green-900);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.nosotros-text p {
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.features-list {
  list-style: none;
  margin-top: 1.5rem;
}
.features-list li {
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--gray-900);
  font-weight: 500;
}

.img-stack {
  position: relative;
  height: 480px;
}

.img-stack-1, .img-stack-2 {
  position: absolute;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.img-stack-1 {
  width: 70%;
  height: 75%;
  top: 0; left: 0;
}
.img-stack-2 {
  width: 55%;
  height: 55%;
  bottom: 0; right: 0;
  border: 8px solid var(--cream);
}

/* =================== GALLERY =================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.8rem;
}

.g-item {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.g-item:hover { transform: scale(1.02); }

.g-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  padding: 1.5rem 1rem 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.g-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.g-2 { grid-column: 3; grid-row: 1; }
.g-3 { grid-column: 4; grid-row: 1; }
.g-4 { grid-column: 3; grid-row: 2; }
.g-5 { grid-column: 4; grid-row: 2; }
.g-6 { display: none; }

/* =================== CONTACTO =================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.25s;
}

.contact-card.whatsapp-card {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: transparent;
  cursor: pointer;
}

.contact-card.whatsapp-card:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: white;
}
.contact-card p {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.contact-card .muted, .contact-card .link-arrow {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.link-arrow {
  display: inline-block;
  margin-top: 0.3rem;
  font-weight: 600;
  color: white !important;
}

/* Form */
.contact-form {
  background: white;
  color: var(--gray-900);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  color: var(--green-900);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-900);
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: white;
}

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

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 1rem;
  line-height: 1.5;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  display: none;
}
.form-status.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-status.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* =================== FOOTER =================== */
.footer {
  background: #0a2818;
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}

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

.logo-footer { color: white; margin-bottom: 0.8rem; }

.footer-tag {
  font-size: 0.95rem;
  opacity: 0.7;
  max-width: 300px;
}

.footer h5 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer ul { list-style: none; }
.footer ul li {
  padding: 0.3rem 0;
  font-size: 0.92rem;
  opacity: 0.8;
}
.footer ul li a:hover { color: var(--orange-500); }

.social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social a {
  font-size: 0.92rem;
  transition: color 0.2s;
}
.social a:hover { color: var(--orange-500); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* =================== WHATSAPP FLOATING =================== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37,211,102,0.5);
  z-index: 999;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37,211,102,0.65);
}

@keyframes pulse {
  0%   { box-shadow: 0 8px 25px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 8px 25px rgba(37,211,102,0.5), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 25px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }

  .hero { background-attachment: scroll; }
  .hero-bg { background-attachment: scroll; }

  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .img-stack { height: 380px; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 200px 200px;
  }
  .g-1 { grid-column: 1 / 3; grid-row: 1; }
  .g-2 { grid-column: 1; grid-row: 2; }
  .g-3 { grid-column: 2; grid-row: 2; }
  .g-4 { grid-column: 1; grid-row: 3; }
  .g-5 { grid-column: 2; grid-row: 3; }

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

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

@media (max-width: 600px) {
  .hero { padding: 5rem 1rem 3rem; }
  .hero-stats { gap: 1rem; }
  .stat strong { font-size: 2rem; }

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

  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; bottom: 1rem; right: 1rem; }
  .wa-float svg { width: 28px; height: 28px; }
}
