/* ===================================================
   qrLomito – style.css
   Responsive stylesheet – mobile-first
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --orange:      #FF5722;
  --orange-dark: #E64A19;
  --teal:        #00BCD4;
  --teal-dark:   #0097A7;
  --white:       #ffffff;
  --gray-light:  #f5f7f8;
  --gray-text:   #555;
  --font-display: 'Nunito', sans-serif;
  --font-body:    'Poppins', sans-serif;
  --nav-h:       64px;
  --radius:      18px;
  --shadow:      0 8px 32px rgba(0,0,0,0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: #333;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ====================================================
   NAVBAR
   ==================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: var(--nav-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal);
  white-space: nowrap;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Links */
.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
  transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #444;
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ====================================================
   HERO SECTION
   ==================================================== */
.hero {
  position: relative;
  background: url('images/carretera.jpeg') center center / cover no-repeat;
  overflow: hidden;
  padding: 60px 0 0;
  min-height: 600px;
}


.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 500px;
}

/* ---- Hero text ---- */
.hero-content {
  flex: 1;
  max-width: 580px;
  color: var(--white);
  padding: 2rem 0;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-highlight {
  color: var(--white);
  display: inline;
}

.hero-features {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.feat.orange { color: #FFD54F; font-weight: 700; }
.feat.teal   { color: #B2EBF2; font-weight: 700; }
.hero-features strong { text-transform: uppercase; letter-spacing: 0.04em; }

.btn-hero {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

/* ---- Hero image / manopla frame ---- */
.hero-image-wrap {
  position: relative;
  flex: 0 0 auto;
  width: clamp(280px, 40vw, 480px);
  height: clamp(350px, 50vw, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-frame {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.frame-text {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  z-index: 3;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.frame-content {
  position: relative;
  width: 85%;
  height: 85%;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.1) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: floatFrame 6s ease-in-out infinite;
}

.hero-manopla {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

.hero-manopla:hover {
  transform: scale(1.05);
}

.frame-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(0,188,212,0.15), transparent 70%);
  border-radius: 30px;
  filter: blur(20px);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}


@keyframes floatFrame {
  0%, 100% { 
    transform: translateY(0px) rotateX(2deg) rotateY(-2deg);
  }
  25% { 
    transform: translateY(-15px) rotateX(1deg) rotateY(2deg);
  }
  50% { 
    transform: translateY(-8px) rotateX(-1deg) rotateY(-1deg);
  }
  75% { 
    transform: translateY(-20px) rotateX(2deg) rotateY(1deg);
  }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}


/* Geo label badge */
.geo-label {
  position: absolute;
  top: 10%;
  right: -2%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.4rem);
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  z-index: 3;
  white-space: nowrap;
}



/* Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
  height: 120px;
}

.hero-wave svg { 
  width: 100%; 
  height: 120px;
  display: block;
}

/* ====================================================
   PLACA SECTION
   ==================================================== */
.placa-section {
  background: #fff;
  padding: 70px 1.5rem 80px;
}

.section-container {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--teal-dark);
  margin-bottom: 0.7rem;
}
.orange-text { color: var(--orange); }

.section-subtitle {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.section-body.highlighted {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-weight: 500;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0,188,212,0.05), rgba(255,87,34,0.03));
  border-left: 4px solid var(--teal);
  border-radius: 8px;
}

.features-list {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.feature-item {
  background: #fff;
  border: 1px solid #e0f7fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,188,212,0.1);
  border-color: var(--teal);
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 1rem;
  text-align: justify;
}

.feature-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-details li {
  font-size: 0.9rem;
  color: var(--gray-text);
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.feature-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

.stat-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: #fff;
  border: 2px solid #e0f7fa;
  border-radius: var(--radius);
  padding: 2rem 1.4rem 1.6rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.card-featured {
  border-color: var(--teal);
  box-shadow: 0 6px 24px rgba(0,188,212,0.15);
}

.card-icon {
  width: 72px;
  height: 72px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card-text {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.65;
}

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 1.4rem 1rem;
  font-size: 0.82rem;
}

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

/* ---- Tablet (≤ 900px) ---- */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid .card:last-child {
    grid-column: 1 / -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* ---- Mobile nav (≤ 768px) ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: max-height .35s ease, padding .35s ease;
  }
  .nav-links.open {
    max-height: 400px;
    padding: 0.6rem 0;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Hero stacks vertically */
  .hero-container {
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 80px;
    text-align: center;
    gap: 2rem;
  }
  .hero-content { 
    max-width: 100%; 
    padding: 1rem 0;
  }
  .hero-features { font-size: 0.82rem; }

  .hero-image-wrap {
    width: clamp(200px, 60vw, 300px);
    height: clamp(250px, 70vw, 380px);
    margin-top: 1rem;
  }

  .frame-content {
    width: 90%;
    height: 90%;
    border-radius: 15px;
  }

  .frame-text {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
    top: 8%;
  }

  .hero-manopla {
    width: 85%;
    height: 85%;
  }

  .hero-wave {
    height: 80px;
  }

  .hero-wave svg { 
    height: 80px;
  }

  .section-body.highlighted {
    font-size: 1rem;
    padding: 1rem;
    margin: 0 auto 2rem;
  }

  .features-list {
    margin: 0 auto 1.5rem;
  }

  .feature-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .feature-item h3 {
    font-size: 1rem;
  }

  .feature-item p {
    font-size: 0.9rem;
  }
}

/* ---- Small mobile (≤ 520px) ---- */
@media (max-width: 520px) {
  .hero { padding-top: 40px; min-height: 500px; }
  .hero-title { font-size: 2rem; }

  .hero-image-wrap {
    width: clamp(180px, 55vw, 260px);
    height: clamp(220px, 65vw, 320px);
  }

  .frame-content {
    width: 95%;
    height: 95%;
    border-radius: 12px;
  }

  .frame-text {
    font-size: 0.55rem;
    padding: 0.3rem 0.6rem;
    top: 6%;
  }

  .hero-wave {
    height: 60px;
  }

  .hero-wave svg { 
    height: 60px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid .card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .hero-phone { display: none; } /* hide on very small screens */
}
