/* ==============================================================
   Bernarditas Storefront
   "Barbie World" sutil: hot pink editorial, aire, polish.
   Tipografía: Playfair Display (títulos) + Inter (body)
   + Dancing Script sólo para detalles chicos.
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;0,800;1,500&family=Dancing+Script:wght@700&display=swap');

:root {
    /* Paleta Barbie sutil */
    /* Paleta beige / nude clean-girl (ex "Barbie world") */
    --cream:     #FDFAF3;
    --rose-50:   #FDFAF3;
    --rose-100:  #F6ECDA;
    --rose-200:  #EADAC0;
    --rose-300:  #D6BB9C;
    --rose-400:  #BE9A7E;
    --rose-500:  #A57E64;
    --rose-600:  #866249;   /* brand principal — caramel */
    --rose-700:  #654835;   /* brand dark */
    --rose-800:  #452F21;
    --rose-900:  #2A1C13;
    --peach:     #F7DCC3;
    --gold:      #C9A062;   /* acento champagne */

    --bg:     var(--cream);
    --card:   #FFFFFF;
    --ink:    #2A1C13;
    --ink-soft: #8A7265;
    --ink-muted: #B8A799;
    --border: #EADAC0;
    --brand:  var(--rose-600);

    --shadow-sm:   0 1px 3px rgba(225, 29, 116, .06),
                   0 2px 8px rgba(225, 29, 116, .04);
    --shadow:      0 4px 12px rgba(225, 29, 116, .08),
                   0 12px 32px rgba(225, 29, 116, .06);
    --shadow-lg:   0 8px 24px rgba(225, 29, 116, .12),
                   0 20px 60px rgba(225, 29, 116, .10);
    --shadow-pink: 0 6px 20px rgba(237, 77, 150, .35);

    --radius:     16px;
    --radius-lg:  24px;
    --radius-xl:  32px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
    margin: 0; padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografía editorial */
h1, h2, h3, h4 {
    font-family: "Playfair Display", "Georgia", serif;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; }
h2 { font-size: 1.8rem; line-height: 1.15; }
h3 { font-size: 1.3rem; }

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--rose-700); }

::selection { background: var(--rose-300); color: #fff; }

/* Scrollbar */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--rose-200); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--rose-400); }

/* ---------------- HEADER ---------------- */
.shop-header {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    padding: .9rem 1.2rem;
    display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 20;
    border-bottom: 1px solid var(--rose-100);
}
.shop-header .brand {
    display: inline-flex; align-items: center;
    height: 72px;
    transition: opacity .2s;
}
@media (max-width: 520px) {
    .shop-header .brand { height: 56px; }
}
.shop-header .brand img {
    height: 100%; width: auto;
    display: block;
}
.shop-header .brand:hover { opacity: .75; }
.shop-header nav {
    margin-left: auto; display: flex; gap: .4rem; align-items: center;
}
.shop-header nav a {
    color: var(--ink-soft); font-weight: 500; font-size: .92rem;
    padding: .5rem .8rem; border-radius: 10px;
    transition: all .15s;
}
.shop-header nav a:hover { background: var(--rose-50); color: var(--brand); }

.cart-btn {
    position: relative;
    background: var(--ink);
    color: #fff;
    border: 0; border-radius: 999px;
    padding: .55rem 1rem .55rem 1.1rem;
    font-weight: 600; cursor: pointer;
    font-size: .9rem;
    display: inline-flex; align-items: center; gap: .5rem;
    box-shadow: var(--shadow-sm);
    font-family: "Inter", sans-serif;
    transition: all .2s;
}
.cart-btn:hover {
    background: var(--brand);
    transform: translateY(-1px);
    box-shadow: var(--shadow-pink);
    text-decoration: none;
    color: #fff;
}
.cart-btn .count {
    background: #fff; color: var(--brand);
    border-radius: 999px; font-size: .7rem; min-width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 .3rem;
    font-weight: 700;
}

