/* ==========================================================================
   Start Studio — estilos
   Reconstruido a partir de un export de Figma (posicionamiento absoluto,
   ancho fijo 1440px) a un layout fluido y responsive.
   ========================================================================== */

:root {
  --cream: #fffcf3;
  --ink: #1e1e1e;
  --yellow: #fffa6a;
  --blue: #cfe9f8;
  --pink: #f7aecc;
  --pink-deep: #ee7fb0;
  --gray-placeholder: #bcbcbc;

  --font-serif: "Libre Baskerville", "Source Serif Pro", "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1600px;
  --radius-lg: 40px;
  --radius-md: 28px;
  --radius-sm: 16px;

  --header-h: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 92px);
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cream);
}

.header__inner {
  height: var(--header-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}

.nav__link {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.nav__link:hover {
  opacity: 0.6;
}

.nav__link--pill {
  background-color: var(--yellow);
  padding: 12px 22px;
  border-radius: 28px 0 28px 28px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  padding: 14px 28px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--yellow {
  background-color: var(--yellow);
  color: var(--ink);
}

.btn--dark {
  background-color: var(--ink);
  color: var(--cream);
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(56px, 9vw, 110px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url(img/hero-bg.jpg);
  background-size: cover;
  background-position: center;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 252, 243, 0.82);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 92px);
}

.badge-wrap {
  position: relative;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--cream);
  border-radius: 36px;
  padding: 14px 22px;
  box-shadow: 0 1px 2px rgba(30, 30, 30, 0.08);
}

.badge span {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: -0.02em;
}

.badge__sparkle {
  width: 20px;
  height: auto;
}

.hero__star {
  position: absolute;
  top: 50%;
  left: 100%;
  width: clamp(32px, 3.4vw, 46px);
  height: auto;
  transform: translate(-35%, -65%);
}

@media (max-width: 760px) {
  .hero__star {
    display: none;
  }
}

.hero__title {
  margin: 28px 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 75px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__title em {
  font-size: 0.93em;
}

.hero__text {
  margin: 28px 0 0;
  max-width: 820px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero__text strong {
  font-weight: 700;
}

.hero .btn {
  margin-top: 36px;
}

/* ---------- Marquee ---------- */

.marquee {
  background-color: var(--cream);
  border-top: 1px solid rgba(30, 30, 30, 0.08);
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
  overflow: hidden;
  padding: 22px 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-16.6667%); }
}

.marquee__item {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding-inline: 16px;
}

.marquee__icon {
  width: clamp(20px, 2.2vw, 28px);
  height: auto;
  display: inline-block;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------- Section titles ---------- */

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.section-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 clamp(28px, 4vw, 48px);
  max-width: 60ch;
}

.section-sub strong {
  font-weight: 700;
}

/* ---------- Team ---------- */

.team {
  position: relative;
  background-color: var(--blue);
  margin: clamp(48px, 6vw, 88px) clamp(10px, 2vw, 24px) 0;
  border-radius: var(--radius-lg);
  padding-block: clamp(40px, 6vw, 60px) clamp(60px, 8vw, 90px);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

.team__card {
  text-align: center;
}

.team__photo {
  /* Las tres fotos ya vienen recortadas al mismo encuadre (700x733, sin fondo
     de estudio de sobra arriba de la cabeza), así que fijamos ese aspect-ratio
     para que las tres tarjetas midan siempre exactamente lo mismo, la tengan
     o no una imagen de tamaño levemente distinto en el futuro. */
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 700 / 733;
}

.team__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team__card:hover .team__photo img {
  transform: scale(1.04);
}

.team__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}

.team__sticker {
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: clamp(120px, 12vw, 190px);
  pointer-events: none;
  transform: rotate(-8deg);
}

/* ---------- Services ---------- */

.services {
  position: relative;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(16px, 2.4vw, 32px);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: clamp(24px, 2.6vw, 32px) clamp(22px, 2.6vw, 32px) clamp(28px, 3vw, 34px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30, 30, 30, 0.1);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 20px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.service-card p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
}

.service-card p strong {
  font-weight: 700;
}

.service-card--yellow { background-color: var(--yellow); }
.service-card--blue   { background-color: var(--blue); }
.service-card--pink   { background-color: var(--pink); }

.sticky-tag {
  position: absolute;
  right: clamp(-12px, -1vw, 6px);
  bottom: -18px;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 6px;
  transform: rotate(6deg) translateY(10px) scale(0.85);
  transform-origin: bottom right;
  box-shadow: 0 6px 14px rgba(30, 30, 30, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-card:hover .sticky-tag,
.sticky-tag:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: rotate(6deg) translateY(0) scale(1);
}

.services__sticker {
  position: absolute;
  right: clamp(-10px, 0vw, 30px);
  top: clamp(-10px, -1vw, 10px);
  width: clamp(110px, 11vw, 170px);
  transform: rotate(6deg);
  pointer-events: none;
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  background-color: var(--yellow);
  margin: clamp(20px, 3vw, 40px) clamp(10px, 2vw, 24px) clamp(60px, 8vw, 96px);
  border-radius: var(--radius-lg);
  padding-block: clamp(48px, 6vw, 72px);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--cream);
  border-radius: 46px;
  padding: 8px 18px 8px 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
}

.pill-badge__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill-badge__icon svg {
  width: 15px;
  height: 15px;
  color: var(--ink);
}

.contact__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48.5px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 24px 0 0;
}

