@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&display=swap');

:root {
    --paper: #faf6ed;
    --cream: #f2e9d8;
    --white: #fffdf8;
    --green: #224638;
    --deep: #193a30;
    --ink: #253d33;
    --muted: #526057;
    --line: #ded2bf;
    --copper: #8c542e;
    --serif: "Fraunces", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 var(--sans)
}

[hidden] {
    display: none !important
}

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

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

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

:focus-visible {
    outline: 3px solid #b17040;
    outline-offset: 4px
}

h1,
h2,
h3,
p,
figure {
    margin: 0
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.045em
}

em {
    font-weight: 400
}

h1 {
    font-size: clamp(3.8rem, 6.3vw, 6.5rem)
}

h2 {
    font-size: clamp(2.65rem, 4.5vw, 4.45rem)
}

h3 {
    font-size: clamp(1.55rem, 2.4vw, 2.35rem)
}

.shell {
    width: min(1240px, calc(100% - 112px));
    margin-inline: auto
}

.skip {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10;
    transform: translateY(-180%);
    background: var(--white);
    padding: 8px 14px
}

.skip:focus {
    transform: none
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap
}

.header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(250, 246, 237, .97);
    border-bottom: 1px solid var(--line)
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font: 500 1.45rem/1.05 var(--serif);
    letter-spacing: -.05em
}

.brand i {
    font-weight: 400
}

.brand small {
    display: block;
    margin-top: 5px;
    font: 700 .57rem/1 var(--sans);
    letter-spacing: .19em
}

.nav nav {
    display: flex;
    gap: clamp(15px, 3vw, 41px);
    align-items: center;
    font-size: .88rem;
    font-weight: 600
}

.nav nav a:hover,
.footer a:hover {
    color: var(--copper)
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border: 1px solid var(--green);
    border-radius: 7px;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    font-size: .88rem;
    transition: background .2s, color .2s, transform .2s;
    text-align: center
}

.button:hover {
    background: #315f4c;
    transform: translateY(-2px)
}

.button.outline {
    background: transparent;
    color: var(--green);
    border-color: #879287
}

.button.outline:hover {
    background: #eae5d5
}

.nav-cta {
    min-height: 41px
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase
}

.eyebrow span {
    color: var(--copper)
}

.index-mark {
    font-size: 1.25rem;
    line-height: 1
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: clamp(20px, 3vw, 50px);
    padding-block: 52px 64px
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 24px 0
}

.hero h1 {
    margin-block: 22px
}

.hero h1 em,
.quote h2 em {
    color: #45634d
}

.hero-copy>p:not(.eyebrow) {
    max-width: 390px;
    color: var(--muted);
    font-size: 1.06rem
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px
}

.hero-visual {
    position: relative;
    min-width: 0;
    margin-right: 9px
}

.hero-visual figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #e2ceb0;
    box-shadow: 0 17px 34px #4e3e2722
}

.hero-visual figure::after {
    content: "";
    position: absolute;
    inset: 11px;
    border: 1px dashed #fff3d8b5;
    border-radius: 8px;
    pointer-events: none
}

.hero-visual img,
.ink-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thread {
    position: absolute;
    z-index: 1;
    width: clamp(110px, 16vw, 225px);
    top: -24px;
    right: -25px;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px #3f251959)
}

.thread-line {
    stroke: #a46f47;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 4 6;
    animation: sew 4s linear infinite
}

.needle {
    animation: needle 2.8s ease-in-out infinite;
    transform-origin: 183px 24px
}

@keyframes sew {
    to {
        stroke-dashoffset: -40
    }
}

@keyframes needle {
    50% {
        transform: translate(3px, -4px) rotate(3deg)
    }
}

.tag {
    position: absolute;
    z-index: 1;
    left: -15px;
    bottom: 26px;
    transform: rotate(-6deg);
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fcf0d6;
    padding: 9px 12px;
    border: 1px dashed #a9845d;
    box-shadow: 0 4px 12px #3f25193c;
    border-radius: 4px;
    color: var(--green);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .11em
}

