/* ══════════════════════════════════════
   Reloj Checador Landing – Sections CSS
   Explicit section-based layouts matching
   the reference designs from tmp/kint-mx
   ══════════════════════════════════════ */

/* ── Theme background consistency (prevent random white sections) ── */
body {
  background-color: #f3f6fa;
}

html.dark body {
  background-color: #040e18;
}

main {
  background: transparent;
}

.rc-hero,
.rc-features,
.rc-specs,
.rc-cases,
.rc-back {
  background-color: #ffffff !important;
}

.rc-gallery,
.rc-models,
.rc-duo,
#contacto {
  background-color: #f8fafc !important;
}

html.dark .rc-hero,
html.dark .rc-features,
html.dark .rc-specs,
html.dark .rc-cases,
html.dark .rc-back {
  background-color: #07111a !important;
}

html.dark .rc-gallery,
html.dark .rc-models,
html.dark .rc-duo,
html.dark #contacto {
  background-color: #0a1520 !important;
}

/* ── Landing hero ── */
.rc-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.rc-hero__title-bar {
  text-align: center;
  padding: 2rem 1rem 0;
}

.rc-hero__title-bar h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #002b49;
}

html.dark .rc-hero__title-bar h1 { color: #fff; }

.rc-hero__title-bar > p {
  max-width: 42rem;
  margin: 0.5rem auto 0;
  color: #475569;
  font-size: 1.05rem;
}

html.dark .rc-hero__title-bar > p { color: #94a3b8; }

.rc-hero__grid {
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .rc-hero__grid {
    grid-template-columns: 1fr 1fr;
    padding: 3rem 2rem 4rem;
  }
}

/* ── Video container (9:16) ── */
.rc-video-wrap {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .rc-video-wrap { justify-content: flex-end; }
}

.rc-video {
  position: relative;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.rc-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rc-video__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 40%, rgba(0,0,0,0.1));
  pointer-events: none;
  z-index: 1;
}

.rc-video__play {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  transition: opacity 0.3s;
}

.rc-video__play-btn {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: #000;
  font-size: 1.5rem;
}

.rc-video__ctrl {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.rc-video__ctrl button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.rc-video__ctrl button:hover { background: rgba(0,0,0,0.65); }

/* ── Hero text column ── */
.rc-hero__text .rc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

html.dark .rc-hero__text .rc-tag { color: #94a3b8; }

.rc-hero__text h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #002b49;
  margin-top: 0.75rem;
}

html.dark .rc-hero__text h2 { color: #fff; }

.rc-hero__text > p {
  margin-top: 1rem;
  color: #475569;
  line-height: 1.7;
}

html.dark .rc-hero__text > p { color: #cbd5e1; }

.rc-hero__text ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: #334155;
  line-height: 1.8;
}

html.dark .rc-hero__text ul { color: #cbd5e1; }

.rc-hero__text .rc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.rc-hero__text .rc-price {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

html.dark .rc-hero__text .rc-price { color: #94a3b8; }

/* ── Gallery carousel ── */
.rc-gallery {
  position: relative;
  padding: 3rem 0;
}

.rc-gallery h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #002b49;
}

html.dark .rc-gallery h2 { color: #fff; }

.rc-gallery h2 span { color: #00b2e2; }

.rc-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 0 1rem 1rem;
  scrollbar-width: none;
}

.rc-gallery__track::-webkit-scrollbar { display: none; }

.rc-gallery__slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  border-radius: 1rem;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

html.dark .rc-gallery__slide {
  background: rgba(15,23,42,0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .rc-gallery__slide { flex: 0 0 45%; }
}

.rc-gallery__slide img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.rc-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: #002b49;
  transition: background 0.2s;
}

html.dark .rc-gallery__nav {
  background: rgba(30,41,59,0.7);
  color: #fff;
}

.rc-gallery__nav:hover { background: #fff; }
html.dark .rc-gallery__nav:hover { background: rgba(30,41,59,0.95); }

.rc-gallery__nav--prev { left: 0.5rem; }
.rc-gallery__nav--next { right: 0.5rem; }

/* ── Feature cards grid ── */
.rc-features {
  padding: 3rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.rc-features h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #002b49;
}

html.dark .rc-features h2 { color: #fff; }

.rc-features__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .rc-features__grid { grid-template-columns: repeat(3, 1fr); }
}

.rc-feature-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

html.dark .rc-feature-card {
  background: rgba(15,23,42,0.6);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.rc-feature-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.rc-feature-card__header i {
  color: #00b2e2;
  font-size: 1.25rem;
}

.rc-feature-card__header h3 {
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
}

html.dark .rc-feature-card__header h3 { color: #f1f5f9; }

.rc-feature-card p {
  color: #475569;
  line-height: 1.6;
  font-size: 0.92rem;
}

html.dark .rc-feature-card p { color: #cbd5e1; }

/* ── Product model cards ── */
.rc-models {
  padding: 3rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.rc-models h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #002b49;
}

html.dark .rc-models h2 { color: #fff; }
.rc-models h2 span { color: #00b2e2; }

.rc-models__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .rc-models__grid { grid-template-columns: repeat(3, 1fr); }
  .rc-models__grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.rc-model-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}

html.dark .rc-model-card {
  background: rgba(15,23,42,0.6);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.rc-model-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

html.dark .rc-model-card:hover {
  box-shadow: 0 20px 50px rgba(0,178,226,0.1);
}

.rc-model-card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  background: #f8fafc;
}

html.dark .rc-model-card img { background: rgba(2,6,23,0.4); }

.rc-model-card__body {
  padding: 1.25rem;
}

.rc-model-card__body h3 {
  font-weight: 700;
  font-size: 1.15rem;
  color: #002b49;
}

html.dark .rc-model-card__body h3 { color: #fff; }

.rc-model-card__body p {
  margin-top: 0.5rem;
  font-size: 0.87rem;
  color: #64748b;
  line-height: 1.5;
}

html.dark .rc-model-card__body p { color: #94a3b8; }

.rc-model-card__body .rc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  color: #00b2e2;
  font-weight: 600;
  font-size: 0.88rem;
}

.rc-model-card__body .rc-link:hover { text-decoration: underline; }

/* ── Specs grid ── */
.rc-specs {
  padding: 3rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.rc-specs h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #002b49;
}

html.dark .rc-specs h2 { color: #fff; }

.rc-specs__card {
  padding: 1.5rem 2rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

html.dark .rc-specs__card {
  background: rgba(15,23,42,0.6);
  border-color: rgba(255,255,255,0.08);
}

.rc-specs__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .rc-specs__grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

.rc-spec-item h4 {
  font-weight: 600;
  font-size: 1rem;
  color: #00b2e2;
  margin-bottom: 0.3rem;
}

.rc-spec-item p {
  color: #475569;
  line-height: 1.6;
  font-size: 0.92rem;
}

html.dark .rc-spec-item p { color: #cbd5e1; }

/* ── Integration duo cards ── */
.rc-duo {
  display: grid;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

@media (min-width: 768px) {
  .rc-duo { grid-template-columns: 1fr 1fr; }
}

.rc-duo__card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

html.dark .rc-duo__card {
  background: rgba(15,23,42,0.6);
  border-color: rgba(255,255,255,0.08);
}

.rc-duo__card--accent {
  background: #002b49;
  border-color: transparent;
  color: #fff;
}

html.dark .rc-duo__card--accent {
  background: rgba(15,23,42,0.85);
}

.rc-duo__card--accent h3,
.rc-duo__card--accent p { color: #fff; }

html.dark .rc-duo__card--accent p { color: #e2e8f0; }

.rc-duo__card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.rc-duo__card__header i { color: #00b2e2; }

.rc-duo__card__header h3 { font-weight: 600; }

html.dark .rc-duo__card__header h3 { color: #f1f5f9; }

.rc-duo__card p {
  color: #475569;
  line-height: 1.6;
  font-size: 0.92rem;
}

html.dark .rc-duo__card p { color: #cbd5e1; }

/* ── Success cases (4-col) ── */
.rc-cases {
  padding: 3rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.rc-cases h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #002b49;
}

html.dark .rc-cases h2 { color: #fff; }

.rc-cases__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .rc-cases__grid { grid-template-columns: repeat(4, 1fr); }
}

.rc-case-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

html.dark .rc-case-card {
  background: rgba(15,23,42,0.6);
  border-color: rgba(255,255,255,0.08);
}

.rc-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.rc-case-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rc-case-card__header i { color: #00b2e2; }

.rc-case-card__header span { font-weight: 500; font-size: 0.95rem; }

.rc-case-card p {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #64748b;
}

html.dark .rc-case-card p { color: #94a3b8; }

/* ── KIS-TA software section ── */
.rc-kista {
  padding: 3rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

html.dark .rc-kista {
  background: rgba(15,23,42,0.6);
  border-color: rgba(255,255,255,0.08);
}

.rc-kista__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.rc-kista__header h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #002b49;
}

html.dark .rc-kista__header h2 { color: #fff; }

.rc-kista__header p {
  margin-top: 0.5rem;
  color: #64748b;
}

html.dark .rc-kista__header p { color: #94a3b8; }

.rc-kista__grid {
  display: grid;
  gap: 1.5rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .rc-kista__grid { grid-template-columns: 1fr 1fr; }
}

.rc-kista-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: #f8fafc;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s;
}

html.dark .rc-kista-card {
  background: rgba(2,6,23,0.5);
}

.rc-kista-card:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.rc-kista-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.rc-kista-card__header i { color: #00b2e2; font-size: 1.5rem; }

.rc-kista-card__header h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #002b49;
}

html.dark .rc-kista-card__header h3 { color: #fff; }

.rc-kista-card p {
  color: #475569;
  line-height: 1.65;
  font-size: 0.92rem;
}

html.dark .rc-kista-card p { color: #cbd5e1; }

.rc-kista-card img {
  margin-top: 1.25rem;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  object-fit: cover;
}

/* ── Back-to-home link ── */
.rc-back {
  text-align: center;
  padding: 2rem 0 3rem;
}

.rc-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 0.6rem;
  color: #fff;
  background: #00b2e2;
  transition: background 0.2s;
}

.rc-back a:hover { background: #002b49; }
