:root {
    --gm-verde: #0f7a4f;
    --gm-verde-oscuro: #0a5c3b;
    --gm-verde-claro: #e9f6ef;
    --gm-dorado: #f2b544;
    --gm-fondo: #f7faf8;
    --gm-tinta: #22322b;
    --gm-muted: #6b7b73;
    --gm-borde: #e3ebe6;
    --gm-sombra: 0 .75rem 2rem rgba(18, 74, 51, .08);
    --gm-radio: 1.15rem;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    background: var(--gm-fondo);
    color: var(--gm-tinta);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main { min-height: 60vh; }

h1, h2, h3, h4, h5, h6 { letter-spacing: -.025em; line-height: 1.25; }

a { text-decoration-color: rgba(15, 122, 79, .35); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid rgba(15, 122, 79, .25); outline-offset: 2px; }

.text-gominoe { color: var(--gm-verde) !important; }
.bg-gominoe-claro { background: var(--gm-verde-claro) !important; }
.text-muted { color: var(--gm-muted) !important; }

.form-control, .form-select { border-color: var(--gm-borde); border-radius: .75rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--gm-verde);
    box-shadow: 0 0 0 .2rem rgba(15, 122, 79, .12);
}

.btn { border-radius: .8rem; font-weight: 600; }

.btn-gominoe {
    background: linear-gradient(135deg, var(--gm-verde), var(--gm-verde-oscuro));
    border: 0;
    box-shadow: 0 .45rem 1rem rgba(15, 122, 79, .18);
    color: #fff;
    padding: .65rem 1.25rem;
}

