/* ===================================
   13 - Sistema editorial
   Layout y tipografia de seccion compartidos por la home y las
   paginas de catalogo. Es la capa que hace que todo el sitio hable
   el mismo idioma que el hero: paleta monocroma (carbon + marfil +
   un dorado), filetes de 1px en vez de sombras y ritmo generoso.

   Se carga en index, productos y producto-detalle, despues de
   08-cards y antes de las hojas especificas de cada pagina.
   =================================== */

/* ===== Seccion ===== */
.sec {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
}

/* Cualquier seccion a la que se llegue por ancla deja hueco para el nav
   flotante. Lo usan tanto los enlaces internos como la llegada desde
   otra pagina (index.html#seccion). */
section[id],
main [id].sec {
    scroll-margin-top: clamp(5.5rem, 10vh, 7rem);
}

.sec__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Fondos: blanco, marfil calido y carbon (las "anclas" oscuras) */
.sec--paper {
    background: var(--color-white);
}

.sec--ivory {
    background: var(--ivory);
}

.sec--ink {
    background: var(--ink);
    color: var(--color-white);
}

/* ===== Cabecera de seccion =====
   Alineada a la izquierda, con el enlace de "ver todo" a la derecha
   y un filete que cierra el bloque. */
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--hairline);
}

.sec-kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.85rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.sec-rule {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--color-gold);
}

.sec-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: var(--ink);
}

.sec-sub {
    margin: 0.7rem 0 0;
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.6;
    text-wrap: pretty;
    color: var(--ink-soft);
}

/* Version oscura de la cabecera */
.sec--ink .sec-head {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.sec--ink .sec-title {
    color: var(--color-white);
}

.sec--ink .sec-sub {
    color: rgba(255, 255, 255, 0.72);
}

.sec--ink .sec-kicker {
    color: var(--color-gold-light);
}

/* ===== Enlace editorial (el "ver todo") ===== */
.link-editorial {
    flex: 0 0 auto;
    align-self: flex-end;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.link-editorial:hover {
    color: var(--gold-text);
    border-color: var(--gold-text);
}

.sec--ink .link-editorial {
    color: var(--color-white);
}

.sec--ink .link-editorial:hover {
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

/* ===== Rejilla de categorias ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

@media (min-width: 768px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Rejilla de productos ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: clamp(1rem, 2.2vw, 1.75rem);
}

/* En movil la cuadricula es de dos columnas: asi se diferencia de la
   vista de lista y se ven mas productos por pantalla. */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ===== Movil: la cabecera se apila ===== */
@media (max-width: 640px) {
    .sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .link-editorial {
        align-self: flex-start;
    }
}

/* ===== Franja de promesas (seccion oscura) ===== */
.promise-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.promise-row li {
    padding: 1.9rem 1.6rem;
    background: var(--ink);
}

.promise-row i {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-gold);
}

.promise-row h3 {
    margin: 0 0 0.45rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--color-white);
}

.promise-row p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

/* ===== Indice de familias olfativas =====
   Sustituye 16 tarjetas de colores por un indice tipografico: el
   color deja de competir y la lectura se vuelve el catalogo. */
.family-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 clamp(1rem, 3vw, 2.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .family-index {
        grid-template-columns: repeat(4, 1fr);
    }
}

.family-index a {
    display: block;
    padding: 1.1rem 0.2rem;
    border-top: 1px solid var(--hairline);
    text-decoration: none;
    transition: padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.family-index a:hover {
    padding-left: 0.7rem;
    border-top-color: var(--color-gold);
}

.family-index__name {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    color: var(--ink);
    transition: color 0.3s ease;
}

.family-index a:hover .family-index__name {
    color: var(--gold-text);
}

.family-index__desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: var(--ink-mute);
}

/* ===== Testimonios ===== */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}

.quote {
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
}

.quote__stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    color: var(--color-gold-dark);
}

.quote blockquote {
    margin: 0 0 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--ink);
}

.quote figcaption {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.quote__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-text);
}

.quote figcaption strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.quote figcaption small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: var(--ink-mute);
}

/* ===== Sobre nosotros ===== */
.about {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .about {
        grid-template-columns: 1fr 1fr;
    }
}

.about__text p {
    margin: 1.1rem 0 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.74);
}

.about__text .sec-title {
    color: var(--color-white);
}

.about__media {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.about__media img {
    display: block;
    width: 100%;
    height: clamp(320px, 42vw, 460px);
    object-fit: cover;
}

/* Cifras: filete de datos, no bloques dorados gigantes */
.figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 2.5rem 0 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.figures > div {
    padding: 1.4rem 1.2rem;
    background: var(--ink);
}

.figures dt {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-gold-light);
}