.tag span {
    color: var(--copper)
}

.ribbon {
    background: var(--green);
    color: #fff4df;
    padding: 11px 0;
    border-block: 1px solid #365b4b
}

.ribbon-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 4vw, 55px);
    text-align: center;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600
}

.ribbon b {
    color: #ebc49c
}

.section {
    padding-block: 76px
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 24px
}

.section h2,
.location h2 {
    margin-top: 12px
}

.section-head>p {
    max-width: 340px;
    color: var(--muted)
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px
}

.filters button {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 13px;
    background: transparent;
    color: var(--green);
    font-size: .85rem;
    font-weight: 700
}

.filters button:hover {
    background: #eee5d3
}

.filters button[aria-pressed="true"] {
    background: var(--green);
    border-color: var(--green);
    color: var(--white)
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--white);
    display: flex;
    flex-direction: column
}

.card:not([hidden]) {
    animation: appear .35s ease-out both
}

@keyframes appear {
    from {
        opacity: .45;
        transform: translateY(7px)
    }
}

.card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #e6d9c4;
    overflow: hidden
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image img[src="assets/taller.jpg"] {
    object-position: 55% center;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 20px
}

.card-body p {
    font-size: .9rem;
    color: var(--muted)
}

.card-body a {
    margin-top: auto;
    padding-top: 5px;
    color: var(--green);
    font-weight: 700;
    font-size: .85rem
}

.card-body a:hover {
    text-decoration: underline;
    text-underline-offset: 4px
}

.swatches {
    margin-top: 32px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px dashed #b8a88f;
    border-radius: 9px;
    background: #f4ebdb
}

.swatches h3 {
    margin-top: 6px
}

.swatches ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 555px;
    list-style: none;
    margin: 0;
    padding: 0
}

.swatches li {
    border: 1px solid #d6c7af;
    background: #fbf6ea;
    border-radius: 4px;
    padding: 4px 9px;
    font-size: .76rem
}

.ink {
    background: var(--deep);
    color: #fff5e1
}

.ink-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(28px, 6vw, 88px)
}

.ink .eyebrow span {
    color: #e8bd93
}

.ink h2 em {
    color: #e4d3ad
}

.ink h2+p {
    margin: 16px 0;
    color: #e4ddcc;
    max-width: 475px
}

.ink-photo {
    min-width: 0;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #b7ad8f
}

.ink-photo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed #fff3d8a0;
    border-radius: 6px;
    pointer-events: none
}

.techniques {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px dashed #f4e7c459
}

.techniques a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed #f4e7c459
}

.techniques a:hover {
    color: #f2cca1
}

.techniques strong {
    font-size: 1.02rem
}

.techniques small {
    display: block;
    color: #e4ddcc
}

.quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
    gap: clamp(28px, 6vw, 100px);
    align-items: start
}

.quote h2+p {
    max-width: 360px;
    color: var(--muted);
    margin: 16px 0 24px
}

.quote-note {
    display: flex;
    gap: 12px;
    max-width: 355px;
    background: var(--cream);
    border: 1px dashed #bead92;
    border-radius: 7px;
    padding: 14px 16px;
    font-size: .87rem
}

.quote-note>span {
    color: var(--copper)
}

form {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: clamp(17px, 3vw, 32px);
    box-shadow: 0 12px 28px #48361e0a
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

label {
    display: block;
    min-width: 0;
    font-size: .83rem;
    font-weight: 700;
    margin-bottom: 14px
}

.form-grid label {
    margin: 0
}

.form-grid {
    margin-bottom: 14px
}

input,
select,
textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #c7c2b3;
    border-radius: 5px;
    min-height: 43px;
    background: var(--white);
    color: var(--ink);
    font-size: 1rem
}

textarea {
    resize: vertical
}

.optional,
.form-help {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 400
}

