@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@500;600;700;800&display=swap');

:root{
  --bg:#07090a;
  --panel:#0d1012;
  --panel2:#121619;
  --line:rgba(255,255,255,.11);
  --text:#f5f5f2;
  --muted:#949b9f;
  --gold:#d18a37;
  --gold2:#a76724;
  --green:#25d366;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,Arial,sans-serif;
}

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

button,
input{
  font:inherit;
}

button{
  cursor:pointer;
}

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


/* =========================================================
   HEADER
   ========================================================= */

.catalog-header{
  height:78px;
  padding:0 clamp(18px,3.6vw,62px);

  position:fixed;
  top:0;
  left:0;
  right:0;

  z-index:50;

  display:flex;
  align-items:center;
  gap:30px;

  background:rgba(7,9,10,.96);
  backdrop-filter:blur(14px);

  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;

  white-space:nowrap;
}

.brand>span:last-child{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.brand b{
  font-size:15px;
  letter-spacing:.4px;
}

.brand small{
  font-size:8px;
  letter-spacing:3px;

  margin-top:5px;

  color:#b8b8b8;
}

.brand-mark{
  width:34px;
  height:40px;

  display:flex;
  gap:3px;
  align-items:flex-end;
}

.brand-mark i{
  display:block;

  width:7px;

  border:2px solid var(--gold);
  border-bottom:0;

  transform:skewY(-17deg);
}

.brand-mark i:nth-child(1){
  height:24px;
}

.brand-mark i:nth-child(2){
  height:32px;
}

.brand-mark i:nth-child(3){
  height:40px;
}

.catalog-header nav{
  margin-left:auto;

  display:flex;
  gap:28px;

  font-size:12px;

  text-transform:uppercase;
  letter-spacing:.7px;
}

.catalog-header nav a{
  color:#c9cdcf;
}

.catalog-header nav a:hover{
  color:#fff;
}

.back-link{
  padding:10px 14px;

  border:1px solid rgba(255,255,255,.28);

  font-size:11px;
  text-transform:uppercase;
}


/* =========================================================
   ESTRUCTURA PRINCIPAL
   ========================================================= */

.catalog-shell{
  padding-top:78px;

  min-height:100vh;

  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(420px,.9fr);

  background:#080a0c;
}


/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */

.featured-panel{
  position:relative;

  min-height:calc(100vh - 78px);

  overflow:hidden;

  border-right:1px solid var(--line);

  background:
    radial-gradient(
      circle at 35% 38%,
      rgba(209,138,55,.12),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #111518,
      #080a0c 70%
    );
}

.featured-bg{
  position:absolute;
  inset:0;

  opacity:.12;

  background-image:
    linear-gradient(
      rgba(255,255,255,.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.025) 1px,
      transparent 1px
    );

  background-size:52px 52px;
}

.featured-overlay{
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      0deg,
      rgba(5,7,8,.88),
      transparent 40%,
      rgba(5,7,8,.28)
    );
}

.featured-content{
  position:relative;
  z-index:2;

  min-height:calc(100vh - 78px);

  padding:clamp(35px,5vw,75px);

  display:flex;
  flex-direction:column;
}

.featured-topline{
  display:flex;
  align-items:center;
  gap:12px;

  font-size:10px;
  letter-spacing:2px;

  font-weight:800;
}

.featured-topline>span:first-child{
  color:var(--gold);
}

.status{
  margin-left:auto;

  padding:7px 10px;

  border:1px solid rgba(255,255,255,.2);

  color:#d8dcde;
}

.vehicle-brand{
  display:block;

  margin-top:22px;

  color:#aeb4b7;

  font-size:12px;
  letter-spacing:3px;
  font-weight:700;

  text-transform:uppercase;
}

.featured-content h1{
  margin:8px 0 12px;

  max-width:900px;

  font-family:Montserrat,Arial,sans-serif;
  font-size:clamp(52px,6vw,105px);

  line-height:.9;
  letter-spacing:-4px;

  text-transform:uppercase;
}

.vehicle-heading p{
  margin:0;

  color:#c3c8cb;

  font-size:clamp(17px,1.6vw,25px);
}


/* FOTO GRANDE */

