@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Inter:wght@300;400;500&family=IBM+Plex+Mono:wght@400&display=swap');

:root {
    /* Neutros cálidos — base editorial */
    --crema: #F5EFE6;
    --crema-claro: #FAF6EF;
    --crema-oscuro: #E8DFD0;
    --marfil: #FDFBF7;

    /* Acentos de marca refinados */
    --champagne: #B08D57;
    --champagne-oscuro: #8B6D3F;
    --champagne-claro: #C9AB7C;

    /* Terracota como acento minoritario */
    --terracota: #9B4A34;
    --terracota-suave: #B5583C;

    /* Verde bosque — apenas presente */
    --bosque: #3D5A45;

    /* Carbón cálido */
    --carbon: #2A241E;
    --carbon-suave: #574C42;
    --carbon-tenue: #8A7F73;

    /* Tipografía */
    --display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, system-ui, sans-serif;
    --mono: 'IBM Plex Mono', 'SF Mono', monospace;

    /* Espaciado editorial */
    --gutter: clamp(1.5rem, 4vw, 3rem);
    --seccion: clamp(6rem, 14vw, 12rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--carbon);
    background: var(--marfil);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Tipografía editorial */
h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--carbon);
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
}
h1 em {
    font-style: italic;
    font-weight: 300;
}

h2 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 300;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
}

p {
    margin-bottom: 1rem;
    max-width: 60ch;
    color: var(--carbon-suave);
    font-weight: 300;
}

a {
    color: var(--champagne-oscuro);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--carbon); }

/* Eyebrow con divisor — patrón editorial */
.eyebrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--champagne-oscuro);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.eyebrow::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--champagne);
}
.eyebrow.center {
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}
.eyebrow.center::after {
    margin: 0 auto;
}

/* Spec de taller */
.spec {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--carbon-tenue);
    font-weight: 400;
}

/* Contenedor */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    text-align: center;
}

/* Announcement bar */
.announcement {
    background: var(--champagne-oscuro);
    color: var(--marfil);
    text-align: center;
    padding: 0.75rem 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}
.announcement a {
    color: var(--marfil);
    border-bottom: 1px solid rgba(253, 251, 247, 0.4);
    padding-bottom: 1px;
}
.announcement a:hover { border-color: var(--marfil); color: var(--marfil); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 251, 247, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--crema-oscuro);
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem var(--gutter);
    max-width: 1440px;
    margin: 0 auto;
    gap: 2rem;
}

.logo {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--carbon);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    justify-self: start;
}

.nav-links {
    display: flex;
    gap: 2.75rem;
    list-style: none;
    justify-self: center;
}

.nav-links a {
    color: var(--carbon);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--champagne);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-utils {
    justify-self: end;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-utils a {
    color: var(--carbon);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s ease;
}

.btn-primary {
    background: var(--carbon);
    color: var(--marfil);
    border-color: var(--carbon);
}
.btn-primary:hover {
    background: var(--champagne-oscuro);
    border-color: var(--champagne-oscuro);
    color: var(--marfil);
}

.btn-outline {
    background: transparent;
    color: var(--carbon);
    border-color: var(--carbon);
}
.btn-outline:hover {
    background: var(--carbon);
    color: var(--marfil);
}

.btn-ghost {
    background: transparent;
    color: var(--carbon);
    border: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--carbon);
}
.btn-ghost:hover {
    color: var(--champagne-oscuro);
    border-color: var(--champagne-oscuro);
}

/* HERO editorial full-bleed */
.hero {
    position: relative;
    height: 88vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: var(--marfil);
    background: linear-gradient(180deg, #5c4a3a 0%, #3a2e24 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(20,15,10,0.15) 0%, rgba(20,15,10,0.55) 100%),
        url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=2400&q=85&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--gutter) 6rem;
    max-width: 900px;
}
.hero-content .eyebrow {
    color: rgba(253, 251, 247, 0.85);
    justify-content: center;
    display: inline-flex;
}
.hero-content .eyebrow::after {
    background: rgba(253, 251, 247, 0.6);
}
.hero-content h1 {
    color: var(--marfil);
    margin-bottom: 1.5rem;
    font-weight: 300;
}
.hero-content h1 em {
    color: var(--champagne-claro);
}
.hero-content p {
    color: rgba(253, 251, 247, 0.88);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

/* Secciones */
.section {
    padding: var(--seccion) 0;
}
.section-cream { background: var(--crema); }
.section-dark {
    background: var(--carbon);
    color: var(--marfil);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--marfil); }
.section-dark p { color: rgba(253, 251, 247, 0.75); }
.section-dark .eyebrow { color: var(--champagne-claro); }
.section-dark .eyebrow::after { background: var(--champagne); }

/* Bloque de manifesto centrado */
.manifesto {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}
.manifesto h2 {
    font-weight: 300;
    line-height: 1.15;
}
.manifesto p {
    margin: 2rem auto 0;
    font-size: 1.05rem;
    max-width: 540px;
}

/* Grid colecciones editorial */
.grid-collections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
}

