:root {
  color-scheme: light;
  --ink: #1d1d21;
  --accent: #d9664c;
  --max: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #080808; background: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #29b8d1; outline-offset: 4px; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 50; padding: 10px 16px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 5; height: 153px; background: var(--ink); }
.header-inner { width: min(calc(100% - 52px), var(--max)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.header-logo { width: 163px; height: 123px; display: block; flex: none; }
.header-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cart-link { width: 62px; height: 62px; color: #c9c9ca; position: relative; display: grid; place-items: center; text-decoration: none; }
.cart-link svg { width: 40px; height: 40px; }
.cart-count { position: absolute; left: 31px; top: 4px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 3px; color: #eee; background: #e7ac9e; font-size: 13px; }
.mobile-menu-button, .mobile-menu, .mobile-bottom-nav { display: none; }

.slider { height: 401px; position: relative; overflow: hidden; background: #f1f8fd url('../assets/slider-fondo.jpg') center center / auto 100% no-repeat; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-inner { max-width: 960px; height: 100%; margin: 0 auto; display: grid; grid-template-columns: 46% 54%; align-items: center; transform: translateX(35px); }
.slide-copy { position: relative; z-index: 1; padding-bottom: 8px; transform: translate(-18px, -7px); }
.slide-copy h1, .slide-copy h2 { font-size: 42px; font-weight: 600; line-height: 1.1; margin: 0 0 5px; letter-spacing: -.025em; }
.slide-copy h2 { font-size: 35px; }
.subtitle-inline { font-size: 21px; font-weight: 400; letter-spacing: 0; vertical-align: 7px; white-space: nowrap; }
.slide-copy p { margin: 0; font-size: 22px; line-height: 30px; font-weight: 400; max-width: 383px; }
.slide[data-slide="2"] .slide-copy p { font-size: 17px; line-height: 1.36; max-width: 430px; }
.slide-cta { display: table; min-width: 220px; margin: 20px 0 0 49px; padding: 11px 26px; border-radius: 999px; text-align: center; color: #fff; background: var(--accent); font-size: 15px; line-height: 1.2; font-weight: 700; text-decoration: none; white-space: nowrap; }
.slide-cta:hover { background: #c9553c; }
.slide-image { display: block; width: 559px; max-width: 110%; height: 335px; object-fit: contain; object-position: center; justify-self: center; transform: translateX(-6px); margin-top: 18px; }
.slider-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: #fff; color: #060606; box-shadow: 0 7px 17px #1d2c361c; cursor: pointer; display: grid; place-items: center; }
.slider-arrow:hover { background: #f9f9f9; }
.slider-arrow svg { width: 22px; height: 22px; }
.slider-arrow-prev { left: max(24px, calc((100% - 1270px) / 2)); }
.slider-arrow-next { right: max(24px, calc((100% - 1270px) / 2)); }
.slider-dots { position: absolute; z-index: 3; bottom: 23px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 13px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.dot.is-active { background: var(--accent); }

.brands { min-height: 408px; padding: 6px max(24px, calc((100% - var(--max)) / 2)) 45px; background: #000; color: #fff; }
.brands h2 { margin: 0; font-size: clamp(28px, 3.3vw, 38px); line-height: 1.3; font-weight: 500; letter-spacing: -.04em; text-align: center; white-space: nowrap; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 38px; max-width: 1170px; margin: 20px auto 0; }
.brand-grid a { display: grid; place-items: center; min-width: 0; height: 225px; transition: transform .2s ease; }
.brand-grid a:hover { transform: translateY(-4px); }
.brand-grid img { width: 400px; max-width: 118%; height: 225px; object-fit: contain; }

.site-footer { background: #fff; min-height: 331px; color: #262626; }
.footer-inner { max-width: 1200px; min-height: 260px; margin: auto; padding: 35px 15px 0; text-align: left; }
.footer-inner h2 { margin: 0 0 16px; font-size: 39px; line-height: 47px; font-weight: 700; }
.footer-inner address { margin: 0; color: #02734a; font-size: 17.5px; line-height: 21px; font-style: normal; font-weight: 500; }
.footer-inner > a, .footer-inner p { color: #02734a; font-size: 20px; line-height: 26px; font-weight: 600; }
.footer-inner > a { display: inline-block; margin-right: 18px; text-decoration: none; }
.footer-inner p { display: inline-block; margin: 0; }
.footer-inner p a { text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: auto; padding: 0 15px; display: flex; justify-content: space-between; gap: 20px; color: #777; font-size: 13px; }
.footer-bottom a { text-decoration: none; }
.account-dialog { width: min(360px, calc(100% - 32px)); max-width: none; border: 0; padding: 30px; box-shadow: 0 20px 80px #0005; }
.account-dialog::backdrop { background: #0008; }
.account-dialog h2 { margin: 0 0 14px; font-size: 27px; }
.account-dialog p { margin: 0 0 22px; color: #555; line-height: 1.5; }
.account-dialog > a { display: inline-block; padding: 11px 18px; border-radius: 99px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }
.account-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 28px; cursor: pointer; }

@media (max-width: 1100px) {
  .slide-inner { max-width: 82%; grid-template-columns: 48% 52%; transform: none; }
  .slide-copy h1 { font-size: 35px; }
  .slide-copy h2 { font-size: 31px; }
  .slide-copy p { font-size: 18px; }
  .slide-image { width: 100%; }
  .brands h2 { white-space: normal; }
}

@media (max-width: 700px) {
  .site-header { height: 58px; }
  .header-inner { width: calc(100% - 26px); justify-content: center; }
  .header-logo { width: 79px; height: 55px; }
  .cart-link { position: absolute; right: 10px; top: 5px; width: 45px; height: 45px; }
  .cart-link svg { width: 29px; height: 29px; }
  .cart-count { width: 17px; height: 17px; left: 24px; top: 1px; font-size: 10px; }
  .mobile-menu-button { display: flex; flex-direction: column; justify-content: center; gap: 5px; position: absolute; left: 11px; top: 9px; width: 43px; height: 40px; padding: 8px; border: 0; background: none; color: #fff; }
  .mobile-menu-button span { display: block; width: 25px; height: 2px; background: currentColor; }
  .mobile-menu { position: absolute; display: flex; flex-direction: column; top: 58px; left: 0; width: min(300px, 85vw); padding: 15px 20px; background: #1d1d21; color: #fff; box-shadow: 5px 10px 20px #0005; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid #ffffff22; }
  .slider { height: 475px; background-size: auto 401px; background-position: center top; }
  .slide-inner { max-width: none; width: calc(100% - 60px); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transform: none; }
  .slide-copy { width: 100%; padding: 0; text-align: center; transform: none; }
  .slide-copy h1 { font-size: 32px; }
  .slide-copy h2 { font-size: 29px; }
  .subtitle-inline { font-size: 16px; vertical-align: 4px; }
  .slide-copy p { max-width: none; margin: 8px auto 0; font-size: 16px; line-height: 1.42; }
  .slide[data-slide="2"] .slide-copy p { max-width: none; font-size: 13px; line-height: 1.3; }
  .slide[data-slide="2"] .slide-image { height: 125px; }
  .slide-cta { min-width: auto; font-size: 14px; padding: 10px 22px; margin: 17px auto 0; }
  .slide-image { width: min(100%, 360px); height: 190px; max-width: none; flex: none; transform: none; margin-top: 0; }
  .slider-arrow { top: auto; bottom: 25px; width: 35px; height: 35px; transform: none; }
  .slider-arrow-prev { left: 16px; }
  .slider-arrow-next { right: 16px; }
  .slider-dots { bottom: 36px; }
  .brands { min-height: 0; padding: 40px 20px 58px; }
  .brands h2 { font-size: 28px; line-height: 1.25; }
  .brand-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 30px; }
  .brand-grid a { height: 150px; }
  .brand-grid img { width: 320px; height: 150px; max-width: 100%; }
  .footer-inner { min-height: 0; padding: 45px 20px 35px; }
  .footer-inner h2 { font-size: 32px; line-height: 1.2; }
  .footer-inner address { font-size: 15px; line-height: 1.5; }
  .footer-inner > a, .footer-inner p { display: block; font-size: 18px; line-height: 1.5; }
  .footer-bottom { padding: 20px 20px 77px; display: block; text-align: left; }
  .footer-bottom a { display: block; margin-top: 12px; }
  .mobile-bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; height: 58px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: #1d1d21; box-shadow: 0 -3px 15px #0002; }
  .mobile-bottom-nav a, .mobile-bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; padding: 0; border: 0; border-right: 1px solid #ffffff20; background: none; color: #f5f5f5; font-size: 9px; text-decoration: none; }
  .mobile-bottom-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 420px) {
  .slider { height: 475px; }
  .slide-inner { width: calc(100% - 52px); }
  .slide-copy h1 { font-size: 29px; }
  .slide-copy h2 { font-size: 26px; }
  .slide-copy p { font-size: 15px; }
  .slide-image { height: 175px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .brand-grid a { transition: none; }
}
