/* =========================================================
   DULCE AARÓN SUBLIMACIONES — hoja de estilos
   Paleta inspirada en la impresión por sublimación: papel,
   tinta y los tres colores base (magenta / cian / amarillo)
   que se combinan al prensar cada pieza.
   ========================================================= */

:root {
    --paper:  #97f0ea;
    --paper-2:#E9E1CD;
    --ink:    #20311c;
    --ink-2:  #2B3A52;
    --magenta:#E14F71;
    --cyan:   #2ea72a;
    --yellow: #F4B43C;
    --texto:  #201D16;
    --texto-suave: #55503F;

    --fuente-display: "Bricolage Grotesque", system-ui, sans-serif;
    --fuente-cuerpo:  "Public Sans", system-ui, sans-serif;
    --fuente-mono:    "JetBrains Mono", ui-monospace, monospace;

    --radio: 3px;
    --linea: 1.5px solid var(--ink);
    --ancho-maximo: 1180px;
}

/* ---------- reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--texto);
    font-family: var(--fuente-cuerpo);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--fuente-display); line-height: 1.08; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; max-width: 62ch; }
button { font: inherit; cursor: pointer; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
    padding: .8em 1.2em; z-index: 200;
}
.skip-link:focus { left: 1em; top: 1em; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.wrap {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- colores de acento por categoría ---------- */
.swatch--magenta { --acento: var(--magenta); }
.swatch--cyan    { --acento: var(--cyan); }
.swatch--yellow  { --acento: var(--yellow); }

/* ---------- botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5em; padding: .8em 1.4em; border-radius: var(--radio);
    font-weight: 600; font-size: .95rem; border: var(--linea);
    transition: transform .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primario { background: var(--ink); color: var(--paper); }
.btn--primario:hover { background: var(--ink-2); }
.btn--fantasma { background: transparent; color: var(--ink); }
.btn--fantasma:hover { background: var(--ink); color: var(--paper); }
.btn--whatsapp { background: var(--cyan); color: var(--ink); border-color: var(--ink); }
.btn--whatsapp:hover { background: var(--ink); color: var(--paper); }
.btn--pequeno { padding: .5em .9em; font-size: .82rem; border-radius: var(--radio); }
.btn--ancho { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--paper);
    border-bottom: var(--linea);
}
.header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: .9rem; gap: 1rem;
}
.marca { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.marca-icono { width: 28px; height: 28px; flex-shrink: 0; }
.marca-texto {
    font-family: var(--fuente-display); font-weight: 700; font-size: 1.05rem;
    line-height: 1.05; display: flex; flex-direction: column;
}
.marca-texto em {
    font-style: normal; font-weight: 500; font-size: .62rem;
    letter-spacing: .04em; color: var(--texto-suave);
}
.nav-principal { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { font-weight: 600; font-size: .93rem; }
.nav-links a:hover { color: var(--magenta); }
.nav-toggle { display: none; }
.header-cta { flex-shrink: 0; }

@media (max-width: 860px) {
    .nav-principal {
        position: fixed; inset: 64px 0 auto 0; background: var(--paper);
        border-bottom: var(--linea); padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-120%); transition: transform .25s ease;
    }
    .nav-principal.abierto { transform: translateY(0); }
    .nav-links { flex-direction: column; gap: 1rem; }
    .nav-toggle {
        display: flex; flex-direction: column; gap: 4px; background: none;
        border: none; padding: 8px; margin-left: auto;
    }
    .nav-toggle span { width: 22px; height: 2px; background: var(--ink); }
    .header-cta { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-eyebrow {
    font-family: var(--fuente-mono); font-size: .78rem; color: var(--magenta);
    margin: 0 0 .8em; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: .5em; }
.hero-lead { font-size: 1.08rem; color: var(--texto-suave); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 2.2rem; }
.hero-datos { display: flex; gap: 2rem; border-top: var(--linea); padding-top: 1.2rem; }
.hero-datos li { display: flex; flex-direction: column; }
.hero-datos strong { font-family: var(--fuente-display); font-size: 1.7rem; }
.hero-datos span { font-size: .82rem; color: var(--texto-suave); }

.hero-visual { text-align: center; }
.prensa-svg { width: 100%; max-width: 340px; margin-inline: auto; }
.prensa-caption {
    font-family: var(--fuente-mono); font-size: .74rem; color: var(--texto-suave);
    margin-top: .8rem;
}
.prensa-mesa { fill: var(--ink); }
.prensa-taza-cuerpo { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2.5; }
.prensa-taza-asa { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.prensa-plato { fill: var(--ink); }
.prensa-brazo-eje { fill: var(--ink-2); }
.prensa-color { opacity: 0; transform-origin: 145px 199px; }

/* Un solo momento orquestado al cargar la página: la prensa baja
   y el color aparece sobre la taza en blanco. */
