/* Tipografías locales de la identidad visual */
@font-face {
  font-family: "Alan Sans:Bold";
  src: url("./fonts/alan-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Alan Sans:Medium";
  src: url("./fonts/alan-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Nunito Sans:Bold";
  src: url("./fonts/nunito-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Nunito Sans:Italic";
  src: url("./fonts/nunito-sans-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Nunito Sans:Light";
  src: url("./fonts/nunito-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Nunito Sans:Medium";
  src: url("./fonts/nunito-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
}

/* Reset mínimo equivalente al usado por la versión original */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
p {
  margin: 0;
}

button {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-transform: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

:root {
  color: #000;
  background: #fff4cf;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
}

main {
  width: 100%;
  overflow: hidden;
}

.site-header {
  position: relative;
  height: 123px;
  overflow: hidden;
  background: #fff4cf;
}

.site-header img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 123px;
  max-width: none;
  transform: translateX(-50%);
}

.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  color: #fff;
}

.hero-slides,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--desktop-position);
  opacity: 0;
  transition: opacity 700ms ease-in-out;
}

.hero-image.is-active {
  opacity: 1;
}

.hero-carousel-toggle {
  position: absolute;
  z-index: 3;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-shade {
  background: linear-gradient(
    91.04deg,
    rgba(6, 159, 219, 0) 44.612%,
    rgba(69, 101, 173, 0.8) 99.564%
  );
}

.hero-content {
  position: absolute;
  top: calc(50% - 27px);
  right: clamp(48px, 8.33vw, 120px);
  width: min(38.9vw, 560px);
  height: 344px;
  transform: translateY(-50%);
}

.hero-copy {
  position: absolute;
  top: 105px;
  left: 74px;
  width: min(486px, calc(100% - 74px));
}

.hero-copy p {
  font-family: "Nunito Sans:Medium", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  font-variation-settings:
    "YTLC" 500,
    "wdth" 100;
}

.hero-copy h1 {
  font-family: "Alan Sans:Bold", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;
}

.hero-flag {
  position: absolute;
  top: 0;
  left: 0;
  width: 126px;
  height: 183px;
  transform: rotate(-13.72deg);
}

.hero-flip-flops {
  display: block;
  width: 113px;
  height: 88px;
  margin: 34px 47px 0 auto;
}

.combo-section {
  height: 548px;
  overflow: hidden;
  background: #eb9c0e;
  color: #fff;
}

.combo-layout {
  display: grid;
  grid-template-columns: 384px 482px;
  align-items: center;
  gap: 126px;
  width: 992px;
  margin: 86px auto 0;
}

.combo-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 384px;
}

.combo-intro {
  height: 33px;
  font-family: "Nunito Sans:Italic", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: normal;
  font-variation-settings:
    "YTLC" 500,
    "wdth" 100;
}

.combo-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.combo-info h2 {
  font-family: "Alan Sans:Bold", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;
}

.combo-info p {
  font-family: "Nunito Sans:Medium", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  font-variation-settings:
    "YTLC" 500,
    "wdth" 100;
}

.combo-sunglasses {
  position: absolute;
  right: -31px;
  bottom: 17px;
  width: 148px;
  height: 65px;
}

.combo-image {
  width: 482px;
  height: 375px;
  border-radius: 15px;
  object-fit: cover;
}

.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #069fdb;
  padding: 14px 28px;
  color: #fff;
  font-family: "Nunito Sans:Bold", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
  font-variation-settings:
    "YTLC" 500,
    "wdth" 100;
}

.primary-button:hover {
  background: #058bc0;
}

.primary-button:focus-visible {
  outline: 3px solid #fff4cf;
  outline-offset: 3px;
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button[aria-disabled="true"] {
  cursor: default;
}

.products-section {
  min-height: 1203px;
  overflow: hidden;
  background: #fff4cf;
  padding: 114px 24px 115px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 384px);
  gap: 24px;
  justify-content: center;
}

.product-card {
  display: flex;
  min-height: 475px;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  border-radius: 15px;
  background: #fff;
  padding: 24px;
}

.product-image {
  width: 100%;
  height: 200px;
  flex: none;
  border-radius: 15px;
  object-fit: cover;
}

.product-info {
  width: 100%;
  min-height: 105px;
  opacity: 0.8;
}

.product-info h2 {
  margin-bottom: 8px;
  color: #069fdb;
  font-family: "Alan Sans:Medium", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
}

.product-info p {
  font-family: "Nunito Sans:Light", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: normal;
  font-variation-settings:
    "YTLC" 500,
    "wdth" 100;
}

.product-card .primary-button {
  margin-top: auto;
}

.store-cta {
  position: relative;
  display: flex;
  height: 500px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eb9c0e;
}

.store-pattern {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5009px;
  height: 2602px;
  max-width: none;
  transform: translate(-50%, -50%);
}

.store-card {
  position: relative;
  display: flex;
  width: 600px;
  height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 50px;
  background: #fff4cf;
  padding: 24px;
  text-align: center;
}

.store-card h2 {
  width: 384px;
  color: #069fdb;
  font-family: "Alan Sans:Bold", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
}

.store-card p {
  width: 384px;
  font-family: "Nunito Sans:Light", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: normal;
  font-variation-settings:
    "YTLC" 500,
    "wdth" 100;
}

@media (min-width: 900px) and (max-width: 1399px) {
  .hero-content {
    top: 50%;
    right: 40px;
    display: flex;
    width: clamp(400px, 45vw, 500px);
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-50%);
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .hero-copy p {
    font-size: clamp(19px, 2vw, 23px);
  }

  .hero-copy h1 {
    font-size: clamp(34px, 3.45vw, 39px);
    line-height: 1.08;
  }

  .hero-flag {
    position: relative;
    top: auto;
    left: auto;
    width: clamp(86px, 9.5vw, 112px);
    height: auto;
    margin: 0 0 8px 4px;
  }

  .hero-flip-flops {
    width: clamp(82px, 9vw, 104px);
    height: auto;
    margin: 16px 18px 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .combo-section {
    height: auto;
  }

  .combo-layout {
    grid-template-columns: minmax(280px, 384px) minmax(330px, 482px);
    gap: clamp(32px, 4.5vw, 58px);
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 72px 40px;
  }

  .combo-content {
    width: 100%;
    gap: clamp(32px, 3.5vw, 40px);
  }

  .combo-sunglasses {
    right: 0;
    bottom: 8px;
    width: clamp(92px, 10vw, 124px);
    height: auto;
  }

  .combo-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .hero-image {
    object-position: var(--mobile-position);
  }

  .hero-shade {
    background: linear-gradient(
      104deg,
      rgba(6, 159, 219, 0) 28%,
      rgba(51, 92, 161, 0.32) 48%,
      rgba(49, 76, 145, 0.92) 100%
    );
  }

  .hero-content {
    top: 50%;
    right: 40px;
    display: flex;
    width: min(47vw, 400px);
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-50%);
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.06;
  }

  .hero-flag {
    position: relative;
    top: auto;
    left: auto;
    width: 78px;
    height: auto;
    margin: 0 0 8px;
  }

  .hero-flip-flops {
    width: 76px;
    height: auto;
    margin: 16px 10px 0 auto;
  }

  .combo-intro {
    font-size: 18px;
  }

  .combo-info h2 {
    font-size: 34px;
    line-height: 37px;
  }

  .combo-info p {
    font-size: 18px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .products-section {
    padding-right: clamp(32px, 4.7vw, 48px);
    padding-left: clamp(32px, 4.7vw, 48px);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 384px));
    width: 100%;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 82px;
  }

  .site-header img {
    top: 0;
    width: 960px;
    height: 82px;
  }

  .hero {
    height: 688px;
    background: #314c91;
  }

  .hero-slides {
    right: 0;
    bottom: auto;
    left: 0;
    height: clamp(350px, 100vw, 390px);
  }

  .hero-slides::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(49, 76, 145, 0), #314c91);
    content: "";
    pointer-events: none;
  }

  .hero-image {
    object-position: var(--narrow-mobile-position);
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(6, 159, 219, 0) 28%,
      rgba(29, 89, 158, 0.12) 40%,
      rgba(49, 76, 145, 0.96) 57%,
      #314c91 100%
    );
  }

  .hero-content {
    top: auto;
    right: 20px;
    bottom: 32px;
    left: 20px;
    display: flex;
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    transform: none;
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .hero-copy p {
    font-size: clamp(15px, 4.1vw, 17px);
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(28px, 7.7vw, 31px);
    line-height: 1.08;
  }

  .hero-flag {
    position: relative;
    top: auto;
    left: auto;
    width: 52px;
    height: auto;
    margin: 0 0 6px 4px;
  }

  .hero-flip-flops {
    width: 64px;
    height: auto;
    margin: 16px 2px 0 auto;
  }

  .combo-section {
    height: auto;
  }

  .combo-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
    width: auto;
    margin: 0;
    padding: 64px 20px;
  }

  .combo-content {
    width: 100%;
    gap: 32px;
  }

  .combo-intro {
    height: auto;
    font-size: 18px;
  }

  .combo-info h2 {
    font-size: 34px;
    line-height: 37px;
  }

  .combo-info p {
    font-size: 18px;
  }

  .combo-sunglasses {
    right: 0;
    bottom: 6px;
    width: min(88px, 24vw);
    height: auto;
  }

  .combo-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    flex: none;
    object-fit: contain;
  }

  .products-section {
    min-height: 0;
    padding: 64px 20px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .product-card {
    width: 100%;
    min-height: 0;
    gap: 28px;
    padding: 20px;
  }

  .product-image {
    height: auto;
    aspect-ratio: 336 / 200;
  }

  .product-info {
    min-height: 0;
  }

  .product-info h2 {
    font-size: 23px;
  }

  .store-cta {
    height: 460px;
    padding: 44px 20px;
  }

  .store-card {
    width: 100%;
    height: auto;
    min-height: 300px;
    border-radius: 36px;
    padding: 40px 24px;
  }

  .store-card h2,
  .store-card p {
    width: 100%;
  }

  .store-card h2 {
    font-size: clamp(31px, 8.5vw, 36px);
    line-height: 1.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    transition: none;
  }
}

/* Make the carousel control visible when reached by keyboard. */
.hero-carousel-toggle:focus-visible {
  top: 12px; right: 12px; width: auto; height: auto; clip: auto; clip-path: none;
  padding: 8px 12px; background: #304783; color: #fff; border: 2px solid #fff; border-radius: 6px;
}
