/* Rien ne se perd · formato «Enveloppe de patron» (Fabri lo eligió el 13/11 entre 5 propuestas).
   Cada sección es un objeto de un sobre de molde de costura: el sobre, el galón, retazos con alfiler, la hoja de explicaciones,
   la planche de modelos, las piezas del molde, la plancha de corte, las tarjetas de mercería, el bon de commande y la etiqueta cosida.
   Paleta de las tapas: azul #2B3A67, papel de sobre #F3E6CC, frambuesa #C23F5C. Puntas siempre redondeadas (LD-33). */
:root {
  --azul: #2B3A67; --azul2: #1F2B4F; --sobre: #F3E6CC; --solapa: #E7D3AE; --borde: #B49563;
  --lino: #F7F1E6; --tinta: #2A2420; --gris: #5C5246; --fram: #B5344F; --fram2: #8F2840; --tapete: #3E6B57;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body { font-family: 'Nunito Sans', system-ui, sans-serif; background: var(--lino); color: var(--tinta); line-height: 1.5; -webkit-font-smoothing: antialiased }
img { display: block; max-width: 100%; height: auto }
.envol { max-width: 1080px; margin: 0 auto; padding: 0 16px }
h1, h2, .marque, .cachet b { font-family: 'Abril Fatface', Georgia, serif; font-weight: 400 }
h2 { font-size: clamp(27px, 6.4vw, 40px); line-height: 1.08; color: var(--azul); margin-top: 6px }
h3 { font-size: 17px; font-weight: 900; line-height: 1.25 }
section { padding: 52px 0 }
.etiq { display: inline-block; background: var(--azul); color: var(--sobre); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px }
.etiq-clair { background: var(--sobre); color: var(--azul) }
.cta { display: block; background: var(--fram); color: #fff; text-align: center; font-weight: 900; font-size: 17px; padding: 16px 18px; border-radius: 14px; text-decoration: none; box-shadow: 0 6px 16px rgba(143,40,64,.35); transition: transform .12s ease, box-shadow .12s ease }
.cta:hover { transform: translateY(1px); box-shadow: 0 3px 10px rgba(143,40,64,.35) }
.cta:focus-visible, summary:focus-visible, .hojas img:focus-visible { outline: 3px solid #E9B949; outline-offset: 3px }
.micro { text-align: center; font-size: 12.5px; color: var(--gris); margin-top: 12px }

/* 1 · el sobre */
.inicio { background: var(--azul); padding: 14px 0 34px }
.inicio .envol { padding: 0 12px }
.enveloppe { background: var(--sobre); border-radius: 16px; padding-bottom: 18px; box-shadow: 0 14px 30px rgba(0,0,0,.35); position: relative }
.rabat { height: 38px; background: var(--solapa); border-radius: 16px 16px 0 0; border-bottom: 2px dashed var(--borde); position: relative }
.rabat::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #E2667E, #A9304A); transform: translateX(-50%); box-shadow: 0 2px 4px rgba(0,0,0,.3) }
.bande { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 14px 0; background: var(--fram); color: #FFF3E0; border-radius: 9px; padding: 6px 11px }
.marque { font-size: 20px }
.numero { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap }
.fenetre { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 10px 14px 0; padding: 5px; background: #fff; border-radius: 11px; box-shadow: inset 0 0 0 1px #D8C29A }
.fenetre img { width: 100%; height: 92px; object-fit: cover; border-radius: 7px }
.enveloppe h1 { font-size: clamp(28px, 7.6vw, 42px); line-height: 1.06; margin: 12px 14px 0; color: var(--azul) }
.enveloppe h1 em { font-style: normal; color: var(--fram) }
.enveloppe .sub { font-size: 15px; line-height: 1.42; margin: 8px 14px 0; color: #4A4036 }
.ligne-prix { display: flex; gap: 10px; align-items: center; margin: 12px 14px 0 }
.tailles { flex: 1; border: 1.5px solid var(--azul); border-radius: 9px; overflow: hidden; font-size: 11.5px; background: #FBF4E6 }
.tailles div { display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px; border-top: 1px solid rgba(43,58,103,.22) }
.tailles .t-tete { border-top: 0; background: var(--azul); color: var(--sobre); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 11px }
.tailles b { font-weight: 900; color: var(--azul) }
.cachet { flex: 0 0 auto; width: 108px; aspect-ratio: 1; border-radius: 50%; background: #FFF8EA; border: 2px dashed var(--fram); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-8deg); box-shadow: 0 0 0 4px #FFF8EA, 0 0 0 5.5px var(--fram) }
.cachet s { font-size: 12px; color: #625848 }
.cachet b { font-size: 31px; line-height: 1; color: var(--fram) }
.cachet small { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); margin-top: 2px }
.cachet.grand { width: 132px; margin: 6px auto 0 }
.cachet.grand b { font-size: 38px }
.enveloppe .cta { margin: 16px 14px 0 }
.mockup-inicio { display: none }

/* 2 · el galón */
.galon { padding: 0; background: var(--azul) }
.galon p { margin: 0 auto; background: #E9B949; color: var(--azul2); border-radius: 10px; padding: 11px 12px; text-align: center; font-size: 14px; font-weight: 800; outline: 1.5px dashed rgba(31,43,79,.55); outline-offset: -6px; transform: translateY(18px); box-shadow: 0 6px 14px rgba(0,0,0,.2); line-height: 1.6 }
.galon b { font-family: 'Abril Fatface', serif; font-weight: 400; font-size: 19px }
.galon i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--azul2); opacity: .55; margin: 0 6px; vertical-align: middle }

/* 3 · retazos con alfiler */
.douleurs { padding-top: 70px }
.chutes { display: grid; gap: 14px; margin-top: 20px }
.chute { position: relative; padding: 18px 18px 16px; border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 1.4; box-shadow: 0 6px 14px rgba(42,36,32,.12) }
.chute p { position: relative }
.c1 { background: #FBE3E7 radial-gradient(rgba(194,63,92,.16) 2px, transparent 2.5px) 0 0/14px 14px; transform: rotate(-1deg) }
.c2 { background: #E4EAF6 repeating-linear-gradient(0deg, rgba(43,58,103,.08) 0 7px, transparent 7px 14px), repeating-linear-gradient(90deg, rgba(43,58,103,.08) 0 7px, transparent 7px 14px); transform: rotate(.8deg) }
.c3 { background: #F6EBCF repeating-linear-gradient(45deg, rgba(180,140,60,.12) 0 3px, transparent 3px 9px); transform: rotate(-.6deg) }
.c4 { background: #E6EFE8 radial-gradient(rgba(62,107,87,.16) 2px, transparent 2.5px) 0 0/12px 12px; transform: rotate(1deg) }
.epingle { position: absolute; top: -9px; right: 22px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F28CA0, var(--fram)); box-shadow: 0 2px 3px rgba(0,0,0,.25) }
.epingle::after { content: ""; position: absolute; left: 7px; top: 12px; width: 2px; height: 30px; background: linear-gradient(#B9B9B9, #8C8C8C); transform: rotate(28deg); transform-origin: top; border-radius: 1px }
.chute-fin { margin-top: 24px; font-size: 18px; line-height: 1.45; color: var(--azul); font-weight: 600 }
.chute-fin b { color: var(--fram) }

/* 4 · hoja de explicaciones */
.methode { padding-top: 10px }
.explications { background: #FFFDF8; border-radius: 14px; padding: 18px 18px 22px; border: 1.5px solid #D8C29A; box-shadow: 0 8px 20px rgba(42,36,32,.08) }
.ex-tete { display: flex; justify-content: space-between; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--fram); border-bottom: 2px dashed #D8C29A; padding-bottom: 8px; margin-bottom: 6px }
.gestes { list-style: none; margin-top: 16px; display: grid; gap: 18px }
.gestes li { display: flex; gap: 14px; align-items: flex-start }
.gestes li > b { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--azul); color: var(--sobre); font-family: 'Abril Fatface', serif; font-weight: 400; font-size: 21px; display: grid; place-items: center }
.gestes p { color: var(--gris); margin-top: 2px }
.regle { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; border-radius: 8px; overflow: hidden; background: #F2C230; background-image: repeating-linear-gradient(90deg, rgba(58,52,36,.7) 0 1px, transparent 1px 8px); background-size: 100% 7px; background-repeat: no-repeat }
.regle span { padding: 11px 4px 6px; text-align: center; font-size: 12px; font-weight: 900; color: var(--azul2); border-left: 1.5px solid rgba(31,43,79,.35); line-height: 1.15 }
.regle span:first-child { border-left: 0 }
.regle small { display: block; font-size: 10.5px; font-weight: 700 }

/* 5 · planche de modelos */
.planche { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px }
.planche figure { background: #fff; border-radius: 10px; padding: 5px 5px 7px; box-shadow: 0 3px 8px rgba(42,36,32,.1) }
.planche img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px }
.planche figcaption { font-size: 11.5px; font-weight: 800; line-height: 1.2; margin-top: 5px; color: var(--azul) }
.planche figcaption i { display: block; font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fram); font-weight: 900 }
.planche-fin { margin-top: 16px; color: var(--gris); font-weight: 600 }

/* 6 · piezas del molde */
.contenu { background: #EFE3CB; background-image: radial-gradient(rgba(120,90,40,.1) 1px, transparent 1px); background-size: 10px 10px }
.pieces { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px }
.piece { position: relative; background: #F9F1E1; border: 2px dashed var(--azul); border-radius: 14px; padding: 14px 12px 12px; text-align: center }
.piece:first-child { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; text-align: left }
.piece:first-child img { width: 42%; flex: 0 0 auto }
.piece img { width: 74%; margin: 0 auto; border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.22) }
.piece figcaption { font-size: 13px; color: var(--gris); margin-top: 10px; line-height: 1.35 }
.piece figcaption b { display: block; color: var(--azul); font-size: 14.5px; font-weight: 900 }
.lettre { position: absolute; top: -12px; left: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--fram); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 14px }
.piece::after { content: ""; position: absolute; right: -2px; top: 50%; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 9px solid var(--azul); transform: translateY(-50%) }

/* 7 · plancha de corte */
.dedans { background: var(--tapete); color: #F2EFE6 }
.dedans h2 { color: #fff }
.dedans .lead { margin-top: 10px; color: #DCE7DF; max-width: 640px }
.tapis { margin-top: 20px; border-radius: 16px; padding: 14px; background-color: #355E4C; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 24px 24px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18) }
.hojas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.hojas img { width: 100%; border-radius: 6px; box-shadow: 0 8px 18px rgba(0,0,0,.35); cursor: zoom-in; background: #fff }
.hojas img:nth-child(odd) { transform: rotate(-1.2deg) } .hojas img:nth-child(even) { transform: rotate(1deg) }

/* 8 · tarjetas de mercería */
.cartes { display: grid; gap: 14px; margin-top: 20px }
.carte { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 16px 14px 14px; box-shadow: 0 4px 12px rgba(42,36,32,.08); outline: 1.5px dashed rgba(43,58,103,.3); outline-offset: -6px }
.carte img { width: 92px; flex: 0 0 auto; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.2) }
.carte p { font-size: 14px; color: var(--gris); margin-top: 4px; line-height: 1.4 }
.vaut { display: inline-block; margin-top: 8px; background: #E6EFE8; color: #2E5E48; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px }
.vaut s { color: #4A574F; font-weight: 700; margin-right: 4px }

/* 9 · bon de commande */
.offre { background: var(--azul) }
.bon { max-width: 560px; margin: 0 auto; background: #FFFDF6; border-radius: 16px; padding: 20px 18px 22px; box-shadow: 0 16px 34px rgba(0,0,0,.35); position: relative; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(43,58,103,.07) 31px 32px) }
.bon::before { content: ""; position: absolute; left: 14px; right: 14px; top: -9px; height: 18px; background: radial-gradient(circle at 9px 9px, var(--azul) 5px, transparent 5.5px) 0 0/22px 18px repeat-x }
.bon-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--azul); padding-bottom: 8px }
.bon-tete b { font-family: 'Abril Fatface', serif; font-weight: 400; font-size: 24px; color: var(--azul) }
.bon-tete span { font-size: 10.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--fram); text-align: right }
.bon ul { list-style: none; margin-top: 8px }
.bon li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #CDBB98; font-size: 14.5px }
.bon li b { white-space: nowrap }
.bon-total { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 800; color: var(--gris) }
.bon-bas { display: flex; align-items: center; gap: 10px; margin-top: 14px }
.bon-bas img { width: 58%; border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,.2) }
.bon-bas .cachet.grand { margin: 0 auto }
.bon-eco { text-align: center; margin-top: 14px; font-weight: 900; color: #2E5E48 }
.bon .cta { margin-top: 12px }

/* 10 · etiqueta cosida */
.etiquette-cousue { display: flex; gap: 16px; align-items: center; background: var(--fram); color: #FFF4E8; border-radius: 14px; padding: 22px 20px; outline: 2px dashed rgba(255,244,232,.6); outline-offset: -8px; box-shadow: 0 8px 18px rgba(143,40,64,.25) }
.etiquette-cousue h2 { color: #fff } .etiquette-cousue p { color: #FCE3E8 !important }
.ec-sept { background: #FFF4E8 !important; color: var(--fram) !important }
.ec-sept { flex: 0 0 76px; height: 76px; border-radius: 50%; background: var(--azul); color: var(--sobre); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1 }
.ec-sept b { font-family: 'Abril Fatface', serif; font-weight: 400; font-size: 32px }
.ec-sept small { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em }
.etiquette-cousue h2 { font-size: 24px }
.etiquette-cousue p { margin-top: 6px; color: var(--gris) }
.garantie { padding-top: 40px; padding-bottom: 10px }

/* 11 · la notice */
.notice { margin-top: 18px; background: #FFFDF8; border-radius: 14px; border: 1.5px solid #D8C29A; overflow: hidden }
.notice details { border-top: 1px dashed #D8C29A }
.notice details:first-child { border-top: 0 }
.notice summary { list-style: none; cursor: pointer; padding: 15px 44px 15px 16px; font-weight: 800; position: relative; color: var(--azul) }
.notice summary::-webkit-details-marker { display: none }
.notice summary::after { content: ""; background-image: linear-gradient(var(--azul),var(--azul)), linear-gradient(var(--azul),var(--azul)); background-size: 10px 2px, 2px 10px; background-position: center; background-repeat: no-repeat; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background-color: var(--sobre); display: grid; place-items: center; font-weight: 900 }
.notice details[open] summary::after { background-size: 10px 2px, 0 0 }
.notice details p { padding: 0 16px 16px; color: var(--gris) }

.fin { text-align: center; padding-bottom: 60px }
.fin .sub { margin-top: 8px; color: var(--gris); font-size: 16px }
.fin .cachet.grand { margin: 22px auto 0 }
.fin .cta { max-width: 460px; margin: 24px auto 0 }

footer { background: var(--azul2); color: #C9D0E4; font-size: 13px; padding: 26px 0 90px }
footer p + p { margin-top: 6px }
footer a { color: #fff }

.barra { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,241,230,.96); box-shadow: 0 -4px 14px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .25s ease; z-index: 20 }
.barra.on { transform: none }
.barra .cta { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px }
.barra .cta b { font-family: 'Abril Fatface', serif; font-weight: 400; font-size: 22px }
.zoom-caja { position: fixed; inset: 0; background: rgba(16,22,38,.95); z-index: 50; display: grid; place-items: center; touch-action: none; overflow: hidden }
.zoom-caja[hidden] { display: none }
.zoom-caja img { max-width: 94vw; max-height: 88vh; transform-origin: center; user-select: none; -webkit-user-drag: none }
.zoom-cerrar { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--azul); font-size: 26px; cursor: pointer; z-index: 2 }
.zoom-ayuda { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #C9D0E4; font-size: 13px }

@media (max-width: 370px) {
  .enveloppe h1 { font-size: 26px } .cachet { width: 96px } .cachet b { font-size: 27px } .tailles { font-size: 11px } .fenetre img { height: 80px }
}
@media (min-width: 600px) {
  .chutes { grid-template-columns: 1fr 1fr }
  .planche { grid-template-columns: repeat(4, 1fr) }
  .cartes { grid-template-columns: 1fr 1fr }
  .hojas { grid-template-columns: repeat(3, 1fr) }
}
@media (min-width: 861px) {
  section { padding: 76px 0 }
  .inicio { padding: 34px 0 60px }
  .inicio-grid { display: grid; grid-template-columns: 470px 1fr; gap: 44px; align-items: center }
  .fenetre img { height: 118px }
  .mockup-inicio { display: block }
  .mockup-inicio img { border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.4) }
  .mockup-inicio figcaption { color: var(--sobre); text-align: center; margin-top: 12px; font-weight: 700; font-size: 14px }
  .galon p { font-size: 16px; max-width: 760px }
  .douleurs { padding-top: 90px }
  .pieces { grid-template-columns: repeat(4, 1fr) }
  .piece:first-child { grid-column: 1 / -1; max-width: 640px; margin: 0 auto 6px }
  .planche { grid-template-columns: repeat(6, 1fr) }
  .cartes { grid-template-columns: repeat(3, 1fr) }
  .carte { flex-direction: column } .carte img { width: 120px }
  .explications { max-width: 820px; margin: 0 auto; padding: 26px 30px 30px }
  .etiquette-cousue { max-width: 820px; margin: 0 auto }
  .notice { max-width: 820px }
  .barra { display: none }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important } }
/* ajustes tras revisar en el celular */
.bon-tete { flex-direction: column; align-items: flex-start; gap: 2px }
.bon-tete span { text-align: left }
.bon-bas img { width: 54% }
.bon-bas .cachet.grand { width: 112px } .bon-bas .cachet.grand b { font-size: 32px }

.piece:first-child img { max-width: 220px }
::selection { background: #E9B949; color: var(--azul2) }
