/* 1. Tokens y reset */
:root{
  --ink:#14283F;
  --cy:#1D6FB8;
  --ye:#F5C400;
  --or:#E8702A;
  --soft:#F6F1EA;
  --mut:#4F4F4F;
  --edge:#7DB9EE;
  --wa:#25D366;
  --font:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  --radius:4px;
  --radius-pill:50px;
  --shadow:0 14px 36px -14px rgba(20,40,63,.18);
  --btn-height:52px;
  --btn-gap:12px;
}

*,
*::before,
*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

body{
  margin:0;
  font:400 1rem/1.65 var(--font);
  color:var(--ink);
  background:#fff;
}

h1,h2,h3,p,ul,figure,blockquote{margin:0}
ul{padding:0}
img{max-width:100%}
a{color:inherit}

a:focus-visible,
button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

.cta a:focus-visible,
footer a:focus-visible{outline-color:var(--ye)}

.svg-sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.ico{
  width:20px;
  height:20px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ico-fill{
  fill:currentColor;
  stroke:none;
}

/* 2. Hero, marca y servicios */
.hero{
  max-width:1040px;
  margin:0 auto;
}

.hero-photo img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  object-fit:cover;
  background:var(--soft);
}

.brand{
  background:var(--cy);
  border-bottom:10px solid var(--ye);
  padding:28px 5% 30px;
  color:#fff;
}

.brand h1{
  font-weight:800;
  line-height:1;
  letter-spacing:-.02em;
}

.brand h1 span{display:block}

.k{font-size:clamp(4rem,22vw,6.5rem)}

.g{
  font-size:clamp(2rem,11vw,3.3rem);
  font-weight:700;
}

.tag{
  margin-top:14px;
  max-width:34ch;
  font-weight:500;
}

.brand-tools{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  margin-top:22px;
}

.brand-gallery{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  max-width:360px;
  min-height:var(--btn-height);
  padding:10px 18px;
  border:2px solid var(--ye);
  border-radius:var(--radius-pill);
  background:var(--ye);
  color:var(--ink);
  font-family:var(--font);
  font-size:clamp(.85rem,2vw,.95rem);
  font-weight:600;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  transition:background-color .2s,color .2s,border-color .2s;
}

.status{
  display:inline-flex;
  align-items:flex-start;
  gap:9px;
  max-width:100%;
  padding:9px 16px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:var(--radius-pill);
  background:rgba(20,40,63,.26);
  color:#fff;
  font-size:.82rem;
  font-weight:500;
  line-height:1.35;
}

.status-dot{
  width:10px;
  height:10px;
  flex:none;
  margin-top:.32em;
  border-radius:50%;
  background:rgba(255,255,255,.55);
}

.status[data-state="open"] .status-dot{
  background:var(--wa);
  box-shadow:0 0 0 3px rgba(37,211,102,.25);
}

.status[data-state="closed"] .status-dot{
  background:var(--or);
  box-shadow:0 0 0 3px rgba(232,112,42,.25);
}

.status-text{
  min-width:0;
  overflow-wrap:break-word;
}

.svc{padding:36px 5% 52px}

.svc h2{
  margin-bottom:20px;
  font-size:1.25rem;
  font-weight:600;
}

.svc ul{
  display:grid;
  gap:16px;
  max-width:460px;
  list-style:none;
}

.svc li{
  padding-left:14px;
  border-left:4px solid var(--c);
}

.svc li:nth-child(1){--c:var(--cy)}
.svc li:nth-child(2){--c:var(--ye)}
.svc li:nth-child(3){--c:var(--or)}
.svc li:nth-child(4){--c:var(--ink)}

.svc b{
  display:block;
  font-weight:600;
}

.svc span{
  color:var(--mut);
  font-size:.95rem;
}

/* 3. Secciones */
.sec{padding:clamp(48px,8vw,88px) 5%}

.wrap{
  max-width:1000px;
  margin:0 auto;
}

