/* =====================
   Variables
===================== */
:root {
  --cream: #faf5ea;
  --navy: #073d5b;
  --orange: #ff5a00;
  --gold: #f6ad00;
  --black: #050505;
  --white: #fff;
  --ink: #101010;
}

/* =====================
   Base
===================== */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--cream);
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
}

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

/* =====================
   Menú y header compartidos
===================== */
.menu-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(7, 61, 91, .14);
  background: rgba(250, 245, 234, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.header-brand:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.header-brand-image {
  width: 54px;
  height: 54px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.header-brand-name {
  color: var(--orange);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.header-brand-name span {
  color: var(--orange);
}

.menu-button,
.drawer-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--navy);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  transition: background .2s ease, transform .2s ease;
}

.menu-button:hover,
.drawer-close:hover {
  background: var(--orange);
  transform: scale(1.04);
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: min(350px, 86vw);
  padding: 24px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 24px 0 70px rgba(0, 0, 0, .32);
  transform: translateX(-110%);
  transition: transform .28s ease;
}

.menu-toggle:checked ~ .drawer {
  transform: translateX(0);
}

.drawer strong {
  display: block;
  margin: 18px 0 24px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.drawer nav {
  display: grid;
  gap: 12px;
}

.drawer a {
  padding: 13px 16px;
  border: 1px solid var(--gold);
  border-radius: 15px;
  background: var(--black);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background .2s ease, transform .2s ease;
}

.drawer a:hover,
.drawer a.active {
  background: var(--orange);
  transform: translateX(4px);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.menu-toggle:checked ~ .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* =====================
   Layout principal
===================== */
main {
  flex: 1;
}

/* =====================
   Contenido de pagina
===================== */
.page-section {
  min-height: calc(100vh - 160px);
  padding: 78px 6vw;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1, h3 {
  margin: 0;
  font-family: Montserrat;
}

h1 {
  max-width: 1050px;
  font-size: clamp(28px, 5.4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
}

/* =====================
   Carrusel de imagenes
===================== */
.image-carousel {
  position: relative;
  width: 100%;
  height: 170px;
  margin-top: 22px;
  overflow: hidden;
}

.image-carousel::before,
.image-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 8%;
  pointer-events: none;
}

.image-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--cream), rgba(250, 245, 234, 0));
}

.image-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--cream), rgba(250, 245, 234, 0));
}

.carousel-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 170px;
  gap: 16px;
  animation: slide-left 9s linear infinite;
}

.carousel-track figure {
  position: relative;
  width: clamp(220px, 22vw, 290px);
  height: 155px;
  aspect-ratio: auto;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--navy);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .13);
}

.carousel-track figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 61, 91, .02), rgba(7, 61, 91, .22)),
    rgba(0, 0, 0, .04);
  pointer-events: none;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@keyframes slide-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

/* =====================
   Descripcion de empresa
===================== */
.company-details {
  margin-top: 70px;
}

.detail-intro {
  max-width: 980px;
}

.detail-intro h2 {
  max-width: 980px;
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 400;
  line-height: 1.12;
}

.detail-intro p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(16, 16, 16, .7);
  line-height: 1.8;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.detail-grid article {
  padding: 24px;
  border-radius: 20px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
}

.detail-grid span {
  color: var(--gold);
  font-weight: 900;
}

.detail-grid h3 {
  margin: 14px 0 10px;
  color: var(--gold);
  font-size: 24px;
}

.detail-grid p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
}

/* =====================
   Footer Market Studios
===================== */
.studio-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  min-height: 76px;
  padding: 0 6vw;
  color: rgba(0, 0, 0, .58);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.studio-footer a {
  color: #000;
  border-bottom: 1px solid #000;
}

/* =====================
   Responsive
===================== */
@media(max-width:900px) {

  .image-carousel,
  .carousel-track {
    height: 145px;
  }

  .carousel-track {
    gap: 13px;
  }

  .carousel-track figure {
    width: 220px;
    height: 132px;
  }

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

  .studio-footer {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

}

/* Header responsive compartido */
@media (max-width: 900px) {
  .site-header {
    min-height: 72px;
    padding: 8px 18px;
  }

  .header-brand-image {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 600px) {
  .image-carousel {
    height: 122px;
    margin-top: 18px;
  }

  .carousel-track {
    height: 122px;
    gap: 11px;
  }

  .carousel-track figure {
    width: 175px;
    height: 110px;
  }

  .site-header {
    min-height: 66px;
    gap: 11px;
    padding: 7px 12px;
  }

  .menu-button,
  .drawer-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
  }

  .header-brand {
    gap: 7px;
  }

  .header-brand-image {
    width: 43px;
    height: 43px;
  }

  .header-brand-name {
    font-size: clamp(13px, 4vw, 18px);
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .site-header {
    padding: 7px 10px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }

  .header-brand-image {
    width: 39px;
    height: 39px;
  }

  .header-brand-name {
    font-size: 12px;
  }
}
