/* Sitio público */
.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.top nav { display: flex; gap: 1.2rem; align-items: center; }
.top nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top nav .btn { color: var(--accent-ink); }
@media (max-width: 520px) { .top nav a:not(.btn) { display: none; } }

/* Hero: la pieza se construye capa por capa */
.hero { display: grid; gap: 2rem; align-items: center; padding: 1.5rem 0 3.5rem; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.25fr .75fr; padding-top: 3rem; } }
.hero h1 { font-size: clamp(2.5rem, 8.5vw, 5rem); line-height: .98; letter-spacing: -.04em; font-weight: 850; margin-bottom: 1.1rem; text-wrap: balance; }
.hero p { font-size: 1.15rem; max-width: 34rem; color: var(--muted); margin-bottom: 1.6rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.vase { color: var(--ink); width: min(70%, 16rem); margin-inline: auto; }
@media (min-width: 820px) { .vase { width: 100%; max-width: 19rem; } }
.vase .layer { transform-box: fill-box; transform-origin: center; animation: lay .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lay { from { transform: scaleX(0); opacity: 0; } }

section.block { padding: 2.5rem 0; }
section.block h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1.2rem; }

/* Galería */
.filters { margin-bottom: 1.4rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.card:hover { border-color: var(--ink); }
.card .cover { aspect-ratio: 4 / 5; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
.card .cover img, .card .cover video { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: .75rem .9rem .9rem; }
.card h3 { font-size: 1rem; line-height: 1.25; margin-bottom: .25rem; letter-spacing: -.01em; }
.card .meta { display: flex; flex-wrap: wrap; gap: .1rem .7rem; color: var(--muted); font-size: .85rem; }
.empty { padding: 2rem 1.2rem; border: 2px dashed var(--line); border-radius: var(--r-card); color: var(--muted); }

/* Detalle de proyecto */
.detail { display: grid; }
.detail .media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #0d1519; }
.detail .media > * { flex: 0 0 100%; scroll-snap-align: center; max-height: 62vh; width: 100%; object-fit: contain; }
.detail .body { padding: 1.2rem 1.4rem 1.5rem; }
.detail h3 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.detail .meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); margin-bottom: .8rem; }
.detail .actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.close { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; background: rgba(255,255,255,.92); color: #15222b; }
dialog { position: relative; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: paso; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: paso; padding: 1.2rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-card); }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .8rem; border-radius: 50%; font-weight: 800; color: var(--accent-ink); background: var(--ink); }
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }

.mats { display: grid; gap: .8rem; }
@media (min-width: 760px) { .mats { grid-template-columns: repeat(3, 1fr); } }
.mat { padding: 1rem 1.1rem; border-left: 6px solid var(--accent); background: var(--surface); border-radius: 4px var(--r-card) var(--r-card) 4px; }
.mat:nth-child(2) { border-left-color: var(--hot); }
.mat:nth-child(3) { border-left-color: var(--ok); }
.mat h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.mat p { margin: 0; color: var(--muted); }

footer.foot { margin-top: 2rem; padding: 2rem 0 3rem; border-top: 1.5px solid var(--line); color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer.foot a { color: var(--ink); font-weight: 650; }

/* Formulario de cotización */
.page-head { padding: 1rem 0 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.035em; line-height: 1; margin-bottom: .6rem; }
.page-head p { color: var(--muted); max-width: 36rem; }
.form { display: grid; gap: 1.2rem; max-width: 40rem; padding-bottom: 3rem; }
.panel { padding: 1.3rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-card); }
.panel h2 { font-size: 1.15rem; margin-bottom: 1rem; letter-spacing: -.01em; }
.drop { display: grid; place-items: center; gap: .3rem; text-align: center; padding: 1.4rem 1rem; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { font-size: 1.05rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.files { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; }
.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .state { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.files .state.ok { color: var(--ok); font-weight: 700; }
.files .state.bad { color: var(--danger); font-weight: 700; }
.bar { height: 5px; margin-top: .3rem; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-box { padding: .8rem 1rem; border-radius: 10px; color: #fff; background: var(--danger); font-weight: 600; }
.done { max-width: 40rem; padding: 2rem 1.4rem; text-align: left; }
.done .num { display: inline-block; margin-bottom: .6rem; font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
