/* ==========================================================================
   Piece of Heaven — page sections
   ========================================================================== */

/* --- hero -----------------------------------------------------------------
   Sized so the logo, the headline and both buttons always sit in the first
   screen, on a laptop and on a phone.
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(5.5rem, 11vh, 7.5rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  background:
    radial-gradient(120% 90% at 8% 0%, var(--ice) 0%, rgba(223,243,248,0) 62%),
    var(--paper);
}
.hero__copy { max-width: 40rem; position: relative; z-index: 2; }

.hero__logo {
  width: clamp(190px, 18vw, 270px);
  height: auto;
  margin: 0 0 clamp(1.25rem, 3.5vh, 2.25rem) -.35rem;
}
.hero .eyebrow { margin-bottom: 1.1rem; }

.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  margin-bottom: 1.4rem;
}
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero__title .w > span {
  display: inline-block;
  transform: translateY(105%);
  animation: word-up 1.15s var(--ease) forwards;
  animation-delay: calc(var(--w) * 85ms + 150ms);
}
@keyframes word-up { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__title .w > span { transform: none; animation: none; }
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-top: clamp(1.5rem, 3.5vh, 2.4rem);
}

/* the photo sits in a mat, like a print — with an ice-blue block offset
   behind it so it is anchored to the page instead of floating */
.hero__figure {
  --off: clamp(.9rem, 1.8vw, 1.6rem);
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 500px;
  margin: 0 var(--off) var(--off) 0;
}
.hero__figure::before {
  content: "";
  position: absolute;
  inset: var(--off) calc(var(--off) * -1) calc(var(--off) * -1) var(--off);
  background: var(--ice);
  border-radius: 2px;
  z-index: -1;
}
.mat {
  margin: 0;
  background: #fff;
  padding: clamp(.6rem, 1vw, .9rem) clamp(.6rem, 1vw, .9rem) 0;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  box-shadow: 0 40px 70px -45px rgba(20, 24, 28, .45),
              0 2px 6px rgba(20, 24, 28, .05);
}
.mat .frame {
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - 16rem);
  width: 100%;
}
.mat__cap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding: .85rem .15rem .95rem;
}
.mat__cap span:first-child { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.mat__cap span:last-child {
  font-size: .62rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-45);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 3rem;
    padding-top: clamp(5.5rem, 12vh, 7rem);
  }
  .hero__logo { width: clamp(160px, 44vw, 220px); }
  .hero__figure { justify-self: center; max-width: 460px; }
  .mat .frame { aspect-ratio: 4 / 3; max-height: none; }
}
@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* --- section heading pattern -------------------------------------------- */
.shead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.shead p { color: var(--ink-70); max-width: 30rem; margin-top: 1.2rem; }
@media (max-width: 760px) {
  .shead { grid-template-columns: 1fr; align-items: start; }
}

/* --- promesa ------------------------------------------------------------ */
.promesa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.promesa > div {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-left: 1px solid var(--line-soft);
}
.promesa > div:first-child { border-left: 0; padding-left: 0; }
.promesa h3 { margin-bottom: .9rem; }
.promesa p { color: var(--ink-70); font-size: .97rem; }
.promesa__num {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--caramel);
  margin-bottom: 1.5rem;
}
@media (max-width: 860px) {
  .promesa { grid-template-columns: 1fr; }
  .promesa > div {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-inline: 0;
  }
  .promesa > div:first-child { border-top: 0; padding-top: 0; }
}

/* --- creaciones preview -------------------------------------------------
   All frames are landscape on purpose: `cover` only crops vertically when the
   frame is wider than the source, and every one of these photos has a kitchen
   or a living room at the top of the shot.
   ------------------------------------------------------------------------ */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.75rem, 1.6vw, 1.4rem);
}
.tile { text-decoration: none; display: block; }
.tile .frame { aspect-ratio: 4 / 3; }
.tile--hero { grid-column: 1 / -1; }
.tile--hero .frame { aspect-ratio: 21 / 9; }

.tile__cap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  margin-top: .85rem;
}
.tile__cap span:first-child { font-family: var(--serif); font-size: 1.15rem; }
.tile__cap span:last-child {
  font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-45);
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr; }
  .tile--hero .frame { aspect-ratio: 16 / 10; }
}

/* --- evento / feria ----------------------------------------------------- */
.evento {
  background: var(--ice-soft);
  overflow: hidden;
}
.evento__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.evento .frame { aspect-ratio: 4 / 5; }
.evento__body { max-width: 34rem; }
.evento__tag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--caramel);
  border: 1px solid rgba(184, 118, 58, .35);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin-bottom: 1.6rem;
}
.evento__tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--caramel);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

.evento dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem 1.75rem;
  margin: 2.2rem 0;
  padding-block: 1.75rem;
  border-block: 1px solid var(--line-soft);
}
.evento dt {
  font-size: .66rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-45);
  padding-top: .35rem;
}
.evento dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.evento dd.todo { color: var(--ink-45); font-family: var(--sans); font-size: .95rem; }

@media (max-width: 900px) {
  .evento__grid { grid-template-columns: 1fr; }
  .evento .frame { aspect-ratio: 16 / 11; }
}

/* --- fundadora teaser --------------------------------------------------- */
.teaser { text-align: center; }
.teaser blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.24;
  max-width: 44rem;
  margin: 0 auto 2.25rem;
}
.teaser cite {
  display: block;
  font-style: normal;
  font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-45);
  margin-bottom: 2.5rem;
}

