/* Transporte Carola — estilos */

:root {
  --navy: #0b1d33;
  --navy-light: #142a45;
  --orange: #f2542d;
  --orange-dark: #d1401d;
  --blue: #2563eb;
  --whatsapp: #22c55e;
  --text-dark: #1a2433;
  --text-muted: #55606e;
  --bg-light: #ffffff;
  --bg-muted: #f4f6f9;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 29, 51, 0.25);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.5;
}

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

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

/* Botones */

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(242, 84, 45, 0.6);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  padding: 0.6rem 1.25rem;
}

.btn--whatsapp:hover {
  background: #16a34a;
}

/* Navbar */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 29, 51, 0.35);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.is-scrolled {
  background: rgba(11, 29, 51, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.nav__links {
  display: none;
  gap: 2rem;
  color: #e2e8f0;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--orange);
}

.nav__cta {
  display: none;
}

.nav__toggle {
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  margin-left: auto;
}

.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 11px; }
.nav__toggle span:nth-child(3) { top: 20px; }

.nav__toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
  background: rgba(11, 29, 51, 0.97);
  color: #e2e8f0;
  font-weight: 500;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile .btn {
  align-self: flex-start;
}

@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-block; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 29, 51, 0.35), rgba(11, 29, 51, 0.55) 60%, rgba(11, 29, 51, 0.85));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero__tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Secciones genéricas */

.section {
  padding: 6rem 1.5rem;
}

.section--light { background: var(--bg-light); }
.section--muted { background: var(--bg-muted); }

.section__title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

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

.grid--3 {
  grid-template-columns: 1fr;
  max-width: 1120px;
  text-align: center;
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(260px, 340px)); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards de servicios */

.card {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(11, 29, 51, 0.3);
}

.card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
}

/* Beneficios */

.benefit h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.benefit p {
  color: var(--text-muted);
}

/* Flota — flip cards */

.flip {
  width: 100%;
  max-width: 340px;
  height: 220px;
  margin: 0 auto;
  perspective: 1200px;
}

.flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.flip:hover .flip__inner {
  transform: rotateY(180deg);
}

.flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip__face--front {
  background: var(--bg-muted);
}

.flip__face--front img {
  max-height: 85%;
  object-fit: contain;
}

.flip__face--back {
  background: var(--navy);
  color: #fff;
  flex-direction: column;
  text-align: center;
  padding: 1.5rem;
  transform: rotateY(180deg);
  box-shadow: var(--shadow);
}

.flip__face--back h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.flip__face--back p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* CTA final */

.cta {
  text-align: center;
}

.cta__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Footer */

.footer {
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Animaciones de entrada */

.fade-in-up {
  animation: fadeInUp 0.8s ease both;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