.featured-image{
  flex:1;

  min-height:280px;

  display:grid;
  place-items:center;

  margin:25px 0 20px;

  overflow:hidden;
}

.featured-image img{
  width:100%;

  max-height:50vh;

  object-fit:contain;

  border-radius:2px;

  box-shadow:
    0 28px 75px rgba(0,0,0,.42);

  transition:
    opacity .22s ease,
    transform .3s ease;
}

.featured-panel.changing .featured-image img{
  opacity:.12;

  transform:scale(.985);
}


/* ESPECIFICACIONES */

.featured-specs{
  display:grid;
  grid-template-columns:repeat(4,1fr);

  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.featured-specs div{
  padding:16px 18px;

  border-right:1px solid var(--line);
}

.featured-specs div:first-child{
  padding-left:0;
}

.featured-specs div:last-child{
  border-right:0;
}

.featured-specs small{
  display:block;

  margin-bottom:6px;

  color:#7f888c;

  font-size:8px;
  letter-spacing:1.4px;
}

.featured-specs strong{
  font-size:13px;
}


/* DETALLES */

.featured-description{
  display:grid;
  grid-template-columns:100px 1fr;

  gap:25px;

  padding:22px 0 0;
}

.featured-description span{
  color:var(--gold);

  font-size:9px;
  letter-spacing:1.8px;
  font-weight:800;
}

.featured-description p{
  margin:0;

  max-width:760px;

  color:#9da4a8;

  line-height:1.65;

  font-size:13px;
}


/* BOTONES PRINCIPALES */

.featured-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;

  margin-top:25px;
}

.primary,
.secondary{
  min-height:48px;

  padding:0 20px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  text-transform:uppercase;

  font-size:11px;
  font-weight:800;
}

.primary{
  background:
    linear-gradient(
      135deg,
      var(--gold),
      var(--gold2)
    );

  color:#0b0d0e;
}

.secondary{
  border:1px solid rgba(255,255,255,.28);
}


/* =========================================================
   BOTONES DE REDES SOCIALES
   ========================================================= */

.social-actions{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:10px;

  margin-top:12px;
}

.social-btn{
  min-height:62px;

  display:flex;
  align-items:center;
  gap:13px;

  padding:10px 16px;

  color:#e6eaec;

  background:#101417;

  border:1px solid var(--line);

  text-align:left;

  transition:.2s;
}

.social-btn:hover{
  border-color:rgba(209,138,55,.85);

  transform:translateY(-1px);
}

.social-btn.share{
  background:
    linear-gradient(
      135deg,
      rgba(209,138,55,.18),
      #101417 60%
    );
}

