/* ---------------------------------------------------------
   Abril Bubis — portfolio
   Paleta:  fondo #1D1D1D · crema #F2EAE3 · bordó #C4503E
   Tipos:   display (serif) + Montserrat
   --------------------------------------------------------- */

@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/TheSeasons-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}

:root {
  --bg: #171717;
  --bg-slot: #222222;
  --cream: #F2EAE3;
  --cream-soft: #DCCFC7;
  --bordo: #A22020;
  --muted: #8F8580;
  --gap: 4px;
  --pad: 44px;
  --display: 'The Seasons', 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cream); text-decoration: none; }
a:hover { color: var(--bordo); }
::selection { background: var(--bordo); color: var(--cream); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.display {
  font-family: var(--display);
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
}
.italic { font-style: italic; }
.kicker {
  font-size: 10px; letter-spacing: 0.26em; font-weight: 600;
  text-transform: uppercase; color: var(--cream);
}

/* --- espacios de imagen ---------------------------------- */
.slot {
  position: relative; overflow: hidden;
  background: var(--bg-slot);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.slot-label {
  position: absolute; padding: 8px 12px; max-width: 80%;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #6F6763; border: 1px dashed #3A3A3A; text-align: center;
}
.slot img { position: relative; z-index: 1; }
.slot img + .slot-label { display: none; }

/* --- topbar ---------------------------------------------- */
.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 30px var(--pad);
}
.menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 24px; }
.menu-toggle { display: none; }
.nav { display: flex; gap: 34px; }
.nav a {
  position: relative; padding-bottom: 5px;
  font-size: 12px; letter-spacing: 0.16em; font-weight: 600;
  text-transform: uppercase; color: var(--cream); opacity: 0.55;
  transition: opacity 260ms ease;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.nav a:hover { color: var(--cream); opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.icon { display: flex; opacity: 0.75; }
.icon svg { width: 17px; height: 17px; }
.icon:hover { opacity: 1; }

.lang { display: flex; align-items: center; gap: 8px; }
.lang button {
  background: none; border: 0; padding: 2px; cursor: pointer;
  color: var(--cream); font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.14em; font-weight: 600; opacity: 0.5;
}
.lang button:hover, .lang button.is-active { opacity: 1; }
.lang span { opacity: 0.35; font-size: 11px; }

/* --- home ------------------------------------------------ */
.hero { position: relative; height: 100vh; overflow: hidden; }
.slot-cover { position: absolute; inset: 0; }
.hero .slot-cover img { filter: blur(3px) brightness(0.54) saturate(0.9); transform: scale(1.04); }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(62% 44% at 50% 46%, rgba(29,29,29,0.55) 0%, rgba(29,29,29,0) 100%),
    linear-gradient(180deg, rgba(29,29,29,0.55) 0%, rgba(29,29,29,0.4) 45%, rgba(29,29,29,0.62) 100%);
}
.lang-floating { position: absolute; top: 32px; right: var(--pad); z-index: 3; }
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  animation: fadeUp 900ms ease both;
}
.hero-lockup { width: max-content; max-width: 92vw; }
.hero-eyebrow {
  margin: 0 0 clamp(14px, 2.2vh, 28px);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  font-size: clamp(14px, 1.45vw, 24px); font-weight: 500; letter-spacing: 0.01em;
  text-shadow: 0 1px 18px rgba(29,29,29,0.65);
  text-transform: lowercase; color: #F6F1EC;
}
.hero-eyebrow .slashes { letter-spacing: -0.06em; }
.hero-eyebrow .star { font-size: 0.8em; line-height: 1; }
.hero-title {
  margin: 0; text-align: center; color: #F6F1EC;
  text-transform: uppercase; letter-spacing: 0.01em;
  -webkit-text-stroke: 0.9px #F6F1EC; paint-order: stroke fill;
  font-size: clamp(46px, 8.6vw, 150px); line-height: 0.9;
  text-shadow: 0 2px 40px rgba(29,29,29,0.5);
}
.start {
  margin-top: clamp(28px, 7vh, 84px);
  font-size: clamp(15px, 1.4vw, 21px); font-weight: 700; letter-spacing: 0;
  text-transform: lowercase; color: #F6F1EC;
  padding: 14px 34px; border: 1px solid transparent; background: transparent;
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}
.start:active, .start:hover, .start:focus-visible {
  color: #F6F1EC; background: var(--bordo); border-color: var(--bordo);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --- work: logo + grid ----------------------------------- */
.brandmark {
  position: sticky; top: 0; z-index: 0;
  display: flex; align-items: flex-start; justify-content: center;
  height: 50vh; min-height: 250px;
  padding: 3vh var(--pad) 0;
}

.slot-logo {
  width: min(40vw, 560px); height: min(360px, 38vh);
  background: none;
}
.slot-logo img {
  object-fit: contain;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 700ms ease;
}


.grid {
  position: relative; z-index: 1;
  display: grid; gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
  background: var(--bg);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); padding: 0; }