.sec h2{
  margin-bottom:24px;
  font-size:clamp(1.7rem,6vw,2.3rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.01em;
}

.space{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.space > div > p{
  max-width:58ch;
  margin-bottom:.8em;
  color:var(--mut);
}

.alt{background:var(--soft)}

.where{display:grid;gap:28px}

.info h3{
  margin:22px 0 6px;
  font-size:1rem;
  font-weight:600;
}

.info h3:first-child{margin-top:0}

.info p,
.info a{display:block;margin-bottom:4px}

.info a{
  width:fit-content;
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:var(--cy);
  text-decoration-thickness:3px;
  text-underline-offset:4px;
}

.map iframe{
  display:block;
  width:100%;
  height:320px;
  border:0;
  border-radius:var(--radius);
}

/* 4. Carrusel */
.car{
  position:relative;
  width:100%;
  min-width:0;
  max-width:340px;
  overflow:hidden;
}

.track{
  display:flex;
  align-items:flex-start;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  aspect-ratio:1/1;
  list-style:none;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.track::-webkit-scrollbar{display:none}

.track li{
  flex:0 0 100%;
  aspect-ratio:1/1;
  background:#000;
  scroll-snap-align:center;
}

.track li.vid{
  aspect-ratio:auto;
  min-width:0;
  height:560px;
  max-height:560px;
  overflow:hidden;
  padding:12px 0;
  color:#fff;
  font-size:.9rem;
  text-align:center;
}

.track img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.track:focus-visible,
.car-ctl button:focus-visible{
  outline:3px solid var(--ink);
  outline-offset:3px;
}

.ld{
  padding-top:40px;
  color:#fff;
}

.track li.vid iframe{
  display:block;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  max-height:500px !important;
  margin:0 auto;
  border:0;
}

.track li.vid .instagram-media{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  max-height:500px !important;
  margin:0 auto;
  border:0;
  background:#fff;
}

.vl{
  display:block;
  margin-top:10px;
  color:#fff;
  font-weight:600;
  text-decoration:none;
}

.vl:focus-visible{outline-color:var(--ye)}

.car-ctl{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:12px;
}

.car-ctl button{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:2px solid var(--ink);
  border-radius:50%;
  background:#fff;
  color:var(--ink);
  cursor:pointer;
}

.car-ctl svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.car-count{
  min-width:56px;
  margin:0;
  color:var(--ink);
  font-size:.95rem;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  text-align:center;
}

/* 5. Cierre y botonera */
.cta{
  padding:clamp(60px,10vw,100px) 5%;
  background:var(--ink);
  color:#fff;
  text-align:center;
}

.cta h2{
  font-size:clamp(2rem,8vw,3rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.01em;
}

.cta p{
  max-width:40ch;
  margin:12px auto 28px;
  color:#d6d6d6;
}

.actions{
  display:grid;
  gap:var(--btn-gap);
  width:100%;
  max-width:420px;
  margin-inline:auto;
}

.actions > .btn{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  height:var(--btn-height);
  min-height:var(--btn-height);
  margin:0;
  padding:0 16px;
  border:2px solid var(--btn-bd,transparent);
  border-radius:var(--radius-pill);
  background:var(--btn-bg,transparent);
  color:var(--btn-fg,#fff);
  font-family:var(--font);
  font-size:clamp(.85rem,3.5vw,1rem);
  font-weight:600;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
  white-space:normal;
  overflow-wrap:break-word;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:background-color .2s,color .2s,border-color .2s;
}

.actions > .btn-wa{
  --btn-bg:var(--ye);
  --btn-fg:var(--ink);
  --btn-bd:var(--ye);
}

.actions > .btn-ghost{
  --btn-fg:#fff;
  --btn-bd:var(--edge);
}

.rating{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:24px;
  padding:9px 18px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:var(--radius-pill);
  color:#fff;
  font-size:.92rem;
  font-weight:600;
  text-decoration:none;
  transition:color .2s,border-color .2s;
}

.rating svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* 6. Pie y flotantes */
footer{
  padding:44px 5% 110px;
  border-top:1px solid rgba(255,255,255,.14);
  background:var(--ink);
  color:#d6d6d6;
}

.foot{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap:28px;
  max-width:1000px;
  margin:0 auto;
}

.foot h3{
  margin-bottom:8px;
  color:#fff;
  font-size:1rem;
  font-weight:600;
}

.foot p,
.foot a{
  display:block;
  width:fit-content;
  padding:4px 0;
  text-decoration:none;
}

.credit{
  max-width:1000px;
  margin:36px auto 0;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.14);
  font-size:.85rem;
}

.credit p{margin-bottom:4px}

.credit b{
  color:#fff;
  font-weight:600;
}

.credit a{
  display:inline-block;
  padding:4px 10px 4px 0;
  color:#fff;
  font-weight:700;
  text-decoration:none;
}

.wa-float{
  position:fixed;
  right:16px;
  bottom:calc(16px + env(safe-area-inset-bottom));
  z-index:10;
  display:grid;
  place-items:center;
  width:60px;
  height:60px;
  border-radius:50%;
  background:var(--wa);
  color:#fff;
  box-shadow:0 6px 18px rgba(20,40,63,.18);
}

.wa-float svg{
  width:32px;
  height:32px;
  fill:currentColor;
}

.wa-float:focus-visible{
  outline:3px solid var(--ink);
  box-shadow:0 0 0 6px #fff;
}

/* 7. Estados interactivos */
@media (hover:hover) and (pointer:fine){
  .brand-gallery:hover{
    border-color:#fff;
    background:#fff;
    outline:3px solid var(--ye);
    outline-offset:2px;
  }

  .actions > .btn:hover{
    --btn-bg:var(--ye);
    --btn-fg:var(--ink);
    --btn-bd:var(--ye);
    outline:3px solid #fff;
    outline-offset:3px;
  }

  .car-ctl button:hover{
    background:var(--ink);
    color:#fff;
  }

  .foot a:hover,
  .credit a:hover,
  .rating:hover,
  .vl:hover{color:var(--ye)}

  .rating:hover{border-color:var(--ye)}
}

.brand-gallery:active,
.brand-gallery.is-pressed,
.brand-gallery:focus-visible{
  border-color:#fff;
  background:#fff;
  outline:3px solid var(--ye);
  outline-offset:2px;
}

.actions > .btn:active,
.actions > .btn.is-pressed,
.actions > .btn:focus-visible{
  --btn-bg:var(--ye);
  --btn-fg:var(--ink);
  --btn-bd:var(--ye);
  outline:3px solid #fff;
  outline-offset:3px;
}

/* 8. Responsive */
@media (min-width:620px){
  .actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:820px;
  }
}

@media (min-width:860px){
  .hero{
    display:grid;
    grid-template-columns:1fr 1.1fr;
    column-gap:48px;
    align-items:start;
    padding:40px 5% 0;
  }

  .hero-photo img{
    border-radius:var(--radius);
    box-shadow:var(--shadow);
  }

  .brand{
    padding:32px;
    border-radius:var(--radius) var(--radius) 0 0;
  }

  .svc{padding:32px 0 56px}

  .space{
    grid-template-columns:340px minmax(0,1fr);
    gap:48px;
  }

  .where{
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
    gap:48px;
  }

  .map iframe{height:380px}
}

/* 9. Movimiento y accesibilidad */
@media (prefers-reduced-motion:no-preference){
  .track{
    scroll-behavior:smooth;
    transition:height .25s;
  }
}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
}