.prensa-brazo { animation: bajarPrensa 3.2s ease-in-out 1 both; transform-origin: 145px 27px; }
.prensa-color { animation: aparecerColor 3.2s ease-in-out 1 both; }
@keyframes bajarPrensa {
    0%   { transform: translateY(0); }
    35%  { transform: translateY(126px); }
    55%  { transform: translateY(126px); }
    100% { transform: translateY(0); }
}
@keyframes aparecerColor {
    0%, 40% { opacity: 0; }
    60%     { opacity: .95; }
    100%    { opacity: 1; }
}

/* =========================================================
   PROCESO
   ========================================================= */
.proceso { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: var(--linea); }
.titulo-seccion { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 1.4rem; }
.proceso-lista {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
    counter-reset: paso; margin: 0; padding: 0;
}
.proceso-lista li { border-top: 3px solid var(--ink); padding-top: .9rem; }
.proceso-num {
    font-family: var(--fuente-mono); font-size: .85rem; color: var(--magenta);
    display: block; margin-bottom: .6rem;
}
.proceso-lista h3 { font-size: 1.05rem; margin-bottom: .4em; }
.proceso-lista p { font-size: .93rem; color: var(--texto-suave); margin: 0; }

@media (max-width: 860px) {
    .proceso-lista { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .proceso-lista { grid-template-columns: 1fr; }
}

/* =========================================================
   SECCIONES GENERALES / CATÁLOGO
   ========================================================= */
.catalogo, .otros-productos, .nosotros, .contacto { padding-block: clamp(3rem, 6vw, 5.5rem); border-top: var(--linea); }
.seccion-encabezado { max-width: 640px; margin-bottom: 2rem; }
.seccion-lead { color: var(--texto-suave); }

.tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.tab {
    display: inline-flex; align-items: center; gap: .55em;
    padding: .55em 1.1em; border: var(--linea); border-radius: 999px;
    background: transparent; color: var(--texto); font-size: .88rem; font-weight: 600;
}
.tab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acento); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab[aria-selected="true"] .tab-dot { background: var(--acento); box-shadow: 0 0 0 2px var(--paper); }

