html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* El contenedor principal (hijo directo del body) crece y empuja el footer */
body > .container {
    flex: 1 0 auto;
}

.footer-publico {
    flex-shrink: 0;
}
/* publico.css — estilos de la zona pública */

.navbar-publico-nav {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-publico-nav .navbar-brand {
    font-weight: 700;
    color: var(--color-primario, #1F3864);
}

.navbar-publico-nav .nav-link {
    color: #444;
    font-weight: 500;
}

.navbar-publico-nav .nav-link:hover {
    color: var(--color-primario, #1F3864);
}

.posicion-relativa { position: relative; }

.badge-carrito {
    position: absolute;
    top: 0;
    right: -4px;
    font-size: 0.65rem;
    border-radius: 50%;
}

/* Hero */
.hero-publico {
    background: linear-gradient(135deg, #1F3864 0%, #2E75B6 100%);
    color: #fff;
    padding: 5rem 1rem;
    text-align: center;
}

.hero-contenido {
    max-width: 720px;
    margin: 0 auto;
}

.hero-contenido h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-contenido p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Ventajas */
.ventaja-card {
    padding: 1.5rem;
}

.ventaja-card i {
    font-size: 2.5rem;
    color: var(--color-secundario, #5A9A6A);
    margin-bottom: 0.75rem;
    display: block;
}

.ventaja-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ventaja-card p {
    color: #666;
    font-size: 0.95rem;
}

/* CTA */
.cta-publico {
    background-color: #F4F6FA;
    padding: 4rem 1rem;
}

.cta-publico h2 {
    font-weight: 700;
    color: var(--color-primario, #1F3864);
    margin-bottom: 0.75rem;
}

.cta-publico p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer-publico {
    background-color: var(--color-primario, #1F3864);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-pequeno {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* Catálogo (lo usaremos en la siguiente parte) */
.producto-card {
    background: #fff;
    border: 1px solid #E4E9F0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.producto-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.producto-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0F3F8;
    color: #B0BAC9;
    font-size: 3rem;
}

.producto-cuerpo {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.producto-nombre {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.producto-cat {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.producto-precio {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primario, #1F3864);
    margin-top: auto;
    margin-bottom: 0.75rem;
}

/* Ficha de producto */
.ficha-img-placeholder {
    width: 100%;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0F3F8;
    color: #B0BAC9;
    font-size: 5rem;
    border-radius: 12px;
}

.ficha-nombre {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primario, #1F3864);
    margin-bottom: 0.5rem;
}

.ficha-descripcion {
    color: #555;
    line-height: 1.6;
    margin: 1rem 0;
}

.ficha-precio {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primario, #1F3864);
    margin-top: 1rem;
}

.ficha-cantidad {
    max-width: 100px;
}

.ficha-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.ficha-miniaturas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ficha-miniatura {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}
.ficha-miniatura.activa {
    border-color: #1F3864;
}

/* Seguimiento: barra de progreso */
.seguimiento-progreso {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.seguimiento-paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.seguimiento-icono {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 2px solid #D8E0EC;
    background: #fff;
    color: #B0BAC9;
    transition: all 0.2s;
}

.seguimiento-etiqueta {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #999;
}

.seguimiento-paso.paso-activo .seguimiento-icono {
    border-color: var(--color-secundario, #5A9A6A);
    background: var(--color-secundario, #5A9A6A);
    color: #fff;
}

.seguimiento-paso.paso-activo .seguimiento-etiqueta {
    color: var(--color-primario, #1F3864);
    font-weight: 600;
}

.seguimiento-linea {
    height: 3px;
    width: 60px;
    background: #D8E0EC;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.seguimiento-linea.linea-activa {
    background: var(--color-secundario, #5A9A6A);
}