/* ---------------- HERO ---------------- */
.hero {
    position: relative;
    padding: 4rem 1.2rem 4.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--rose-100) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 100%, var(--peach) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 100%, var(--rose-100) 0%, transparent 60%),
        var(--cream);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(225,29,116,.12) 0, transparent 2px),
        radial-gradient(circle at 85% 60%, rgba(229,184,118,.25) 0, transparent 2px),
        radial-gradient(circle at 30% 80%, rgba(225,29,116,.08) 0, transparent 1.5px),
        radial-gradient(circle at 70% 20%, rgba(229,184,118,.18) 0, transparent 1.5px);
    background-size: 120px 120px, 160px 160px, 90px 90px, 100px 100px;
    pointer-events: none;
    opacity: .6;
}
.hero h1 {
    margin: 0 auto .4rem;
    font-style: italic;
    color: var(--ink);
    max-width: 20ch;
    letter-spacing: -.02em;
}
.hero h1 .accent {
    color: var(--brand);
    font-style: italic;
}
.hero p {
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 46ch;
    font-weight: 400;
    position: relative; z-index: 1;
}
.hero .hero-cta {
    margin: 1.2rem auto 0;
    display: inline-flex; flex-wrap: wrap;
    align-items: center; gap: .5rem; justify-content: center;
    position: relative; z-index: 2;
}
.hero .tag {
    display: inline-block;
    padding: .35rem .9rem;
    background: #fff;
    border: 1px solid var(--rose-200);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
}
.hero .tag::before { content: "✦ "; color: var(--gold); }
.hero .tag::after  { content: " ✦"; color: var(--gold); }

main.shop { max-width: 1240px; margin: 0 auto; padding: 2rem 1.2rem 3rem; }

/* ---------------- SEARCH BAR ---------------- */
.search-bar {
    display: flex; gap: .6rem; margin-bottom: 1.5rem; flex-wrap: wrap;
    position: sticky; top: 72px; z-index: 10;
    padding: .6rem 0;
}
.search-bar input, .search-bar select {
    padding: .8rem 1.1rem;
    border: 1px solid var(--border); border-radius: 999px;
    background: #fff; font-size: .95rem;
    font-family: "Inter", sans-serif;
    transition: all .2s;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}
.search-bar input:focus, .search-bar select:focus {
    outline: none; border-color: var(--rose-400);
    box-shadow: 0 0 0 4px rgba(237,77,150,.12), var(--shadow-sm);
}
.search-bar input { flex: 1 1 240px; }
.search-bar select { cursor: pointer; padding-right: 2.5rem; }

/* ---------------- PRODUCT GRID ---------------- */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}
@media (min-width: 900px) {
    .products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
}

.product-card {
    background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
    display: flex; flex-direction: column;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    color: var(--ink);
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--ink);
    border-color: var(--rose-100);
}
.product-card .photo {
    aspect-ratio: 1 / 1.2;
    background: linear-gradient(135deg, var(--rose-50), var(--rose-100)) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-muted);
    position: relative;
}
.product-card .photo.placeholder::before {
    content: "";
    background: linear-gradient(135deg, transparent, rgba(255,255,255,.4));
    position: absolute; inset: 0;
}
.product-card .photo.placeholder::after {
    content: "✦"; font-size: 2rem; color: var(--rose-300);
    font-family: "Dancing Script", cursive;
    position: relative; z-index: 1;
}
.product-card .info { padding: .9rem 1rem 1rem; }
.product-card .desc {
    font-family: "Playfair Display", serif;
    font-size: 1rem; margin: 0 0 .25rem; color: var(--ink);
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .meta {
    font-size: .72rem;
    color: var(--ink-muted);
    margin: 0 0 .5rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 500;
}
.product-card .price {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem; font-weight: 700;
    color: var(--brand); margin: 0;
    letter-spacing: -.01em;
}

/* ---------------- PRODUCT DETAIL ---------------- */
.product-detail {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
    background: #fff; border-radius: var(--radius-xl); padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--rose-100);
}
.product-detail .gallery {
    display: grid; grid-template-columns: 1fr; gap: .6rem;
}
.product-detail .gallery img {
    width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--rose-50);
    transition: transform .4s ease;
}
.product-detail .gallery img:hover { transform: scale(1.02); }
.product-detail h1 {
    margin: 0 0 .5rem;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-style: italic;
}
.product-detail .price-big {
    font-size: 2.2rem; font-weight: 800; color: var(--brand);
    margin: .8rem 0; font-family: "Inter", sans-serif;
    letter-spacing: -.02em;
}
.product-detail p { color: var(--ink-soft); }
.product-detail b { color: var(--ink); font-weight: 600; }

