:root {
    --color-primary: #1A2B48;
    /* Deep Navy Blue */
    --color-secondary: #0F1A2E;
    /* Darker Navy */
    --color-accent: #C5A059;
    /* Elegant Gold */
    --color-bg: #F8F9FA;
    /* Clean Light Gray */
    --color-text: #2D3748;
    /* Dark Gray for text */
    --color-white: #FFFFFF;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --color-whatsapp: #25D366;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

header img {
    max-width: 240px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.subtitulo {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 400;
    margin-top: 5px;
}

nav {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: var(--color-primary);
    text-decoration: none;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    background-color: #fcfcfc;
}

/* Sections */
section {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease;
    padding-bottom: 100px;
    /* Space for floating button */
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: var(--color-primary);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin: 15px auto 0;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    color: #a0aec0;
    font-size: 1.2rem;
}

#busqueda {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--color-text);
    outline: none;
}

#busqueda:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

/* Category Buttons (Tiles) */
#contenedor-categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-categoria {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    width: 180px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-categoria::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.btn-categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.btn-categoria:hover::after {
    width: 100%;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.btn-categoria i {
    font-size: 1.4rem;
}

.btn-categoria:hover .icon-circle {
    background: var(--color-primary);
    color: var(--color-accent);
}

.cat-titulo {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-count {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 2001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: var(--color-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.btn-close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-item-name {
    font-size: 0.95rem;
    color: var(--color-text);
    flex: 1;
    margin-right: 10px;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-remove-item:hover {
    transform: scale(1.1);
}

.empty-cart-msg {
    text-align: center;
    color: #a0aec0;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.empty-cart-msg i {
    font-size: 3rem;
    opacity: 0.5;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.btn-whatsapp-cart {
    width: 100%;
    background: var(--color-whatsapp);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-whatsapp-cart:hover {
    background: #1ebc57;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Mobile Cart */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Product Product Grid & Cards - Elegant Redesign */
/* Product Product Grid & Cards - Elegant Redesign */
/* Product Grid & Cards - Elegant Redesign */
/* Product Grid & Cards - Elegant Redesign */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.tarjeta-producto {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border: 1px solid #e2e8f0;
    /* More visible border */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tarjeta-producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(197, 160, 89, 0.2);
}

.tarjeta-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tarjeta-producto:hover::before {
    opacity: 1;
}

.info-producto-simple {
    margin-bottom: 25px;
    flex-grow: 1;
}

.info-producto-simple h4 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 700;
    line-height: 1.5;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.acciones-producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
}

.btn-agregar-carrito,
.btn-solicitar {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: none;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Button "Incluir" */
.btn-agregar-carrito {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-agregar-carrito:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 43, 72, 0.2);
}

.btn-agregar-carrito i {
    font-size: 1rem;
}

/* Button "Solicitar" - WhatsApp Style */
.btn-solicitar {
    background-color: var(--color-whatsapp);
    color: white;
    border: 1px solid var(--color-whatsapp);
}

.btn-solicitar:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Floating Cart Button */
.btn-flotante-carrito {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 50px;
    padding: 16px 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: none;
    /* Controlled by JS */
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-flotante-carrito:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--color-accent);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-flotante-carrito i {
    font-size: 1.4rem;
}

.texto-flotante {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.contador {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e53e3e;
    /* Red notification color */
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* Back Button */
.btn-regresar {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-regresar:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateX(-5px);
}

/* Errors & Loading */
.loading,
.mensaje-vacio,
.mensaje-error {
    text-align: center;
    padding: 40px;
    width: 100%;
    color: #718096;
}

.mensaje-error {
    color: #e53e3e;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: #cbd5e0;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav {
        flex-wrap: wrap;
    }

    nav a {
        padding: 12px 10px;
        font-size: 0.9rem;
        flex: 1 1 auto;
        text-align: center;
    }

    .grid-productos {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 10px 0;
    }

    .tarjeta-producto {
        padding: 15px;
    }

    .btn-categoria {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 20px;
        text-align: left;
    }

    .icon-circle {
        margin-right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cat-titulo {
        font-size: 1rem;
    }

    .btn-categoria::after {
        display: none;
    }

    .btn-flotante-carrito {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-flotante-carrito i {
        font-size: 1.2rem;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Login feedback */
.login-mensaje {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #c53030;
}

/* Login página completa */
#login.active {
    max-width: 100%;
    padding: 0;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
    gap: 0;
    min-height: calc(100vh - 200px);
    align-items: stretch;
    margin: 0 auto;
    max-width: 1100px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 26, 46, 0.18);
}

.login-brand {
    background: linear-gradient(145deg, var(--color-primary) 0%, #0f1f3d 55%, var(--color-secondary) 100%);
    color: white;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.25), transparent 50%);
    pointer-events: none;
}

.login-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    position: relative;
    z-index: 1;
}

.login-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.login-brand .login-title::after {
    display: none;
}

.login-tagline {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

.login-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.login-benefits i {
    color: var(--color-accent);
}

.login-card {
    background: var(--color-white);
    padding: 2rem 1.75rem 2.25rem;
    display: flex;
    flex-direction: column;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.login-tab {
    padding: 0.65rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.login-tab.active {
    border-color: var(--color-accent);
    background: white;
    color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.login-subtabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.login-subtab {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    background: #edf2f7;
    font-weight: 600;
    font-size: 0.88rem;
    color: #4a5568;
    cursor: pointer;
}

.login-subtab.active {
    background: var(--color-primary);
    color: white;
}

.login-panel {
    flex: 1;
}

.login-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0.85rem 0 0.35rem;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.login-btn-primary {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary), #243a5c);
    color: white;
    box-shadow: 0 6px 18px rgba(26, 43, 72, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(26, 43, 72, 0.35);
}

.login-hint {
    font-size: 0.88rem;
    color: #718096;
    margin: 0 0 1rem;
    line-height: 1.45;
}

.login-phone-row {
    display: flex;
    align-items: stretch;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.login-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: #edf2f7;
    font-weight: 700;
    color: var(--color-primary);
    border-right: 2px solid #e2e8f0;
}

.login-phone-input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.login-phone-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.login-btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.recaptcha-wrap {
    min-height: 0;
}

@media (max-width: 800px) {
    .login-page {
        grid-template-columns: 1fr;
        min-height: auto;
        margin: 0 12px;
    }

    .login-brand {
        padding: 1.75rem 1.5rem;
    }
}

.admin-hint-imagen {
    font-size: 0.85rem;
    color: #718096;
    margin: -0.35rem 0 1rem;
    line-height: 1.4;
}

#imagenArchivoProducto {
    width: 100%;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Home (ecommerce-style hero, sin quitar contenido base) */
#inicio {
    max-width: 1100px;
}

.home-hero {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    gap: 2.5rem;
    align-items: center;
    padding: 2rem 1.5rem 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--color-white) 0%, #eef2f7 45%, #f8fafc 100%);
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(197, 160, 89, 0.18), transparent 45%);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(26, 43, 72, 0.08);
    border: 1px solid rgba(26, 43, 72, 0.12);
}

#inicio h2 {
    text-align: left;
    margin-bottom: 1rem;
}

#inicio h2::after {
    margin: 12px 0 0;
}

.home-lead {
    text-align: left;
    max-width: 36rem;
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--color-text);
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-cta-primary {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), #243a5c);
    box-shadow: 0 8px 22px rgba(26, 43, 72, 0.28);
}

.home-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 43, 72, 0.35);
    color: var(--color-white);
}

.home-cta-ghost {
    color: var(--color-primary);
    background: var(--color-white);
    border: 2px solid rgba(26, 43, 72, 0.15);
}

.home-cta-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.home-hero-panel {
    position: relative;
    z-index: 1;
    min-height: 200px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
}

.home-orbit {
    position: absolute;
    width: 140%;
    height: 140%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: homeSpin 28s linear infinite;
}

@keyframes homeSpin {
    to {
        transform: rotate(360deg);
    }
}

.home-stat {
    position: relative;
    text-align: center;
    color: var(--color-white);
    padding: 1.5rem;
}

.home-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-accent);
}

.home-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

.home-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.home-pillar {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.2rem;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.home-pillar-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(197, 160, 89, 0.15);
    color: var(--color-primary);
}

.home-pillar-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--color-text);
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.25rem;
    }

    #inicio h2,
    .home-lead {
        text-align: center;
    }

    #inicio h2::after {
        margin: 12px auto 0;
    }

    .home-cta-row {
        justify-content: center;
    }

    .home-hero-panel {
        min-height: 160px;
    }

    .home-pillars {
        grid-template-columns: 1fr;
    }
}