.grid-productos {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.grid-productos--compacta { margin-top: 1.4rem; }

.pieza-card {
    position: relative; border: var(--linea); border-radius: var(--radio);
    padding: 1.4rem 1.2rem 1.2rem; background: var(--paper);
    transition: border-color .15s ease;
}
.pieza-card:hover { border-color: var(--magenta); }
/* marcas de registro: guiño a las marcas de corte de impresión */
.pieza-marca-registro { position: absolute; top: 8px; left: 8px; width: 10px; height: 10px;
    border-top: 1.5px solid var(--texto-suave); border-left: 1.5px solid var(--texto-suave); opacity: .5; }
.pieza-marca-registro::after {
    content: ""; position: absolute; top: -8px; right: -18px; width: 10px; height: 10px;
    border-top: 1.5px solid var(--texto-suave); border-right: 1.5px solid var(--texto-suave);
}
.pieza-imagen { width: 100%; max-width: 130px; margin: 0 auto 1rem; }
.pieza-svg { width: 100%; }
.pieza-card h3 { font-size: 1rem; font-weight: 600; font-family: var(--fuente-cuerpo); margin-bottom: .8em; min-height: 2.6em; }
.pieza-pie { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.pieza-precio { font-family: var(--fuente-mono); font-size: .95rem; }

.panel-categoria[hidden] { display: none; }
.catalogo-nota { margin-top: 2rem; font-size: .9rem; color: var(--texto-suave); }

@media (max-width: 860px) {
    .grid-productos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .grid-productos { grid-template-columns: 1fr; }
}

/* ---------- otros productos ---------- */
.linea-producto { margin-top: 2.6rem; }
.linea-producto:first-of-type { margin-top: 0; }
.linea-encabezado {
    border-left: 4px solid var(--acento); padding-left: 1rem; margin-bottom: .4rem;
}
.linea-encabezado h3 { font-size: 1.3rem; margin-bottom: .2em; }
.linea-encabezado p { color: var(--texto-suave); font-size: .95rem; margin: 0; }

/* =========================================================
   NOSOTROS
   ========================================================= */
.nosotros-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: start; }
.nosotros-cifras { display: grid; gap: 1.2rem; border-left: var(--linea); padding-left: 1.6rem; }
.nosotros-cifras div { display: flex; flex-direction: column; }
.nosotros-cifras strong { font-family: var(--fuente-display); font-size: 2.1rem; }
.nosotros-cifras span { font-size: .85rem; color: var(--texto-suave); }

@media (max-width: 860px) {
    .nosotros-grid { grid-template-columns: 1fr; }
    .nosotros-cifras { border-left: none; padding-left: 0; border-top: var(--linea); padding-top: 1.2rem; grid-auto-flow: column; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.redes-lista { display: grid; gap: .8rem; margin-top: 1.6rem; }
.red-item {
    display: flex; align-items: center; gap: .9rem; border: var(--linea);
    border-radius: var(--radio); padding: .9rem 1.1rem; transition: transform .15s ease;
}
.red-item:hover { transform: translateX(4px); border-color: var(--magenta); }
.red-icono { width: 22px; height: 22px; flex-shrink: 0; }
.red-icono svg { width: 100%; height: 100%; }
.red-texto { display: flex; flex-direction: column; }
.red-texto small { color: var(--texto-suave); font-size: .82rem; }

.contacto-formulario form {
    border: var(--linea); border-radius: var(--radio); padding: 1.6rem;
    display: grid; gap: 1rem; background: var(--paper-2);
}
.campo { display: grid; gap: .35rem; }
.campo label { font-size: .85rem; font-weight: 600; }
.campo input, .campo select, .campo textarea {
    font: inherit; padding: .7em .8em; border: var(--linea); border-radius: var(--radio);
    background: var(--paper); color: var(--texto); width: 100%;
}
.campo textarea { resize: vertical; }
.form-estado { min-height: 1.2em; font-size: .9rem; margin: 0; }
.form-estado[data-tipo="ok"] { color: #1b6e4f; }
.form-estado[data-tipo="error"] { color: #b3273e; }

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

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 3rem 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 2.4rem; margin-bottom: 2rem; }
.marca-texto--footer { color: var(--paper); }
.marca-texto--footer em { color: #B8BECB; }
.footer-marca p { color: #B8BECB; font-size: .92rem; margin-top: .8rem; }
.footer-col h3 { font-family: var(--fuente-mono); font-size: .78rem; color: var(--yellow); margin-bottom: .9rem; text-transform: none; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { font-size: .92rem; color: #D8DBE3; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid #3A4459; padding-top: 1.2rem; font-size: .8rem; color: #9198A8; }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