.badge-estado {
    display: inline-block; padding: .3rem .85rem; border-radius: 999px;
    background: var(--rose-50); color: var(--rose-700);
    border: 1px solid var(--rose-200);
    font-size: .7rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase;
}

@media (min-width: 800px) {
    .product-detail { grid-template-columns: 1.1fr 1fr; padding: 2rem; gap: 3rem; }
    .product-detail .gallery img:first-child { aspect-ratio: 1 / 1.25; }
}

/* ---------------- BUTTONS ---------------- */
.btn {
    background: #fff; color: var(--ink);
    border: 1px solid var(--border);
    padding: .85rem 1.4rem; border-radius: 999px;
    font-size: .92rem; cursor: pointer;
    font-weight: 600; font-family: "Inter", sans-serif;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    letter-spacing: .01em;
    box-shadow: var(--shadow-sm);
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: var(--rose-200);
}
.btn.primary {
    background: linear-gradient(135deg, var(--rose-500), var(--brand) 50%, var(--rose-700));
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff; border-color: transparent;
    box-shadow: var(--shadow-pink);
    position: relative; overflow: hidden;
}
.btn.primary::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .6s ease;
}
.btn.primary:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(225, 29, 116, .42);
}
.btn.primary:hover::before { transform: translateX(120%); }
.btn.big { width: 100%; padding: 1.05rem 1.5rem; font-size: 1rem; }
.btn.mp { background: linear-gradient(135deg, #00B3E6, #009ee3); color: #fff; border-color: transparent; }
.btn.wa { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; border-color: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------------- CART ---------------- */
.cart-item {
    display: flex; gap: 1rem; padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-item img {
    width: 80px; height: 80px; object-fit: cover;
    border-radius: var(--radius);
    background: var(--rose-50);
}
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h4 {
    margin: 0 0 .2rem; font-size: 1rem;
    font-family: "Playfair Display", serif;
    color: var(--ink); font-weight: 600;
    line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item .info p {
    margin: 0; font-size: .78rem; color: var(--ink-muted);
    text-transform: uppercase; letter-spacing: .06em;
}
.cart-item .price {
    font-weight: 700; color: var(--brand); font-size: 1.05rem;
}
.cart-item button {
    background: transparent; border: 1px solid var(--border);
    color: var(--ink-muted);
    font-size: 1rem; cursor: pointer; border-radius: 50%;
    width: 34px; height: 34px;
    transition: all .15s;
    display: inline-flex; align-items: center; justify-content: center;
}
.cart-item button:hover {
    background: var(--rose-50); color: var(--brand);
    border-color: var(--rose-200);
}

.cart-summary {
    background: #fff; border-radius: var(--radius-xl); padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.2rem;
    border: 1px solid var(--rose-100);
}
.cart-summary h2, .cart-summary h3 { margin-top: 0; }
.sum-row {
    display: flex; justify-content: space-between;
    padding: .45rem 0;
    color: var(--ink-soft);
}
.sum-row b { color: var(--ink); }
.sum-row.total {
    font-size: 1.35rem;
    border-top: 1px solid var(--border);
    padding-top: .9rem; margin-top: .5rem;
    color: var(--ink);
    font-family: "Playfair Display", serif;
    font-weight: 700;
}
.sum-row.total b { color: var(--brand); font-family: "Inter", sans-serif; font-weight: 700; }

/* ---------------- FORMS ---------------- */
form label {
    display: block; margin: 0 0 1rem;
    font-weight: 600; font-size: .82rem;
    color: var(--ink-soft);
    letter-spacing: .03em;
}
form input, form select, form textarea {
    width: 100%; padding: .85rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: .98rem; margin-top: .35rem;
    background: #FDF9F0;
    font-family: "Inter", sans-serif;
    color: var(--ink);
    transition: all .2s;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none; border-color: var(--rose-400); background: #fff;
    box-shadow: 0 0 0 4px rgba(237,77,150,.12);
}

.msg { margin: .8rem 0; font-size: .9rem; min-height: 1.3rem; font-weight: 500; }
.msg.error { color: #B00020; }
.msg.ok    { color: #2E7D32; }

.alert {
    background: linear-gradient(135deg, #FFF5E6, #FFE9D0);
    padding: 1rem 1.1rem; border-radius: var(--radius);
    border: 1px solid #FFD9A8;
    margin-bottom: 1rem;
    color: #6B3E0F;
    font-size: .92rem;
}

/* ---------------- TABS ---------------- */
.tabs {
    display: flex; gap: .4rem; margin-bottom: 1rem;
    padding: .3rem; background: var(--rose-50);
    border-radius: 999px;
    border: 1px solid var(--border);
}
.tabs button {
    flex: 1; padding: .7rem .9rem; border: 0; background: transparent;
    border-radius: 999px; cursor: pointer; font-weight: 600;
    font-family: "Inter", sans-serif; color: var(--ink-soft);
    font-size: .9rem;
    transition: all .2s;
}
.tabs button:hover { color: var(--brand); }
.tabs button.active {
    background: #fff; color: var(--brand);
    box-shadow: var(--shadow-sm);
}

/* ---------------- EMPTY ---------------- */
.empty {
    text-align: center; padding: 3rem 1rem;
    color: var(--ink-muted);
    font-size: .95rem;
}
.empty::before {
    content: "✦"; display: block;
    font-size: 2.5rem; color: var(--rose-300);
    line-height: 1; margin-bottom: .6rem;
    font-family: "Playfair Display", serif;
}
.empty a { font-weight: 600; }

/* ---------------- FOOTER ---------------- */
footer.shop-footer {
    margin-top: 4rem; padding: 3rem 1.2rem 2rem;
    background: linear-gradient(180deg, transparent, var(--rose-50));
    text-align: center;
    color: var(--ink-muted);
    font-size: .85rem;
}
footer.shop-footer p {
    font-family: "Playfair Display", serif;
    font-style: italic;
    color: var(--ink-soft);
    font-size: .95rem;
    margin: 0;
}
footer.shop-footer a { color: var(--brand); font-weight: 600; }

/* ---------------- SHARE ---------------- */
.share-row {
    display: flex; gap: .5rem; flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    align-items: center;
}
.share-row > span {
    color: var(--ink-muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
}

/* ---------------- LINK BACK ---------------- */
.back-link {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .4rem .8rem .4rem 0;
    color: var(--ink-soft);
    font-size: .9rem; font-weight: 500;
    transition: color .15s;
}
.back-link:hover { color: var(--brand); text-decoration: none; }

/* Compra rápida (cliente logueada) */
.quick-card {
    background: linear-gradient(135deg, var(--rose-50), var(--rose-100));
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
}
.quick-hi {
    display: flex; align-items: center; gap: .8rem;
    margin-bottom: .8rem; flex-wrap: wrap;
}
.quick-emoji { font-size: 2rem; line-height: 1; }
.quick-label { font-size: .68rem; color: var(--ink-muted); letter-spacing: .1em; font-weight: 700; }
.quick-name {
    font-family: "Playfair Display", serif;
    font-weight: 700; font-size: 1.25rem;
    color: var(--ink);
}
.quick-grid { display: grid; gap: .3rem; font-size: .9rem; color: var(--ink-soft); }
.quick-grid b { color: var(--ink); }

/* Opciones de entrega grandes (radios) */
.entrega-opciones {
    display: grid; gap: .5rem; margin: .5rem 0 1rem;
}
.entrega-opt {
    display: flex !important; align-items: flex-start; gap: .8rem;
    padding: 1rem !important; margin: 0 !important;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s;
}
.entrega-opt:hover { border-color: var(--rose-300); }
.entrega-opt:has(input:checked) {
    border-color: var(--brand);
    background: var(--rose-50);
    box-shadow: 0 0 0 3px rgba(237, 77, 150, .08);
}
.entrega-opt input[type="radio"] { margin-top: 2px; flex-shrink: 0; }
.entrega-opt span { line-height: 1.3; }

/* ========================================================
   PULIDO FINAL — controles de formulario consistentes (tienda).
   ======================================================== */

/* Placeholders */
::placeholder { color: var(--ink-muted); opacity: .75; }

/* Focus visible */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(237, 77, 150, .25);
    outline-offset: 2px;
}

/* Checkbox */
input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 22px; height: 22px;
    border: 1.5px solid var(--rose-300);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    margin: 0 .5rem 0 0;
    vertical-align: middle;
    flex-shrink: 0;
    transition: all .15s;
}
input[type="checkbox"]:hover { border-color: var(--brand); }
input[type="checkbox"]:checked {
    background: var(--brand);
    border-color: var(--brand);
}
input[type="checkbox"]:checked::after {
    content: ""; position: absolute; left: 5px; top: 1px;
    width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Radio */
input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 22px; height: 22px;
    border: 1.5px solid var(--rose-300);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin: 0 .5rem 0 0;
    vertical-align: middle;
    flex-shrink: 0;
    transition: all .15s;
}
input[type="radio"]:checked {
    border-color: var(--brand);
    background: radial-gradient(circle, var(--brand) 45%, #fff 50%);
}

/* File */
input[type="file"] {
    font-family: "Inter", sans-serif;
    font-size: .92rem;
    padding: .5rem;
    background: var(--rose-50);
    border-radius: var(--radius);
    border: 1.5px dashed var(--rose-300);
    cursor: pointer;
    color: var(--ink);
}
input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .5rem 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-right: .8rem;
    transition: background .15s;
}
input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::file-selector-button:hover { background: var(--brand); }

/* Date picker icon tinted */
input[type="date"] { color-scheme: light; }
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(18%) sepia(86%) saturate(3200%) hue-rotate(318deg) brightness(88%);
    cursor: pointer;
    opacity: .7;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Number: ocultamos spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* Select custom arrow */
select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' stroke='%23866249' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Disabled / readonly */
input:disabled, select:disabled, textarea:disabled,
input[readonly], select[readonly], textarea[readonly] {
    background: #EFE3CE;
    color: var(--ink-soft);
    cursor: not-allowed;
    opacity: .85;
}

/* Validación post-input */
input:not(:placeholder-shown):invalid:not(:focus) {
    border-color: #D32F2F;
    background: #FBEFEB;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid var(--rose-200);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
.spinner.big { width: 36px; height: 36px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading {
    display: flex; align-items: center; justify-content: center;
    gap: .7rem; padding: 2.5rem;
    color: var(--ink-soft);
}
.loading::before {
    content: ""; display: inline-block;
    width: 20px; height: 20px;
    border: 2.5px solid var(--rose-200);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0; }

code {
    background: var(--rose-50);
    color: var(--rose-800);
    padding: .1rem .4rem;
    border-radius: 6px;
    font-size: .85em;
    font-family: "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