.form-help {
    margin-top: 8px
}

.message-preview {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--line)
}

.message-preview p {
    font-size: .85rem;
    margin-bottom: 8px
}

.location {
    background: var(--cream);
    border-top: 1px solid var(--line)
}

.location-inner {
    padding-block: 42px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: center
}

.location p:not(.eyebrow) {
    max-width: 380px;
    margin-top: 11px;
    color: var(--muted)
}

.location a {
    margin-top: 14px
}

.map-art {
    position: relative;
    overflow: hidden;
    background: #dedfc8;
    border: 1px solid #d1c5ab;
    border-radius: 9px
}

.map-art svg {
    width: 100%;
    height: clamp(140px, 17vw, 205px)
}

.map-art span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--white);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: .72rem;
    font-weight: 700
}

.footer {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-block: 18px
}

.footer .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.footer a:last-child {
    font-size: .84rem;
    font-weight: 700
}

@media(max-width:1000px) {
    .shell {
        width: calc(100% - 72px)
    }

    .hero {
        padding-block: 44px 55px
    }

    .section {
        padding-block: 58px
    }
}

@media(max-width:760px) {
    html {
        scroll-padding-top: 117px
    }

    .shell {
        width: calc(100% - 40px)
    }

    .nav {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding-block: 10px
    }

    .nav nav {
        grid-column: 1/-1;
        grid-row: 2;
        justify-content: space-between;
        gap: 8px;
        font-size: .79rem
    }

    .nav-cta {
        grid-column: 2;
        grid-row: 1
    }

    .hero,
    .quote,
    .ink-layout,
    .location-inner {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .hero {
        padding-block: 30px 36px
    }

    .hero-copy {
        padding: 0
    }

    .hero h1 {
        margin-block: 13px
    }

    .hero-visual {
        margin: 4px 8px 0
    }

    .thread {
        right: -13px;
        top: -16px
    }

    .ribbon-inner {
        gap: 8px;
        font-size: .58rem;
        letter-spacing: .06em
    }

    .section-head,
    .swatches {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .card-body {
        padding: 12px
    }

    .ink-photo {
        grid-row: 2
    }
}

@media(max-width:400px) {
    h1 {
        font-size: 3.45rem
    }

    .shell {
        width: calc(100% - 32px)
    }

    .actions {
        gap: 8px
    }

    .actions .button {
        padding-inline: 10px;
        font-size: .78rem
    }

    .cards {
        grid-template-columns: 1fr
    }

    .form-grid {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

.hero-visual figure,
.ink-photo {
    background: #eee4d4;
}


.hero-carousel {
    position: relative;
}

.hero-carousel figure {
    margin: 0;
    aspect-ratio: 1 / 1;
}

.hero-carousel figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* La foto horizontal necesita un encuadre ligeramente hacia la derecha. */
.hero-carousel img[src="assets/taller.jpg"] {
    object-position: 55% center;
}

.hero-carousel-controls {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
}

.hero-carousel-controls button {
    position: absolute;
    padding: 0;
    border: 1px solid #f7ead0;
    background: #224638;
    color: #fffaf0;
    cursor: pointer;
    pointer-events: auto;
}

.hero-carousel-controls [data-step] {
    top: 50%;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.hero-carousel-controls [data-step="-1"] {
    left: 12px;
}

.hero-carousel-controls [data-step="1"] {
    right: 12px;
}

.hero-carousel-controls [data-step]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.hero-carousel-controls [data-step="-1"]::before {
    transform: translateX(2px) rotate(-135deg);
}

.hero-carousel-controls [data-step="1"]::before {
    transform: translateX(-2px) rotate(45deg);
}

.hero-carousel-controls [data-autoplay] {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 22px;
    font-size: .8rem;
}

.hero-carousel-controls button:hover {
    background: #315d49;
}

.hero-carousel-controls button:focus-visible {
    outline: 3px solid #fffaf0;
    outline-offset: 3px;
}