.collection {
    display: block;
    color: var(--carbon);
    cursor: pointer;
}
.collection-img {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--crema);
    margin-bottom: 1.5rem;
    position: relative;
}
.collection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.collection:hover .collection-img img {
    transform: scale(1.04);
}
.collection-name {
    text-align: center;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--carbon);
}
.collection-desc {
    text-align: center;
    font-size: 0.85rem;
    color: var(--carbon-tenue);
    margin-top: 0.5rem;
    font-weight: 300;
}

/* CTAs duales — versión editorial */
.dual-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--crema-oscuro);
}
.dual-cta > div {
    padding: 5rem 3rem;
    text-align: center;
    border-right: 1px solid var(--crema-oscuro);
    transition: background 0.4s;
}
.dual-cta > div:last-child { border-right: none; }
.dual-cta > div:hover { background: var(--crema); }
.dual-cta h3 {
    margin-bottom: 1rem;
    font-weight: 300;
}
.dual-cta p {
    margin: 0 auto 2rem;
    max-width: 380px;
    font-size: 0.95rem;
}

/* Bloque imagen + texto (personalización) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}
.split-img {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
}
.split-content {
    padding: 4rem clamp(2rem, 5vw, 6rem);
}
.split-content .eyebrow { justify-content: flex-start; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* Etapas — proceso */
.etapas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.etapa {
    text-align: center;
}
.etapa .num {
    font-family: var(--display);
    font-style: italic;
    font-size: 3rem;
    font-weight: 300;
    color: var(--champagne);
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}
.etapa h4 {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.etapa p {
    font-size: 0.9rem;
    margin: 0 auto;
    max-width: 240px;
}

/* B2B feature */
.feature-b2b {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: var(--seccion) 0;
    color: var(--marfil);
    overflow: hidden;
}
.feature-b2b::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(20,15,10,0.75) 0%, rgba(20,15,10,0.4) 60%, rgba(20,15,10,0.1) 100%),
        url('https://images.unsplash.com/photo-1582268611958-ebfd161ef9cf?w=2400&q=85&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.feature-b2b .container {
    position: relative;
    z-index: 1;
}
.feature-b2b h2 {
    color: var(--marfil);
    max-width: 680px;
}
.feature-b2b p {
    color: rgba(253, 251, 247, 0.88);
    max-width: 480px;
    font-size: 1.05rem;
    margin-top: 1.5rem;
}
.feature-b2b .eyebrow { color: var(--champagne-claro); }
.feature-b2b .btn-primary {
    background: var(--marfil);
    color: var(--carbon);
    border-color: var(--marfil);
    margin-top: 2.5rem;
}
.feature-b2b .btn-primary:hover {
    background: var(--champagne-claro);
    border-color: var(--champagne-claro);
}

/* Personalización — swatches refinados */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    aspect-ratio: 8/4;
}
.swatch {
    background: var(--champagne);
    transition: transform 0.4s;
}
.swatch:hover { transform: scale(1.15); z-index: 2; position: relative; }
.swatch:nth-child(2n) { background: var(--carbon-suave); }
.swatch:nth-child(3n) { background: var(--bosque); }
.swatch:nth-child(4n) { background: var(--crema-oscuro); }
.swatch:nth-child(5n) { background: var(--terracota); }
.swatch:nth-child(7n) { background: var(--champagne-claro); }
.swatch:nth-child(11n) { background: var(--carbon); }

/* Blog / Guía */
.article-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
}
.article {
    display: block;
    color: var(--carbon);
}
.article-img {
    aspect-ratio: 3/2;
    background: var(--crema);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.article:hover .article-img img { transform: scale(1.04); }
.article .spec { display: block; margin-bottom: 0.75rem; }
.article h3 {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.article p {
    font-size: 0.92rem;
    color: var(--carbon-suave);
}

/* Footer */
.site-footer {
    background: var(--carbon);
    color: rgba(253, 251, 247, 0.65);
    padding: 6rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}
.footer-grid h4 {
    color: var(--marfil);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1.75rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.75rem; }
.footer-grid a {
    color: rgba(253, 251, 247, 0.65);
    font-size: 0.88rem;
    font-weight: 300;
}
.footer-grid a:hover { color: var(--champagne-claro); }

.footer-brand .logo {
    color: var(--marfil);
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.footer-brand p {
    font-size: 0.88rem;
    color: rgba(253, 251, 247, 0.55);
    max-width: 340px;
    font-weight: 300;
    line-height: 1.7;
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(253, 251, 247, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(253, 251, 247, 0.45);
    letter-spacing: 0.1em;
}
.footer-bottom .spec { color: rgba(253, 251, 247, 0.45); }

/* Divisor central editorial */
.divider {
    width: 1px;
    height: 60px;
    background: var(--champagne);
    margin: 0 auto 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .nav { grid-template-columns: 1fr auto; }
    .nav-links { display: none; }
    .grid-collections { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .split { grid-template-columns: 1fr; }
    .split-reverse { direction: ltr; }
    .etapas { grid-template-columns: 1fr 1fr; gap: 3rem 1.5rem; }
    .dual-cta { grid-template-columns: 1fr; }
    .dual-cta > div { border-right: none; border-bottom: 1px solid var(--crema-oscuro); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .article-list { grid-template-columns: 1fr; }
    .swatch-grid { grid-template-columns: repeat(6, 1fr); aspect-ratio: 6/4; }
}

@media (max-width: 600px) {
    .grid-collections { grid-template-columns: 1fr; }
}
