:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --text: #172033;
  --primary: #1f4f7a;
  --accent: #2f80ed;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #172033;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.brand-link img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.top-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #9fd0ff;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(16, 66, 103, 0.92), rgba(16, 66, 103, 0.92)),
    url("imagenes/logoROCU.png") center/contain no-repeat;
  background-size: 45% auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem;
}

.hero-logo {
  display: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 1rem;
}

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

.card h3 {
  margin-top: 0;
  color: var(--primary);
}

.about {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
}

.btn:hover {
  background: var(--accent);
}

.page-header {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.listing-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
  border: 1px solid #e8edf5;
}

.listing-card h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.car-carousel {
  margin-bottom: 1rem;
}

.car-carousel-frame {
  position: relative;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf2ff, #dce9ff);
}

.car-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.car-carousel-image.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.car-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.carousel-btn {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #c7d4e8;
  padding: 0;
  cursor: pointer;
}

.dot.active {
  background: var(--primary);
}

.price {
  font-size: 1.15rem;
  font-weight: bold;
  color: #1b7a3f;
  margin: 0 0 0.8rem;
}

.listing-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.listing-card li {
  margin-bottom: 0.4rem;
}

.contact-box {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
  text-align: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

.contact-box h2 {
  margin-top: 0;
  color: var(--primary);
}

.contact-box a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
}

@media (max-width: 700px) {
  .cards,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .top-nav {
    gap: 0.6rem;
    padding: 0.8rem 1rem;
  }

  .top-nav a {
    font-size: 0.95rem;
  }
}