/* Catálogo — barra volver */
#nav-catalogo {
    display: none;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

#nav-catalogo button {
    cursor: pointer;
}

/* Tarjetas ecommerce (catálogo) */
.tarjeta-ecommerce {
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.tarjeta-ecommerce .tarjeta-producto-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #edf2f7;
}

.tarjeta-ecommerce .tarjeta-producto-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tarjeta-ecommerce:hover .tarjeta-producto-img-wrap img {
    transform: scale(1.04);
}

.tarjeta-ecommerce .tarjeta-producto-body {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.tarjeta-ecommerce .tarjeta-producto-titulo {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--color-primary);
}

.tarjeta-precio {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.tarjeta-desc-admin {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #4a5568;
    max-height: 4.5em;
    overflow: hidden;
}

.tarjeta-acciones-admin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.btn-admin-editar,
.btn-admin-eliminar {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-admin-editar {
    background: #edf2f7;
    color: var(--color-primary);
}

.btn-admin-editar:hover {
    background: var(--color-primary);
    color: white;
}

.btn-admin-eliminar {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.btn-admin-eliminar:hover {
    background: #c53030;
    color: white;
    border-color: #c53030;
}

.tarjeta-ecommerce .acciones-producto-public {
    margin-top: 0.5rem;
}

/* Admin panel */
#admin .admin-aviso {
    text-align: center;
    color: #2f855a;
    font-weight: 600;
    margin: -1.5rem auto 1.5rem;
}

.admin-form-card {
    max-width: 560px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-card);
}

.admin-form-card h3 {
    margin: 0 0 1rem;
    text-align: left;
    font-size: 1.15rem;
    color: var(--color-primary);
}

.admin-form-card h3::after {
    display: none;
}

.admin-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0.75rem 0 0.35rem;
}

