/* =====================
   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;
}

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: 48px;
  height: 48px;
  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, Arial, sans-serif;
}

h1 {
  max-width: 900px;
  font-size: clamp(38px, 5.8vw, 70px);
  font-weight: 800;
  line-height: 1.08;
}

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

.card-grid article {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .14);
}

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

.card-grid h3 {
  margin: 18px 0 10px;
  font-size: 26px;
}

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

.interest-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border-radius: 15px;
  color: var(--black);
  background: var(--gold);
  font-weight: 900;
  transition: .22s ease;
}

.interest-button:hover {
  color: var(--white);
  background: var(--orange);
  transform: translateY(-2px);
}

/* =====================
   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:1050px) {

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media(max-width:700px) {

  .card-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) {
  .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;
  }
}