.contact__text {
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-width: 46ch;
  margin: 24px 0 0;
}

.contact__text strong {
  font-weight: 700;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.channel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  width: fit-content;
  transition: opacity 0.15s ease;
}

.channel:hover {
  opacity: 0.7;
}

.channel__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.channel__icon--mail { background-color: var(--ink); }
.channel__icon--instagram { background-color: var(--pink-deep); }
.channel__icon--linkedin { background-color: #2c6ea3; }

.channel__icon img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

/* Form */

.contact__form {
  background-color: var(--pink);
  border-radius: 32px;
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.field input,
.field textarea {
  background-color: var(--cream);
  border: 2px solid transparent;
  border-radius: 9px;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-placeholder);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: #d3564f;
}

.contact__form .btn {
  margin-top: 4px;
}

.form-status {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.form-status.is-success { color: #1e6b3a; }
.form-status.is-error { color: #b3261e; }

.contact__sticker-doc {
  position: absolute;
  top: clamp(-46px, -4vw, -18px);
  right: clamp(-30px, -2vw, 60px);
  width: clamp(90px, 9vw, 140px);
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 2;
}

.contact__sticker-burst {
  position: absolute;
  bottom: clamp(-30px, -3vw, -10px);
  left: clamp(-20px, -2vw, 40%);
  width: clamp(70px, 7vw, 100px);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Stickers (shared) ---------- */

.sticker {
  user-select: none;
}

/* ---------- Toast (aviso de "mail copiado") ---------- */

.mail-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(30, 30, 30, 0.25);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: min(90vw, 380px);
  text-align: center;
}

.mail-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 36px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.logo--footer img {
  height: 22px;
  opacity: 0.8;
}

.footer p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(30, 30, 30, 0.7);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .team__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

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

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

  .contact__sticker-doc,
  .contact__sticker-burst {
    display: none;
  }
}

@media (max-width: 760px) {
  .header__inner {
    position: relative;
    height: auto;
    padding-block: 14px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--cream);
    padding-inline: clamp(20px, 6vw, 32px);
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 14px 24px rgba(30, 30, 30, 0.1);
    transition: max-height 0.28s ease, padding-block 0.28s ease;
  }

  .nav.is-open {
    max-height: 320px;
    padding-block: 12px 20px;
  }

  .nav__link {
    font-size: 16px;
    width: 100%;
    padding-block: 10px;
  }

  .nav__link--pill {
    width: fit-content;
    margin-top: 6px;
    padding: 10px 18px;
  }

  .team__sticker,
  .services__sticker {
    display: none;
  }

}

/* El ".sticky-tag" (el "¡Lo quiero!") solo aparecía con :hover, que no existe
   al tocar en mobile/touch — por eso quedaba invisible e inclicable ahí.
   En touch, un primer toque en la tarjeta agrega ".is-tapped" (ver script.js)
   y recién ahí aparece el tag, tocable, igual que el :hover de PC. */
.service-card.is-tapped .sticky-tag {
  opacity: 1;
  pointer-events: auto;
  transform: rotate(6deg) translateY(0) scale(0.92);
}

@media (max-width: 520px) {
  .hero__title {
    letter-spacing: -0.03em;
  }
}

/* ---------- Scroll reveal (aparecen con fade al ir bajando) ----------
   Progressive enhancement: por defecto todo se ve normal (opacity:1), por
   si el JS no llega a correr. Recién cuando script.js confirma que puede
   animar (soporta IntersectionObserver y la persona no pidió "reducir
   movimiento" en su sistema) agrega ".js-ready" al <html>, y ahí es cuando
   los ".reveal" arrancan ocultos y van apareciendo a medida que entran en
   pantalla, tanto en mobile como en PC. */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero__inner .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero__inner .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero__inner .reveal:nth-child(4) { transition-delay: 0.24s; }

.team__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.team__grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.services__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services__grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.services__grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.contact__grid .reveal:nth-child(2) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