.social-btn svg{
  width:24px;
  height:24px;

  flex:none;

  fill:none;
  stroke:var(--gold);

  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.social-btn span{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.social-btn small{
  color:#777f83;

  font-size:8px;
  letter-spacing:1.3px;
}

.social-btn b{
  font-size:12px;
  font-weight:700;
}


/* =========================================================
   PANEL DERECHO
   ========================================================= */

.library-panel{
  height:calc(100vh - 78px);

  overflow-y:auto;

  background:#0b0e10;

  padding:34px 28px 45px;
}

.library-panel::-webkit-scrollbar{
  width:7px;
}

.library-panel::-webkit-scrollbar-thumb{
  background:#34393c;
}

.library-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;

  gap:20px;

  padding-bottom:24px;

  border-bottom:1px solid var(--line);
}

.library-head span{
  color:var(--gold);

  font-size:9px;
  font-weight:800;
  letter-spacing:2px;
}

.library-head h2{
  margin:8px 0 0;

  font-family:Montserrat,Arial,sans-serif;

  text-transform:uppercase;

  font-size:30px;
}

.count{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

.count b{
  font-family:Montserrat;

  font-size:26px;
}

.count small{
  color:#7f878a;

  font-size:9px;

  text-transform:uppercase;
  letter-spacing:1px;
}


/* BUSCADOR */

.catalog-tools{
  padding:20px 0;
}

.search-box{
  height:46px;

  display:flex;
  align-items:center;
  gap:10px;

  padding:0 13px;

  border:1px solid var(--line);

  background:#101417;
}

.search-box svg{
  width:19px;
  height:19px;

  fill:none;
  stroke:#7f878a;

  stroke-width:1.4;
  stroke-linecap:round;
}

.search-box input{
  flex:1;

  border:0;
  outline:0;

  color:#fff;

  background:transparent;
}

.catalog-filters{
  display:flex;
  gap:7px;
  flex-wrap:wrap;

  margin-top:12px;
}

.catalog-filters button{
  padding:8px 11px;

  border:1px solid var(--line);

  color:#aeb4b7;

  background:transparent;

  font-size:9px;

  text-transform:uppercase;
}

.catalog-filters button.active{
  background:var(--gold);

  color:#111;

  border-color:var(--gold);

  font-weight:800;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.catalog-list{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:11px;
}

.catalog-card{
  position:relative;

  overflow:hidden;

  background:#12171a;

  border:1px solid var(--line);

  cursor:pointer;

  transition:.2s;
}

.catalog-card:hover,
.catalog-card.active{
  border-color:rgba(209,138,55,.9);

  transform:translateY(-2px);
}

.catalog-card.active::before{
  content:"";

  position:absolute;

  z-index:2;

  left:0;
  top:0;
  bottom:0;

  width:3px;

  background:var(--gold);
}

.catalog-card-image{
  height:135px;

  overflow:hidden;

  background:#151a1d;
}

.catalog-card-image img{
  width:100%;
  height:100%;

object-fit:contain;
  object-position:center;

  padding:5px;
  transition:.3s;
}

.catalog-card:hover img{
  transform:scale(1.035);
}

.catalog-card-body{
  padding:13px;
}

.catalog-card-body small{
  color:var(--gold);

  font-size:8px;
  letter-spacing:1.2px;
}

.catalog-card-body h3{
  margin:7px 0 10px;

  font-family:Montserrat;

  font-size:15px;

  text-transform:uppercase;
}

.catalog-card-meta{
  display:flex;
  justify-content:space-between;

  gap:8px;

  padding-top:9px;

  border-top:1px solid var(--line);

  color:#7f878a;

  font-size:9px;
}

.empty{
  grid-column:1/-1;

  padding:40px 15px;

  border:1px solid var(--line);

  color:#8d9599;

  text-align:center;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.wa-float{
  position:fixed;

  right:18px;
  bottom:18px;

  z-index:80;

  width:52px;
  height:52px;

  display:grid;
  place-items:center;

  border-radius:50%;

  background:var(--green);

  color:#fff;

  box-shadow:
    0 12px 35px rgba(0,0,0,.4);
}

.wa-float svg{
  width:29px;
  height:29px;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast{
  position:fixed;

  left:50%;
  bottom:28px;

  z-index:200;

  transform:
    translate(-50%,30px);

  padding:11px 18px;

  color:#111;

  background:#fff;

  border-radius:4px;

  font-size:12px;
  font-weight:700;

  box-shadow:
    0 12px 40px rgba(0,0,0,.35);

  opacity:0;
  pointer-events:none;

  transition:.25s;
}

.toast.show{
  opacity:1;

  transform:
    translate(-50%,0);
}


/* =========================================================
   AVISO PARA GIRAR
   ========================================================= */

.rotate-hint{
  position:fixed;

  inset:0;

  z-index:9999;

  display:none;

  align-items:center;
  justify-content:center;

  padding:30px;

  background:
    radial-gradient(
      circle at 50% 40%,
      #171b1e,
      #060809 70%
    );

  color:#fff;

  text-align:center;
}

.rotate-box{
  width:min(420px,100%);
}

.rotate-kicker{
  display:block;

  margin-bottom:10px;

  color:var(--gold);

  font-size:9px;
  letter-spacing:2px;
  font-weight:800;
}

.rotate-box h2{
  margin:0 0 10px;

  font-family:Montserrat;

  font-size:34px;

  text-transform:uppercase;
}

.rotate-box p{
  margin:0 auto 25px;

  max-width:330px;

  color:#aab0b3;

  line-height:1.55;

  font-size:13px;
}

.rotate-box button{
  padding:12px 18px;

  color:#fff;

  background:transparent;

  border:1px solid rgba(255,255,255,.3);

  font-size:10px;

  text-transform:uppercase;
  letter-spacing:1px;
}

.rotate-phone{
  position:relative;

  width:58px;
  height:100px;

  margin:0 auto 35px;

  border:2px solid #fff;
  border-radius:9px;

  animation:
    rotatePhone 1.8s infinite ease-in-out;

  box-shadow:
    0 0 35px rgba(209,138,55,.12);
}

.rotate-phone::before{
  content:"";

  position:absolute;

  top:6px;
  left:50%;

  width:18px;
  height:2px;

  transform:translateX(-50%);

  border-radius:5px;

  background:#fff;
}

.rotate-phone-screen{
  position:absolute;

  inset:13px 6px 8px;

  background:
    linear-gradient(
      135deg,
      rgba(209,138,55,.35),
      #111
    );

  border-radius:4px;
}

@keyframes rotatePhone{

  0%{
    transform:rotate(0deg);
  }

  35%{
    transform:rotate(0deg);
  }

  65%{
    transform:rotate(90deg);
  }

  85%{
    transform:rotate(90deg);
  }

  100%{
    transform:rotate(0deg);
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1050px){

  .catalog-shell{
    grid-template-columns:1fr;
  }

  .featured-panel{
    min-height:auto;

    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .featured-content{
    min-height:760px;
  }

  .library-panel{
    height:auto;

    overflow:visible;
  }

}


/* =========================================================
   MÓVIL VERTICAL NORMAL
   ========================================================= */

@media(max-width:760px){

  .catalog-header{
    height:67px;

    padding:0 15px;
  }

  .catalog-header nav{
    display:none;
  }

  .back-link{
    margin-left:auto;
  }

  .brand b{
    font-size:12px;
  }

  .brand small{
    font-size:7px;
  }

  .catalog-shell{
    padding-top:67px;
  }

  .featured-content{
    min-height:auto;

    padding:35px 20px;
  }

  .featured-content h1{
    font-size:47px;

    letter-spacing:-2px;
  }

  .featured-image{
    min-height:240px;

    margin:20px 0;
  }

  .featured-image img{
    max-height:330px;
  }

  .featured-specs{
    grid-template-columns:1fr 1fr;
  }

  .featured-specs div:nth-child(2){
    border-right:0;
  }

  .featured-specs div:nth-child(-n+2){
    border-bottom:1px solid var(--line);
  }

  .featured-description{
    grid-template-columns:1fr;

    gap:8px;
  }

  .featured-actions a{
    width:100%;
  }

  .social-actions{
    grid-template-columns:1fr 1fr;
  }

  .social-btn{
    padding:10px 11px;
  }

  .social-btn b{
    font-size:11px;
  }


  /* CATÁLOGO MÓVIL EN 3 COLUMNAS */

  .library-panel{
    padding:22px 10px 40px;
  }

  .catalog-list{
    grid-template-columns:
      repeat(3,minmax(0,1fr));

    gap:6px;
  }

  .catalog-card{
    min-width:0;
  }

  .catalog-card-image{
    height:85px;
  }

  .catalog-card-body{
    padding:7px 5px;
  }

  .catalog-card-body small{
    display:none;
  }

  .catalog-card-body h3{
    margin:0;

    font-size:9px;

    line-height:1.15;

    text-align:center;
  }

  .catalog-card-meta{
    display:none;
  }

  .featured-panel{
    scroll-margin-top:67px;
  }

}


/* =========================================================
   MOSTRAR AVISO SOLO EN MÓVIL VERTICAL
   ========================================================= */

@media(max-width:900px) and (orientation:portrait){

  body:not(.portrait-allowed) .rotate-hint{
    display:flex;
  }

}


/* =========================================================
   MÓVIL HORIZONTAL — ESTILO "JUEGO / CONFIGURADOR"
   ========================================================= */

@media(max-width:950px) and (orientation:landscape){

  .rotate-hint{
    display:none !important;
  }

  .catalog-header{
    height:54px;

    padding:0 16px;
  }

  .catalog-header nav{
    display:none;
  }

  .back-link{
    margin-left:auto;

    padding:7px 10px;
  }

  .brand-mark{
    height:31px;
  }

  .brand-mark i:nth-child(1){
    height:18px;
  }

  .brand-mark i:nth-child(2){
    height:24px;
  }

  .brand-mark i:nth-child(3){
    height:30px;
  }

  .brand b{
    font-size:11px;
  }

  .brand small{
    display:none;
  }


  /* DOS COLUMNAS COMO EN PC */

.catalog-shell{
  padding-top:54px;

  height:100vh;
  height:100dvh;

  min-height:0;

  grid-template-columns:
    minmax(0,1.55fr)
    minmax(300px,.85fr);

  overflow:hidden;
}


  /* VEHÍCULO GRANDE IZQUIERDA */

  .featured-panel{
      height:calc(100dvh - 54px);

    min-height:0;

    border-right:1px solid var(--line);
    border-bottom:0;

    overflow:hidden;
  }

  .featured-content{
    height:100%;

    min-height:0;

    padding:16px 24px;

    overflow-y:auto;
  }

  .featured-topline{
    font-size:8px;
  }

  .vehicle-brand{
    margin-top:8px;

    font-size:8px;
  }

  .featured-content h1{
    margin:3px 0 3px;

    font-size:clamp(28px,6vw,52px);

    letter-spacing:-2px;
  }

  .vehicle-heading p{
    font-size:11px;
  }
.featured-image{
  width:100%;
  height:auto;
  min-height:0;

  flex:none;

  margin:7px 0 9px;

  overflow:visible;

  display:flex;
  align-items:center;
  justify-content:center;
}

.featured-image img{
  width:100%;
  height:auto;

  max-width:100%;
  max-height:none;

  object-fit:contain;
  object-position:center;

  box-shadow:none;
}

  .featured-specs div{
    padding:7px 8px;
  }

  .featured-specs small{
    margin-bottom:2px;

    font-size:6px;
  }

  .featured-specs strong{
    font-size:9px;
  }

  .featured-description{
    display:none;
  }

  .featured-actions{
    margin-top:8px;

    gap:6px;
  }

  .primary,
  .secondary{
    min-height:34px;

    padding:0 11px;

    font-size:8px;
  }

  .social-actions{
    margin-top:6px;

    gap:6px;
  }

  .social-btn{
    min-height:38px;

    padding:5px 9px;
  }

  .social-btn svg{
    width:17px;
    height:17px;
  }

  .social-btn small{
    display:none;
  }

  .social-btn b{
    font-size:8px;
  }


  /* CATÁLOGO DERECHA */

  .library-panel{
   height:calc(100dvh - 54px);

    overflow-y:auto;

    padding:14px 12px 25px;
  }

  .library-head{
    padding-bottom:10px;
  }

  .library-head h2{
    margin-top:3px;

    font-size:17px;
  }

  .library-head span{
    font-size:6px;
  }

  .count b{
    font-size:17px;
  }

  .count small{
    display:none;
  }

  .catalog-tools{
    padding:9px 0;
  }

  .search-box{
    height:35px;
  }

  .search-box input{
    font-size:10px;
  }

  .catalog-filters{
    margin-top:7px;

    gap:4px;
  }

  .catalog-filters button{
    padding:5px 7px;

    font-size:7px;
  }

  .catalog-list{
    grid-template-columns:
      repeat(2,minmax(0,1fr));

    gap:6px;
  }

  .catalog-card-image{
    height:72px;
  }

  .catalog-card-body{
    padding:6px;
  }

  .catalog-card-body small{
    display:none;
  }

  .catalog-card-body h3{
    margin:0;

    font-size:8px;

    line-height:1.15;

    text-align:center;
  }

  .catalog-card-meta{
    display:none;
  }

  .wa-float{
    width:42px;
    height:42px;

    right:10px;
    bottom:10px;
  }

  .wa-float svg{
    width:23px;
    height:23px;
  }

}
@supports (-webkit-touch-callout:none){

  @media(max-width:950px) and (orientation:landscape){

    .featured-content{
      padding-bottom:calc(18px + env(safe-area-inset-bottom));
    }

    .library-panel{
      padding-bottom:calc(25px + env(safe-area-inset-bottom));
    }

  }

}