.admin-form-card input[type="text"],
.admin-form-card input[type="number"],
.admin-form-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.admin-form-card textarea {
    resize: vertical;
    min-height: 88px;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.admin-form-actions button {
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    background: var(--color-primary);
    color: white;
}

.btn-admin-secundario {
    background: #edf2f7 !important;
    color: var(--color-primary) !important;
    border: 1px solid #e2e8f0 !important;
}

.admin-lista-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.admin-lista-wrap > h3 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.admin-lista-wrap > h3::after {
    margin-left: 0;
}

.admin-lista-hint {
    font-size: 0.9rem;
    color: #718096;
    margin: 0 0 1rem;
}

.admin-vacio {
    padding: 1.5rem;
    text-align: center;
    color: #718096;
    background: #f7fafc;
    border-radius: var(--radius);
    border: 1px dashed #cbd5e0;
}

.admin-tabla-productos {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid #e2e8f0;
}

.admin-tabla-productos th,
.admin-tabla-productos td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.admin-tabla-productos th {
    background: var(--color-primary);
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-th-acciones {
    width: 200px;
    text-align: right !important;
}

.admin-td-acciones {
    text-align: right;
    white-space: nowrap;
}

.btn-admin-mini {
    padding: 0.4rem 0.65rem;
    margin-left: 0.35rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-admin-mini-editar {
    background: #edf2f7;
    color: var(--color-primary);
}

.btn-admin-mini-eliminar {
    background: #fff5f5;
    color: #c53030;
}

@media (max-width: 640px) {
    .admin-tabla-productos th:nth-child(2),
    .admin-tabla-productos td:nth-child(2) {
        display: none;
    }

    .tarjeta-acciones-admin {
        grid-template-columns: 1fr;
    }
}