/**
 * Esencia de Loto - Estilos Principales
 */

/* Variables */
:root {
    --primary-color: #6f42c1;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fff;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: white;
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Category Icons */
.category-icon i {
    font-size: 3rem;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* Timeline para seguimiento de pedidos */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
    border-left: 2px solid #dee2e6;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-item i {
    position: absolute;
    left: -0.6rem;
    top: 0;
    background: white;
    padding: 0.2rem;
}

.timeline-item.active {
    border-left-color: #0d6efd;
    font-weight: 600;
}

.timeline-item.active i {
    color: #0d6efd;
}

.timeline-item.completed {
    border-left-color: #198754;
}

.timeline-item.completed i {
    color: #198754;
}

/* Timeline vertical para admin */
.timeline-vertical {
    position: relative;
}

.timeline-vertical .timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* Badges personalizados */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Botones */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Sticky Footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    font-size: 0.875rem;
    margin-top: auto;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

footer a:hover {
    color: white !important;
}

footer .container-fluid {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Alertas */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Formularios */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Tablas */
.table {
    background: white;
}

.table thead {
    background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        padding: 2rem 0;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Utilidades */
.text-muted {
    color: #6c757d !important;
}
.text-muted-p{
    color: white;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Mejoras de accesibilidad */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skeleton loading (opcional) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Banner de WhatsApp */
.contact-banner-section {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.contact-banner-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.contact-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.contact-text-content {
    flex: 1;
}

.contact-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.contact-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #25D366;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    background: #f8f9fa;
    color: #128C7E;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Animación de pulso para el botón */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
    }
}

.btn-whatsapp {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-banner-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }

    .contact-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .btn-whatsapp {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-banner-section {
        border-radius: 0.5rem;
    }

    .contact-title {
        font-size: 1.25rem;
    }

    .contact-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }
}