.card { position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--bg-slot); }
.card-tall { aspect-ratio: 4 / 5; }
.card .slot img { transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 500ms ease; }
.card:hover .slot img { transform: scale(1.04); }
.card-over {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(29,29,29,0) 30%, rgba(29,29,29,0.85) 100%);
  opacity: 0; transition: opacity 260ms ease;
}
.card:hover .card-over { opacity: 1; }
.card-title {
  font-family: var(--sans); font-weight: 200;
  font-size: 20px; line-height: 1.15; text-transform: uppercase;
  letter-spacing: 0.02em; color: #F6F1EC;
}
.card-title.small { font-size: 15px; }

/* --- proyecto -------------------------------------------- */
.project-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end;
  padding: 60px var(--pad) 54px;
}
.project-head .kicker { margin: 0 0 18px; display: block; }
.project-title {
  margin: 0; font-family: var(--sans); font-weight: 200;
  font-size: clamp(26px, 3.4vw, 52px); line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.01em;
  -webkit-text-stroke: 0.9px #F6F1EC; paint-order: stroke fill; color: #F6F1EC;
}
.project-meta { display: flex; flex-direction: column; gap: 22px; padding-bottom: 10px; }
.project-desc {
  margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.75;
  font-weight: 300; color: var(--cream-soft); text-wrap: pretty;
}
.meta-row {
  display: flex; gap: 40px; font-size: 10px; letter-spacing: 0.18em;
  font-weight: 600; text-transform: uppercase; color: var(--muted);
}

.rows { display: flex; flex-direction: column; gap: 0; padding: 0; }
.row { display: grid; gap: 0; }
.row-1 { grid-template-columns: 1fr; }
.row-1 .slot { aspect-ratio: 16 / 9; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-2 .slot { aspect-ratio: 4 / 5; }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-3 .slot { aspect-ratio: 1 / 1; }

.also { padding: 96px var(--pad) 40px; }
.also h2 {
  margin: 0 0 28px; font-size: 12px; letter-spacing: 0.24em;
  font-weight: 700; text-transform: uppercase;
}

/* --- about / contacto ------------------------------------ */
.about {
  display: grid; grid-template-columns: 0.62fr 1.38fr; gap: 64px;
  align-items: start; padding: 80px var(--pad) 100px;
}
.slot-portrait { aspect-ratio: 3 / 4; max-width: 330px; }
.about-text { display: flex; flex-direction: column; gap: 30px; }
.slot-portrait {
  background: none; overflow: visible;
  transform: rotate(-3.2deg);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}
.slot-portrait:hover { transform: rotate(-1.2deg); }
.slot-portrait img {
  object-fit: contain; object-position: top;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.45));
}

.section-title {
  margin: 0; font-family: var(--display); font-weight: 300;
  font-size: clamp(22px, 2.3vw, 34px); letter-spacing: 0.02em;
  text-transform: uppercase; color: #F6F1EC;
}
.lead {
  margin: 0; max-width: 58ch; font-size: 15px; line-height: 1.8;
  font-weight: 300; color: var(--cream-soft); text-wrap: pretty;
}
.tagline {
  margin: 0; font-size: 13px; letter-spacing: 0.06em; font-weight: 500;
  text-transform: uppercase; color: var(--cream);
}
.tagline.small { margin-top: 12px; font-size: 12px; letter-spacing: 0.04em; font-weight: 400; color: var(--cream-soft); text-transform: none; }
.sep { color: var(--cream-soft); opacity: 0.55; margin: 0 6px; }