.btn-gominoe:hover, .btn-gominoe:focus {
    background: linear-gradient(135deg, var(--gm-verde-oscuro), #07452d);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-gominoe {
    border: 1px solid var(--gm-verde);
    color: var(--gm-verde);
}

.btn-outline-gominoe:hover, .btn-outline-gominoe:focus {
    background: var(--gm-verde);
    color: #fff;
}

.navbar {
    border-bottom: 1px solid rgba(227, 235, 230, .9);
    min-height: 72px;
    padding: .55rem 0;
}

.navbar-brand { font-size: 1.35rem; letter-spacing: -.035em; }
.navbar-brand i { color: var(--gm-dorado); }
.gm-logo { display: block; height: 46px; max-width: 190px; object-fit: contain; width: auto; }
.navbar .nav-link { color: #405047; font-size: .94rem; font-weight: 500; padding: .5rem .75rem !important; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--gm-verde) !important; }
.navbar .navbar-toggler { border-color: var(--gm-borde); padding: .35rem .55rem; }
.gm-search { min-width: 210px; }

.hero-gominoe {
    background: radial-gradient(circle at 12% 18%, #d8f3e4 0, transparent 40%),
                radial-gradient(circle at 88% 78%, #fff0cc 0, transparent 42%),
                linear-gradient(135deg, #ffffff 0%, #eef8f2 100%);
    border: 1px solid rgba(15, 122, 79, .08);
    border-radius: 1.75rem;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) !important;
}

.hero-gominoe h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.12; }
.hero-gominoe .lead { max-width: 44rem; font-size: 1.05rem; }
.hero-producto {
    background: #fff;
    border: 1px solid var(--gm-borde);
    border-radius: 1.35rem;
    box-shadow: var(--gm-sombra);
    overflow: hidden;
    padding: .65rem;
}
.hero-producto img { aspect-ratio: 3 / 2; border-radius: .95rem; display: block; object-fit: cover; width: 100%; }
.footer-logo { background: #fff; border-radius: .75rem; height: 56px; max-width: 190px; object-fit: contain; padding: .35rem .55rem; width: auto; }
.login-logo { display: block; height: 56px; margin: 0 auto .75rem; max-width: 200px; object-fit: contain; width: auto; }
.admin-logo { align-items: center; background: #fff; border-radius: .65rem; display: inline-flex; height: 42px; justify-content: center; padding: .3rem .45rem; }
.admin-logo img { height: 100%; max-width: 130px; object-fit: contain; width: auto; }

main .container > section { margin-bottom: 3.25rem; }
main .container > section:last-child { margin-bottom: 0; }

.seccion-titulo { font-weight: 800; letter-spacing: -.035em; }

.breadcrumb {
    background: transparent;
    font-size: .85rem;
    margin-bottom: 1.75rem;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before { color: #a8b6ae; }
.breadcrumb-item.active { color: var(--gm-muted); }

.card, .bg-white.rounded-4 {
    border: 1px solid rgba(227, 235, 230, .95);
    border-radius: var(--gm-radio) !important;
}

.card-producto {
    border: 1px solid var(--gm-borde);
    box-shadow: 0 .35rem 1.25rem rgba(18, 74, 51, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-producto .ratio { background: #fff; }
.card-producto .card-body { padding: 1.15rem 1.15rem 1.25rem; }
.card-producto .card-title { font-size: 1rem; line-height: 1.35; min-height: 2.7em; margin: .35rem 0 .5rem; }
.card-producto .card-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.6em; overflow: hidden; }
.card-producto small.text-gominoe { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.card-producto:hover {
    border-color: rgba(15, 122, 79, .28);
    box-shadow: var(--gm-sombra);
    transform: translateY(-5px);
}

.btn-agregar {
    align-items: center;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.object-fit-contain { object-fit: contain; }

.categoria-tile {
    background: #fff;
    border: 1px solid var(--gm-borde);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.categoria-tile:hover {
    border-color: rgba(15, 122, 79, .25);
    box-shadow: 0 .5rem 1.5rem rgba(18, 74, 51, .08);
    transform: translateY(-3px);
}

.categoria-tile-img { padding: .55rem .55rem 1rem; }
.categoria-img {
    aspect-ratio: 4 / 3;
    border-radius: .7rem;
    display: block;
    height: auto;
    margin-bottom: .75rem;
    object-fit: cover;
    width: 100%;
}

.accordion { border: 1px solid var(--gm-borde); border-radius: 1rem; overflow: hidden; }
.accordion-item { border: 0; border-bottom: 1px solid var(--gm-borde); }
.accordion-item:last-child { border-bottom: 0; }
.accordion-button { background: #fff; font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--gm-verde-claro); box-shadow: none; color: var(--gm-verde-oscuro); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(15, 122, 79, .12); }
.accordion-body { color: var(--gm-muted); }

.table > :not(caption) > * > * { padding: .85rem .75rem; }
.table thead th { border-bottom-width: 1px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }

footer {
    margin-top: 4rem !important;
    padding-bottom: 2.25rem !important;
    padding-top: 3.5rem !important;
}

footer a { text-decoration: none; }
footer a:hover { color: #fff !important; text-decoration: underline; }

.btn-flotante {
    bottom: 22px;
    right: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .6rem 1.5rem rgba(37, 211, 102, .35);
    transition: transform .15s ease;
}

.btn-flotante:hover { transform: scale(1.06); }

.carrito-tabla { min-width: 620px; }
.carrito-tabla > thead th { color: var(--gm-muted); font-size: .78rem; letter-spacing: .06em; }
.carrito-tabla > tbody tr { border-top: 1px solid var(--gm-borde); }
.carrito-img {
    background: var(--gm-fondo);
    border: 1px solid var(--gm-borde);
    border-radius: .9rem;
    height: 74px;
    object-fit: contain;
    padding: .3rem;
    width: 74px;
}
.carrito-qty { max-width: 132px; }
.carrito-qty .form-control { font-weight: 700; }
.resumen-card { position: sticky; top: 92px; }
.resumen-linea { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.resumen-total { border-top: 1px dashed var(--gm-borde); margin-top: .5rem; padding-top: .9rem; }

.checkout-card { border: 1px solid var(--gm-borde); border-radius: var(--gm-radio); box-shadow: var(--gm-sombra); }
.checkout-card .card-body { padding: 1.75rem; }
.checkout-card .form-control, .checkout-card .form-select { padding: .7rem .9rem; }
.checkout-card label.form-label { color: #52635b; font-size: .85rem; font-weight: 600; }
.metodo-pago {
    align-items: center;
    background: #fff;
    border: 1px solid var(--gm-borde);
    border-radius: .9rem;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    gap: .5rem;
    padding: .85rem;
    transition: border-color .15s ease, background .15s ease;
}
.metodo-pago:hover { border-color: var(--gm-verde); }
.metodo-pago:has(input:checked), .metodo-pago.checked { background: var(--gm-verde-claro); border-color: var(--gm-verde); color: var(--gm-verde-oscuro); }
.metodo-pago input { accent-color: var(--gm-verde); }
.cupon-box .btn { border-radius: 0 .75rem .75rem 0; }

.producto-ficha {
    background: #fff;
    border: 1px solid var(--gm-borde);
    border-radius: 1.5rem;
    box-shadow: var(--gm-sombra);
    padding: clamp(1rem, 3vw, 2rem);
}

.producto-galeria-principal {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--gm-borde);
    border-radius: 1.2rem;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: .85rem;
    position: relative;
}

.producto-galeria-principal img {
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    width: 100%;
}

.producto-etiqueta-oferta {
    background: #dc3545;
    border-radius: 999px;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .35rem .7rem;
    position: absolute;
    right: .9rem;
    text-transform: uppercase;
    top: .9rem;
}

.producto-miniaturas {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    margin-top: .85rem;
}

.galeria-miniatura {
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 2px solid var(--gm-borde);
    border-radius: .85rem;
    cursor: pointer;
    padding: .3rem;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.galeria-miniatura:hover { border-color: rgba(15, 122, 79, .45); transform: translateY(-2px); }
.galeria-miniatura.active { border-color: var(--gm-verde); box-shadow: 0 0 0 .18rem rgba(15, 122, 79, .12); }
.galeria-miniatura img { height: 100%; object-fit: contain; width: 100%; }

.producto-compra { padding-top: .25rem; }
.producto-categoria {
    color: var(--gm-verde);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.producto-presentacion {
    background: var(--gm-verde-claro);
    border-radius: 999px;
    color: var(--gm-verde-oscuro);
    font-size: .75rem;
    font-weight: 700;
    padding: .22rem .65rem;
}
.producto-titulo {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1.15;
    margin: .45rem 0 .7rem;
}
.producto-resumen { color: var(--gm-muted); font-size: 1rem; max-width: 36rem; }
.producto-precio-bloque {
    border-bottom: 1px solid var(--gm-borde);
    border-top: 1px solid var(--gm-borde);
    margin: 1.1rem 0;
    padding: .95rem 0;
}
.producto-precio { color: var(--gm-verde-oscuro); font-size: 2.15rem; font-weight: 800; line-height: 1; }
.producto-precio-anterior { color: var(--gm-muted); font-size: 1.05rem; text-decoration: line-through; }
.producto-stock { font-size: .88rem; font-weight: 600; margin: .65rem 0 0; }
.producto-stock.disponible { color: #198754; }
.producto-stock.agotado { color: #dc3545; }

.producto-compra-caja {
    background: var(--gm-fondo);
    border: 1px solid var(--gm-borde);
    border-radius: 1rem;
    padding: 1rem;
}
.producto-acciones {
    display: grid;
    gap: .65rem;
    grid-template-columns: 92px 1fr;
    margin-bottom: .65rem;
}
.producto-cantidad { font-weight: 700; text-align: center; }
.producto-btn-carrito { align-items: center; display: inline-flex; justify-content: center; }
.producto-confianza {
    color: var(--gm-muted);
    display: grid;
    font-size: .8rem;
    gap: .35rem;
    margin-top: .9rem;
}
.producto-confianza i { color: var(--gm-verde); margin-right: .3rem; }
.producto-meta {
    color: var(--gm-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .78rem;
    gap: .4rem 1.2rem;
    margin-top: 1rem;
}
.producto-meta i { color: var(--gm-verde); }

.producto-beneficios { margin-top: 2.5rem; }
.beneficio-card {
    background: #fff;
    border: 1px solid var(--gm-borde);
    border-radius: 1rem;
    height: 100%;
    padding: 1.2rem;
}
.beneficio-card i { color: var(--gm-verde); display: block; font-size: 1.55rem; margin-bottom: .45rem; }
.beneficio-card h3 { font-size: .98rem; font-weight: 800; margin-bottom: .3rem; }
.beneficio-card p { color: var(--gm-muted); font-size: .86rem; margin: 0; }

.producto-detalle-grid { margin-top: 2.4rem; }
.producto-panel {
    background: #fff;
    border: 1px solid var(--gm-borde);
    border-radius: 1.2rem;
    height: 100%;
    padding: clamp(1.25rem, 3vw, 2rem);
}
.producto-panel h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.producto-panel h3 { color: var(--gm-verde-oscuro); font-size: .95rem; font-weight: 800; margin-bottom: .35rem; }
.producto-panel p, .producto-texto { color: var(--gm-muted); font-size: .93rem; }
.producto-info dl { margin: 0; }
.producto-info dl > div {
    border-bottom: 1px dashed var(--gm-borde);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .55rem 0;
}
.producto-info dl > div:last-child { border-bottom: 0; }
.producto-info dt { color: var(--gm-tinta); font-size: .84rem; font-weight: 700; }
.producto-info dd { color: var(--gm-muted); font-size: .84rem; margin: 0; text-align: right; }
.producto-aviso {
    border-top: 1px dashed var(--gm-borde);
    color: var(--gm-muted);
    font-size: .78rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.galeria-admin-panel { border-top: 1px dashed var(--gm-borde); margin-top: .25rem; padding-top: 1rem; }
.galeria-admin-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}
.galeria-admin-item {
    aspect-ratio: 1 / 1;
    background: var(--gm-fondo);
    border: 1px solid var(--gm-borde);
    border-radius: .75rem;
    padding: .35rem;
    position: relative;
}
.galeria-admin-item img { height: 100%; object-fit: contain; width: 100%; }
.galeria-admin-item .btn {
    align-items: center;
    border-radius: 50%;
    display: flex;
    font-size: .68rem;
    height: 26px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: -.45rem;
    top: -.45rem;
    width: 26px;
}

.detalle-producto h6 { border-left: 3px solid var(--gm-verde); margin-top: 1.35rem; padding-left: .65rem; }
.detalle-producto p { margin-bottom: .4rem; }

.panel-admin { background: #f4f7f5; }
.panel-admin aside {
    background: linear-gradient(180deg, #102a20 0%, #0a1d16 100%) !important;
    min-height: 100vh;
    padding: 1.25rem .85rem !important;
}
.panel-admin aside .list-group-item { border: 0 !important; border-radius: .65rem !important; font-size: .92rem; margin-bottom: .15rem; padding: .65rem .8rem; }
.panel-admin aside .list-group-item:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.panel-admin aside .list-group-item.active { background: var(--gm-verde) !important; color: #fff !important; font-weight: 700; }
.panel-admin main { padding: 1.5rem 1.75rem; }
.panel-admin .card { border: 1px solid var(--gm-borde); }
.panel-admin .table > thead th { color: var(--gm-muted); font-size: .78rem; letter-spacing: .05em; }
.panel-admin .modal-content { border: 0; border-radius: 1.25rem; }
.panel-admin .form-control, .panel-admin .form-select { border-radius: .7rem; }

@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .nav-link { font-size: .88rem; padding-left: .45rem !important; padding-right: .45rem !important; }
    .gm-search { min-width: 140px; width: 140px; }
}

@media (max-width: 991px) {
    .gm-search { min-width: 0; width: 100%; }
    .navbar-collapse { padding-top: .75rem; }
}

@media (max-width: 576px) {
    body { font-size: 14px; }
    .hero-gominoe { border-radius: 1rem; padding: 2.25rem 1.25rem !important; }
    .hero-gominoe h1 { font-size: 2rem; }
    .card-producto img { height: 190px; }
    .resumen-card { position: static; }
    .checkout-card .card-body { padding: 1.25rem; }
    .panel-admin main { padding: 1rem; }
    .btn-flotante { bottom: 14px; right: 14px; width: 50px; height: 50px; }
    .producto-ficha { border-radius: 1rem; padding: 1rem; }
    .producto-titulo { font-size: 1.7rem; }
    .producto-precio { font-size: 1.85rem; }
    .producto-acciones { grid-template-columns: 1fr; }
    .producto-cantidad { max-width: none; }
    .producto-miniaturas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .producto-info dl > div { display: block; }
    .producto-info dd { text-align: left; }
}
