/* ========= Inkeon Canvas - Premium UI (safe/compat, ASCII) ========== */

/* Base */
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  background:#f9f9f9; color:#0a0a0a; line-height:1.55;
  max-width:1100px; margin:0 auto; padding:20px;
}
a{color:#0077cc; text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
.site-header{
  background:#ffffff;
  border-bottom:1px solid #eaeaea;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:10px 20px;
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-logo{display:block; width:64px; height:64px}
.brand-name{font-size:26px; font-weight:800; letter-spacing:.2px; color:#0a0a0a}
.brand-name strong{color:#0077cc; font-weight:900}

/* Nav */
.primary-nav ul{list-style:none; display:flex; gap:20px; padding:0; margin:0}
.primary-nav ul li a{color:#0077cc; font-weight:600}
.language-switcher{display:flex; gap:8px}
.language-switcher button{
  background:#f3f6fa; color:#0a0a0a; border:1px solid #eaeaea;
  padding:8px 12px; border-radius:999px; cursor:pointer; font-weight:600;
}
.language-switcher button[aria-pressed="true"]{
  background:#0077cc; color:#ffffff; border-color:#0077cc;
}

/* Hero */
.hero{
  margin:24px 0 10px;
  background:#ffffff;
  border:1px solid #eaeaea; border-radius:16px; padding:24px 20px;
}
.hero h1{font-size:28px; margin:0 0 10px}
.lead{font-size:1.05rem; color:#333333;}
.cta-row{display:flex; gap:12px; margin-top:14px}

/* Buttons */
.btn{display:inline-block; width:auto; max-width:none}
.btn-primary{
  background:#0077cc; color:#ffffff; border:1px solid #0077cc;
  padding:12px 16px; border-radius:12px; font-weight:700; cursor:pointer;
  transition:filter .15s ease, transform .15s ease;
}
.btn-primary:hover{filter:brightness(1.03)}
.btn-primary:active{transform:translateY(1px)}
.btn-outline{
  background:#ffffff; color:#0077cc; border:1px solid #0077cc;
  padding:12px 16px; border-radius:12px; font-weight:700; cursor:pointer;
}
.btn-outline:hover{background:#f3faff}

/* Headings */
h1,h2,h3{margin:0 0 12px}
h2{margin-top:40px}

/* Forms */
label,input,select,textarea,button{display:block; width:100%; max-width:520px}
label{margin-top:12px; font-weight:600}
input,select,textarea{
  padding:12px; border:1px solid #d8d8d8; border-radius:10px; background:#ffffff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus,select:focus,textarea:focus{
  outline:none; border-color:#0077cc; box-shadow:0 0 0 3px rgba(0,119,204,.12);
}
button{
  background:#0077cc; color:#ffffff; border:none; padding:12px 14px;
  border-radius:12px; cursor:pointer; font-weight:700;
}
button:hover{filter:brightness(1.03)}
button:disabled{opacity:.6; cursor:not-allowed}

/* Fieldsets */
fieldset{
  border:1px solid #eaeaea; border-radius:14px; padding:16px 16px 20px; margin:18px 0;
  background:#ffffff;
}
legend{
  padding:0 8px; font-weight:800; color:#111111; font-size:1.02rem;
}

/* Gallery (cards) */
.gallery{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px; margin-top:20px;
}
.card{
  background:#ffffff; border-radius:14px; border:1px solid #eaeaea;
  padding:18px; box-shadow:0 6px 16px rgba(18,18,23,.05);
}
.card h3{margin:2px 0 6px; font-size:1.15rem}

/* ===== Premium frame for previews ===== */
.preview-images{
  display:grid; grid-template-columns:1fr 1fr;
  gap:12px; margin-top:12px;
}
.preview-images img{
  display:block; width:100%; height:auto;
  border-radius:12px;
  background:#ffffff; padding:10px;
  border:1px solid #e6e8ef;
  box-shadow:
    0 1px 0 #ffffff inset,
    0 0 0 6px #ffffff,
    0 10px 18px rgba(18,18,23,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.preview-images img:hover{
  transform:translateY(-1px);
  box-shadow:
    0 1px 0 #ffffff inset,
    0 0 0 6px #ffffff,
    0 16px 26px rgba(18,18,23,.10);
}

/* Select buttons */
.select-buttons{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap}
.desired{background:#0077cc}
.optional{background:#d6d6d6; color:#000000}

/* Selection feedback */
.card.is-desired{outline:2px solid #0077cc}
.card.is-optional{outline:2px dashed #999999}
.card.selected{outline-offset:2px}
.card.is-desired .select-buttons .desired{box-shadow:0 0 0 2px #0077cc inset}
.card.is-optional .select-buttons .optional{box-shadow:0 0 0 2px #999999 inset}

/* Toggle "Details" */
.toggle{
  cursor:pointer; color:#111111; font-weight:700; padding:6px 0;
  background:none; border:0; margin:0; text-align:left;
}
.toggle:focus{outline:2px solid #0077cc; outline-offset:2px}

/* Status + honeypot */
#status{margin-top:10px}
.status{margin-top:10px; font-size:.96rem}
.status.success{
  color:#0a7a24; background:#e9f7ee; border:1px solid #bfe7cb; border-radius:10px; padding:10px 12px; max-width:520px;
}
.status.error{
  color:#b00020; background:#fdecee; border:1px solid #f6c4ca; border-radius:10px; padding:10px 12px; max-width:520px;
}
.hp{position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden}

/* Pairs: Before | After */
.pairs{display:grid; grid-template-columns:1fr; gap:16px; margin-top:12px}
.pair{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
  align-items:flex-start;
  background:#ffffff; border-radius:12px; padding:12px; border:1px solid #eaeaea;
  box-shadow:0 6px 16px rgba(18,18,23,.05);
}
.pair figure{margin:0}
.pair img{
  display:block; width:100%; height:auto;
  border-radius:12px; background:#ffffff; padding:10px;
  border:1px solid #e6e8ef;
  box-shadow:
    0 1px 0 #ffffff inset,
    0 0 0 6px #ffffff,
    0 10px 18px rgba(18,18,23,.06);
}
.pair figcaption{font-size:.9rem; text-align:center; margin-top:6px; color:#555555}

/* FAQs */
#faqs details{
  background:#ffffff; border:1px solid #eaeaea; border-radius:12px;
  padding:12px 14px; margin:10px 0;
}
#faqs summary{font-weight:800; cursor:pointer}
#faqs p{margin:8px 0 2px; color:#333333}

/* Mobile comfort */
button,input,select,textarea{min-height:44px}

/* Responsive */
@media (max-width:700px){
  .primary-nav{flex-direction:column; align-items:flex-start; gap:10px}
  .primary-nav ul{flex-wrap:wrap; gap:12px}
  .brand-logo{width:56px; height:56px}
  .brand-name{font-size:24px}
  .pair{grid-template-columns:1fr}
  .preview-images{grid-template-columns:1fr 1fr}
}
@media (min-width:480px){
  .brand-name{font-size:28px}
}
@media (min-width:900px){
  .brand-name{font-size:30px}
}
@media (min-width:700px){
  .pairs{grid-template-columns:1fr 1fr}
}

/* === Previews: no recortar, mantener proporcion y alto consistente === */
#previewGrid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  align-items:flex-start; /* compat */
}
#previewGrid .card{
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  background:#fff;
}
#previewGrid .card img{
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:contain;
  display:block;
  border-radius:8px;
}

.artist-tag{
  margin-top:10px;
  font-size:.95rem;
  font-weight:600;
  text-align:center;
  opacity:.9;
}

.delivery{
  margin: 0 0 8px 0;
  font-size: .95rem;
}

/* Lead paragraph: force full width on hero */
.hero .lead{
  max-width: none;
  display: block;
  white-space: normal;  /* por si algun minificador raro altera saltos */
}

/* === Selects (Country & Canvas Size): fix unificado Edge/Windows === */

/* 1) Evitar que el dropdown se corte por bordes del fieldset */
#shippingFieldset,
#addressFieldset,
#paymentFieldset{
  position:relative; /* seguro en cualquier validador */
}

/* 2) Normalizar caja del <select> y evitar cortes de fondo */
select{
  display:block;
  width:100%;
  max-width:520px;
  box-sizing:border-box;
  background-clip:padding-box; /* previene cortes del fondo en Edge */
}

/* 3) Crear stacking propio en los selects problematicos */
#country,
#canvasSize{
  position:relative;   /* stacking context propio */
  z-index:1;
  min-width:0;         /* evita wrapping raro en Edge */
  transform:translateZ(0); /* hack inofensivo que ayuda en Edge */
}

/* 4) Cuando estan abiertos/enfocados, subir por encima de bordes/sombras */
#country:focus,
#canvasSize:focus{
  z-index:999;
}

/* 5) Opciones de una sola linea (listas largas y ordenadas) */
#country option,
#canvasSize option{
  white-space:nowrap;
  line-height:1.25;
  font-size:1rem;
}
/* === Hero notes (discretas, elegantes, sin look legal) === */
.hero-notes{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(10,10,10,.10); /* separador sutil */
}

.hero-note{
  margin:6px 0 0;
  font-size:.74rem;
  line-height:1.35;
  opacity:.62;
  font-style:italic;
}
.inkeon-pick{
  text-transform:none;
  overflow:hidden;
}