.cv-block { padding-top: 22px; border-top: 1px solid rgba(242,234,227,0.14); }
.cv-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cv-list li { display: grid; grid-template-columns: 170px 1fr; gap: 4px 24px; }
.cv-date { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cv-role { font-size: 14px; font-weight: 500; color: var(--cream); }
.cv-desc { grid-column: 2; font-size: 13px; line-height: 1.65; font-weight: 300; color: var(--cream-soft); max-width: 52ch; }

.contact { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 44px; padding: 60px var(--pad) 120px; }
.contact-form { display: flex; flex-direction: column; gap: 26px; width: min(680px, 100%); }
.contact-form label { display: flex; flex-direction: column; gap: 10px; }
.contact-form label span {
  font-size: 11px; letter-spacing: 0.2em; font-weight: 600;
  text-transform: uppercase; color: var(--cream-soft);
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 15px 18px;
  background: #F6F1EC; color: #1D1D1D;
  border: 1px solid transparent; border-radius: 2px;
  font-family: var(--sans); font-size: 15px; font-weight: 400;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9A928D; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--bordo);
  box-shadow: 0 0 0 2px rgba(162,32,32,0.35);
}
.contact-form button {
  align-self: flex-start; margin-top: 6px;
  padding: 14px 38px; cursor: pointer;
  background: transparent; color: #F6F1EC;
  border: 1px solid rgba(242,234,227,0.5); border-radius: 2px;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  text-transform: lowercase; letter-spacing: 0;
  transition: background-color 240ms ease, border-color 240ms ease;
}
.contact-form button:hover { background: var(--bordo); border-color: var(--bordo); }

/* --- footer ---------------------------------------------- */
.footer {
  position: relative; z-index: 1;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 60px var(--pad) 48px; border-top: 1px solid rgba(242,234,227,0.1);
}
.socials { display: flex; gap: 22px; }
.socials .icon svg { width: 19px; height: 19px; }
.copy { font-size: 10px; letter-spacing: 0.22em; font-weight: 500; text-transform: uppercase; color: #7A716C; }

/* --- responsive ------------------------------------------ */
@media (max-width: 900px) {
  :root { --pad: 22px; }
  .topbar {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 14px; padding: 20px var(--pad); flex-wrap: wrap;
  }
  .nav { gap: 18px; flex-wrap: wrap; }
  .nav a { font-size: 11px; letter-spacing: 0.12em; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .project-head, .about { grid-template-columns: 1fr; gap: 32px; }
  .project-meta { padding-bottom: 0; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .card-title { font-size: 22px; }
  .also { padding: 64px var(--pad) 24px; }
  .brandmark { height: 46vh; min-height: 220px; padding-top: 3vh; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .row-1 .slot { aspect-ratio: 4 / 3; }
  .hero { height: 100svh; }
  .hero-content { gap: 8px; padding: 0 18px; }
  .hero-lockup { max-width: 100%; }
  .hero-eyebrow { gap: 7px; font-size: 12px; }
  .start { font-size: 15px; padding: 12px 26px; }
  .lang-floating { top: 20px; right: 18px; }
  .brandmark { height: 38vh; min-height: 180px; }
  .slot-logo { width: 46vw; height: 26vh; }
  .card-over { padding: 18px; }
  .card-title { font-size: 20px; }
  .card-title.small { font-size: 16px; }
  .project-head { padding: 34px var(--pad) 34px; }
  .contact { min-height: 60vh; padding: 40px var(--pad) 80px; }
  .contact-form { gap: 20px; }
  .contact-form button { width: 100%; text-align: center; }
  .about { padding: 40px var(--pad) 70px; }
  .slot-portrait { transform: rotate(-2deg); }
  .cv-list li { grid-template-columns: 1fr; gap: 4px; }
  .cv-desc { grid-column: 1; }
  .footer { padding: 44px var(--pad) 36px; }
  .slot-label { font-size: 9px; letter-spacing: 0.1em; }
}

/* en touch no hay hover: la grilla queda solo con las fotos */
@media (hover: none) {
  .card-over { opacity: 0; }
}

/* hit-area socials */
.footer .socials { gap: 20px; }
.footer .socials .icon { padding: 10px; margin: -10px; }

/* --- menú desplegable en mobile --------------------------- */
@media (max-width: 760px) {
  .topbar { justify-content: flex-end; padding: 20px var(--pad); }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span {
    display: block; width: 24px; height: 1.5px; background: var(--cream);
    transition: transform 260ms ease, opacity 200ms ease;
  }
  .topbar.is-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .topbar.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .topbar.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    flex-direction: column; align-items: flex-start; gap: 22px;
    background: var(--bg); border-top: 1px solid #2A2A2A;
    padding: 24px var(--pad) 28px;
  }
  .topbar.is-open .menu { display: flex; }
  .nav { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav a { font-size: 13px; letter-spacing: 0.16em; }
  .topbar-right { gap: 22px; }
  .hero-title { font-size: min(15.2vw, 108px); white-space: nowrap; }
}