/* --- form --------------------------------------------------------------- */
.pedido { background: var(--paper-warm); }
.pedido__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.pedido__aside p { color: var(--ink-70); }
.pedido__aside ul {
  list-style: none; padding: 0;
  margin-top: 2rem;
  display: grid; gap: .85rem;
  font-size: .95rem; color: var(--ink-70);
}
.pedido__aside li { display: flex; gap: .8rem; }
.pedido__aside li::before {
  content: "—"; color: var(--caramel); flex: none;
}

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: .5rem; }
.field > label {
  font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-45);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .9rem 1rem;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23838C92' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--ice-deep);
  box-shadow: 0 0 0 3px var(--ice);
}
.field .err {
  font-size: .78rem;
  color: var(--rose);
  min-height: 1.1em;
}
.field.has-err input,
.field.has-err select,
.field.has-err textarea { border-color: var(--rose); }

.form__foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem;
  margin-top: .5rem;
}
.form__note { font-size: .82rem; color: var(--ink-45); max-width: 22rem; }

/* success panel */
.sent {
  background: var(--paper);
  border: 1px solid var(--ice-deep);
  border-radius: 2px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.sent h3 { margin-bottom: .9rem; }
.sent p { color: var(--ink-70); font-size: .97rem; }
.sent__links {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.75rem;
}
[hidden] { display: none !important; }

@media (max-width: 900px) { .pedido__grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

/* --- inner page header -------------------------------------------------- */
.phead {
  padding: clamp(4.5rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4rem);
  background:
    radial-gradient(90% 120% at 100% 0%, var(--ice) 0%, rgba(223,243,248,0) 60%),
    var(--paper);
}
.phead .display { max-width: 24ch; }
.phead .lead { margin-top: 1.75rem; }

/* --- gallery (creaciones.html) ----------------------------------------
   Every tile is the same size and shape; rows are centred, so five, six or
   seven photos all look evenly distributed.
   ------------------------------------------------------------------------ */
.gal {
  --cols: 3;
  --gap: clamp(1rem, 2.2vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--gap) * 1.6) var(--gap);
}
.gal__item {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  margin: 0;
}
.gal__item button {
  display: block; width: 100%;
  padding: 0; border: 0; background: none;
  cursor: zoom-in; text-align: left;
}
.gal__item .frame { aspect-ratio: 4 / 3; }
.gal__cap { margin-top: 1rem; }
.gal__cap h3 { font-size: 1.3rem; margin-bottom: .35rem; }

@media (max-width: 900px) { .gal { --cols: 2; } }
@media (max-width: 560px) { .gal { --cols: 1; } }

/* sentence-case "Quiero cotizar…" link */
.qlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .95rem;
  color: var(--caramel);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 118, 58, .3);
  padding-bottom: .15rem;
  transition: color .35s var(--ease), border-color .35s var(--ease), gap .35s var(--ease);
}
.qlink:hover { color: var(--caramel-dk); border-color: var(--caramel-dk); gap: .7rem; }

/* lightbox */
.lb {
  border: 0; padding: 0;
  max-width: min(94vw, 1100px);
  max-height: 94vh;
  background: var(--paper);
  border-radius: 2px;
}
.lb::backdrop { background: rgba(20, 24, 28, .82); backdrop-filter: blur(6px); }
.lb img { max-height: 82vh; width: auto; margin-inline: auto; }
.lb__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem;
}
.lb__bar h3 { font-size: 1.15rem; }
.lb__close {
  background: none; border: 1px solid var(--line);
  border-radius: 999px;
  width: 38px; height: 38px;
  cursor: pointer; flex: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.lb__close:hover { border-color: var(--ink); background: var(--ice-soft); }

/* --- cta band ----------------------------------------------------------- */
.cta {
  background: var(--ice);
  text-align: center;
  padding-block: clamp(4rem, 10vh, 7rem);
}
.cta .display { max-width: 30ch; margin-inline: auto; }
.cta p { color: var(--ink-70); max-width: 34rem; margin: 1.5rem auto 2.5rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* --- fundadora page ----------------------------------------------------- */
.bio {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.bio__media { position: sticky; top: 7rem; }
.bio__media .frame { aspect-ratio: 4 / 5; }
.bio__caption {
  margin-top: 1rem;
  font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-45);
}

/* deliberate empty portrait slot — reads as intentional, not broken */
.portrait-todo {
  aspect-ratio: 4 / 5;
  background: var(--ice-soft);
  border: 1px solid var(--ice-deep);
  border-radius: 2px;
  display: grid; place-content: center;
  gap: 1rem; text-align: center;
  padding: 2rem;
}
.portrait-todo svg { margin-inline: auto; opacity: .5; }
.portrait-todo span {
  font-size: .64rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-45);
}

.bio__body { max-width: 38rem; }
.bio__body h2 { margin-bottom: 1.5rem; }
.bio__body p { color: var(--ink-70); }
.bio__body .lead { color: var(--ink); margin-bottom: 1.5rem; }

.todo {
  /* clone keeps the highlight tidy when a placeholder wraps across lines */
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: var(--ice);
  padding: .08em .35em;
  border-radius: 2px;
  color: var(--ink);
  font-style: normal;
}

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.26;
  margin-block: 2.75rem;
  padding-left: 1.75rem;
  border-left: 1px solid var(--caramel);
}

.bio__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.bio__facts dt {
  font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-45);
  margin-bottom: .5rem;
}
.bio__facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; }

@media (max-width: 900px) {
  .bio { grid-template-columns: 1fr; }
  .bio__media { position: static; }
}