.figures dd {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Contacto ===== */
.contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 900px) {
    .contact {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    padding: 1.2rem 0;
    border-top: 1px solid var(--hairline);
}

.contact-list li:last-child {
    border-bottom: 1px solid var(--hairline);
}

.contact-list__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.contact-list__label i {
    margin-right: 0.4rem;
    color: var(--color-gold-dark);
}

.contact-list a,
.contact-list p {
    display: block;
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: var(--gold-text);
}

.contact-list small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--ink-mute);
}

.contact-social {
    margin-top: 2rem;
}

.contact-social div {
    display: flex;
    gap: 0.6rem;
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.contact-social a:hover {
    border-color: var(--color-gold);
    background: var(--ivory);
    color: var(--gold-text);
}

/* ===== Formulario editorial ===== */
.form-editorial h3 {
    margin: 0 0 1.75rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--ink);
}

.form-editorial .field {
    margin-bottom: 1.5rem;
}

.form-editorial label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.form-editorial input,
.form-editorial textarea {
    width: 100%;
    padding: 0.65rem 0;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.3s ease;
}

.form-editorial input:focus,
.form-editorial textarea:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
}

.form-editorial input::placeholder,
.form-editorial textarea::placeholder {
    color: rgba(26, 23, 18, 0.32);
}

.form-editorial textarea {
    resize: vertical;
}

/* ===== Boton editorial ===== */
.btn-editorial {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.9rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-editorial:hover {
    background: var(--gold-text);
    border-color: var(--gold-text);
    transform: translateY(-2px);
}

.btn-editorial i {
    font-size: 0.7rem;
}

/* ===== Promocion del mes =====
   Ancla oscura, como el hero y la franja de promesas. El contenido lo
   inyecta products.js desde los ajustes del panel (titulo, bullets,
   enlace e imagen o video), asi que aqui solo vive la presentacion. */
.promo {
    position: relative;
    overflow: hidden;
}

/* Filetes dorados que abren y cierran la seccion */
.promo__rule {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold) 50%, transparent);
}

.promo__rule--top {
    top: 0;
}

.promo__rule--bottom {
    bottom: 0;
}

.promo__glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: min(50vw, 640px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.22), transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

.promo__layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .promo__layout {
        grid-template-columns: 1fr minmax(0, 26rem);
    }
}

.promo__text .sec-title {
    color: var(--color-white);
}

.promo__text .sec-sub {
    color: rgba(255, 255, 255, 0.74);
}

/* Ventajas de la promocion */
.promo__list {
    margin: 1.75rem 0 2.25rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    list-style: none;
}

.promo__list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}

.promo__list li::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: 0;
    width: 0.85rem;
    height: 1px;
    background: var(--color-gold);
}

/* CTA dorado: la llamada mas fuerte de la pagina despues del hero */
.btn-editorial--gold {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: #16120A;
}

.btn-editorial--gold:hover {
    border-color: var(--color-gold-light);
    background: var(--color-gold-light);
    color: #16120A;
}

/* ===== Media de la promocion (imagen o video) ===== */
.promo__media {
    margin: 0;
}

.promo__frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 110, 0.35);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.9);
}

.promo__frame img,
.promo__frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo__placeholder {
    font-size: 4rem;
    color: rgba(201, 169, 110, 0.35);
}

.promo__frame-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 25%,
        transparent 65%,
        rgba(0, 0, 0, 0.6) 100%);
}

.promo__audio {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(201, 169, 110, 0.5);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    color: var(--color-gold-light);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.promo__audio:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: var(--color-gold);
}

.promo__chip {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(201, 169, 110, 0.5);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold-light);
}

.promo__chip::before {
    content: '';
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--color-gold);
}

@media (max-width: 640px) {
    .promo__frame {
        aspect-ratio: 1;
    }
}

/* ===================================
   Carrito
   Panel lateral en el mismo idioma que el catalogo: fondo claro,
   filetes de 1px y tipografia editorial. El fondo oscuro lo pinta
   el propio #cart-modal (no un hijo), porque ui.js cierra el panel
   comparando e.target con el contenedor.
   =================================== */
.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(26, 23, 18, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.cart-modal:not(.hidden) {
    display: block;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(100%, 26rem);
    height: 100%;
    height: 100dvh;
    background: var(--color-white);
    box-shadow: -30px 0 80px -40px rgba(26, 23, 18, 0.6);
}

.cart-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.5rem 1.1rem;
    border-bottom: 1px solid var(--hairline);
}

.cart-panel__head h3 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--ink);
}

.cart-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 50%;
    background: var(--ivory);
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.25s ease;
}

.cart-panel__close:hover {
    background: var(--ivory-deep);
}

.cart-panel__items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1.5rem;
}

.cart-empty {
    margin: 0;
    padding: 4rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-mute);
}

/* ===== Linea de producto ===== */
.cart-item {
    display: flex;
    gap: 0.9rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--hairline);
}

.cart-item__media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 4rem;
    height: 5rem;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 2px;
    background: var(--ivory-deep);
    font-size: 1.2rem;
    color: rgba(26, 23, 18, 0.2);
}

.cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__body {
    flex: 1;
    min-width: 0;
}

.cart-item__brand {
    margin: 0 0 0.2rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.cart-item__name {
    margin: 0 0 0.6rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--ink);
}

.cart-item__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    overflow: hidden;
}

.cart-item__qty button {
    width: 1.8rem;
    height: 1.8rem;
    border: 0;
    background: none;
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.25s ease;
}

.cart-item__qty button:hover {
    background: var(--ivory);
}

.cart-item__qty span {
    min-width: 1.6rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink);
}

.cart-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex: 0 0 auto;
}

.cart-item__price {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: var(--ink);
}

.cart-item__remove {
    border: 0;
    background: none;
    font-size: 0.8rem;
    color: var(--ink-mute);
    cursor: pointer;
    transition: color 0.25s ease;
}

.cart-item__remove:hover {
    color: var(--ink);
}

/* ===== Pie ===== */
.cart-panel__foot {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--hairline);
    background: var(--ivory);
}

.cart-panel__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.cart-panel__total span:first-child {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.cart-panel__total span:last-child {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--ink);
}

.cart-panel__foot .btn-editorial {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
}

.cart-panel__foot .btn-editorial + .btn-editorial {
    margin-top: 0.6rem;
}

.cart-panel__foot .btn-editorial--ghost {
    border-color: var(--hairline);
    background: var(--color-white);
    color: var(--ink);
}

.cart-panel__foot .btn-editorial--ghost:hover {
    border-color: var(--color-gold);
    background: var(--color-white);
}

/* ===================================
   Checkout
   Aqui SI se reasignan las clases de Tailwind en vez de reescribir el
   markup: son tres pasos con validacion y pasarela de pago, y tocar
   ese HTML es mucho mas arriesgado que mapear sus colores. Todos los
   selectores cuelgan de #checkout-modal, asi que no se escapan.
   =================================== */
#checkout-modal .bg-gray-900,
#checkout-modal .bg-gray-800,
#checkout-modal .bg-gray-800\/50 {
    background-color: var(--color-white);
}

#checkout-modal .bg-gray-700 {
    background-color: var(--ivory-deep);
}

#checkout-modal .bg-gray-600 {
    background-color: var(--hairline);
}

/* Cabecera y barra de pasos, en marfil */
#checkout-modal > div:last-child > div:first-child,
#checkout-modal #checkout-steps-bar {
    background-color: var(--ivory);
}

#checkout-modal .border-gray-700,
#checkout-modal .border-gray-600 {
    border-color: var(--hairline);
}

#checkout-modal .text-white,
#checkout-modal h2,
#checkout-modal h3 {
    color: var(--ink);
}

#checkout-modal h2,
#checkout-modal h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
}

#checkout-modal .text-gray-300 {
    color: var(--ink-soft);
}

#checkout-modal .text-gray-400,
#checkout-modal .text-gray-500,
#checkout-modal .text-gray-600 {
    color: var(--ink-mute);
}

#checkout-modal .text-amber-400 {
    color: var(--gold-text);
}

/* Campos del formulario */
#checkout-modal input,
#checkout-modal select,
#checkout-modal textarea {
    background-color: var(--color-white);
    border-color: var(--hairline);
    color: var(--ink);
}

#checkout-modal input::placeholder,
#checkout-modal textarea::placeholder {
    color: rgba(26, 23, 18, 0.32);
}

#checkout-modal input:focus,
#checkout-modal select:focus,
#checkout-modal textarea:focus {
    border-color: var(--color-gold);
    outline: none;
}

/* El paso activo y los CTA, en carbon */
#checkout-modal .bg-amber-500 {
    background-color: var(--ink);
    color: var(--color-white);
}

#checkout-modal .bg-amber-500.text-black,
#checkout-modal .text-black {
    color: var(--color-white);
}

#checkout-modal .hover\:bg-amber-400:hover {
    background-color: var(--gold-text);
}

#checkout-modal .hover\:border-amber-500:hover,
#checkout-modal .focus\:border-amber-500:focus {
    border-color: var(--color-gold);
}

/* Avisos: sin rojos ni verdes de sistema, salvo el icono */
#checkout-modal .text-red-400 {
    color: #9A3B2F;
}

#checkout-modal .text-green-400 {
    color: #3F6B4A;
}

#checkout-modal .bg-green-500\/20 {
    background-color: rgba(63, 107, 74, 0.12);
}

#checkout-modal .bg-amber-500\/20,
#checkout-modal .bg-blue-500\/20,
#checkout-modal .bg-purple-500\/20 {
    background-color: var(--ivory);
}

#checkout-modal .text-blue-400,
#checkout-modal .text-purple-400 {
    color: var(--gold-text);
}

#checkout-modal .border-amber-500\/30,
#checkout-modal .border-purple-500\/30 {
    border-color: var(--hairline);
}
