/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #D0302D;
  --red-dark: #a82421;
  --dark: #111214;
  --mid: #2d2d2d;
  --body-bg: #f7f8fa;
  --light-alt: #eef0f4;
  --text: #1a1a1a;
  --muted: #6b7280;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Inter', sans-serif;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .07);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--body-bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===========================
   HEADER
   =========================== */
.main-header {
  background-color: var(--red);
  width: 100%;
  padding: 14px 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(208, 48, 45, .25);
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.header-logo {
  height: 48px;
  width: auto;
  display: block;
}

/* ===========================
   HERO
   =========================== */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform-origin: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(10, 10, 12, .72) 0%,
      rgba(10, 10, 12, .38) 55%,
      rgba(10, 10, 12, .12) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

.min-vh-hero {
  min-height: 80vh;
}

.hero-brand {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255, 255, 255, .12);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
  margin-bottom: 20px;
  opacity: 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -.02em;
  opacity: 0;
}

.hero-sumario {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, .82);
  line-height: 1.72;
  max-width: 580px;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 100px;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(208, 48, 45, .4);
  opacity: 0;
}

.btn-hero:hover {
  background-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(208, 48, 45, .55);
}

.btn-hero svg {
  transition: transform .25s;
}

.btn-hero:hover svg {
  transform: translateY(3px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, .7);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: .9;
  }

  50% {
    transform: translateY(10px);
    opacity: .3;
  }
}

/* ===========================
   CONTENT SECTIONS
   =========================== */
.content-section {
  padding: 100px 0;
  background-color: var(--body-bg);
}

.bg-light-alt {
  background-color: var(--light-alt);
}

.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(208, 48, 45, .08);
  border: 1px solid rgba(208, 48, 45, .18);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-tag--light {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 22px;
}

.section-title--light {
  color: var(--white);
}

.section-text {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-text--light {
  color: rgba(255, 255, 255, .8);
}

/* Image Frame */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-frame--reverse .img-accent {
  right: auto;
  left: -12px;
  top: auto;
  bottom: -12px;
}

.img-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 55%;
  height: 55%;
  background: rgba(208, 48, 45, .12);
  border-radius: var(--radius);
  z-index: -1;
  pointer-events: none;
}

.img-accent--reverse {
  left: -12px;
  right: auto;
  bottom: -12px;
}

.section-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
  transition: transform .6s ease;
}

.img-frame:hover .section-img {
  transform: scale(1.025);
}

/* Spec chips */
.specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.spec-chip {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #e2e5ea;
  padding: 6px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

/* Tech pills */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(208, 48, 45, .06);
  border: 1.5px solid rgba(208, 48, 45, .18);
  padding: 8px 18px;
  border-radius: 100px;
  transition: background .2s, transform .2s;
}

.tech-pill:hover {
  background: rgba(208, 48, 45, .13);
  transform: translateY(-2px);
}

/* ===========================
   GALLERY STRIP (autoplay)
   =========================== */
.gallery-strip {
  overflow: hidden;
  padding: 0;
  background: var(--light-alt);
}

.strip-track {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  will-change: transform;
}

.strip-img {
  width: 480px;
  height: 270px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* ===========================
   INTERIOR TABS
   =========================== */
.interior-tabs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.interior-tab-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.int-tab {
  background: var(--white);
  border: 1.5px solid #d8dbe2;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}

.int-tab.active,
.int-tab:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.interior-tab-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ===========================
   COMFORT GRID
   =========================== */
.comfort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.comfort-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid #e2e5ea;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

.comfort-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.comfort-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ===========================
   SECURITY SECTION
   =========================== */
.security-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.security-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.security-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.55);
}

.security-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(17, 18, 20, .55) 0%,
      rgba(17, 18, 20, .75) 100%);
}

.security-content {
  position: relative;
  z-index: 2;
}

.security-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: background .25s, transform .25s;
  height: 100%;
}

.security-card:hover {
  background: rgba(208, 48, 45, .18);
  transform: translateY(-4px);
}

.security-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.security-card-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  margin: 0;
}

/* ===========================
   STATS ROW
   =========================== */
.stat-row {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--white);
  border: 1.5px solid #e2e5ea;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  flex: 1;
  transition: transform .25s, box-shadow .25s;
}

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

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -.04em;
}

.stat-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 8px;
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery-section {
  padding: 80px 0;
  background-color: var(--body-bg);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-item--tall .gallery-img {
  height: 520px;
}

.gallery-img {
  width: 100%;
  height: 252px;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background-color: #222;
  padding: 36px 0;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
}

.footer-copy {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin: 0;
}

/* ===========================
   BOTÓN MINIMALISTA
   =========================== */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  padding: 13px 32px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 100px;
  background-color: transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.boton:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--red);
}

/* ===========================
   ANIMATIONS BASE STATES
   =========================== */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-animate="pop-in"] {
  opacity: 0;
  transform: scale(.85);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .content-section {
    padding: 70px 0;
  }

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

  .stat-row {
    gap: 12px;
  }

  .security-section {
    padding: 80px 0;
  }

  .gallery-item--tall .gallery-img {
    height: 260px;
  }

  .section-img {
    height: 280px;
  }

  .strip-img {
    width: 300px;
    height: 170px;
  }
}