/* =========================================
   CARTA DIGITAL - index.css
   Diseño moderno, limpio y responsive
   ========================================= */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #e2e5e6;
    --white: #ffffff;
    --success: #22c55e;
    --info: #3b82f6;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 16px;
    --transition: all 0.3s ease;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.55) 100%),
        url('../img/logo/index-login-2.jpg') center/cover no-repeat;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* =========================================
   MÓVIL: Desplazar el Hero para evitar solapamiento
   ========================================= */
@media (max-width: 991px) {
    .hero {
        padding-top: 150px !important;
    }
}

/* Buttons */
.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    padding: 14px 32px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 30px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* User cards */
.user-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
    height: 100%;
}

.user-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: white;
}

.user-avatar.admin { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.user-avatar.chef { background: linear-gradient(135deg, #22c55e, #16a34a); }
.user-avatar.staff { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* Features */
.feature-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Stats */
.stat-number {
    color: var(--primary);
    line-height: 1;
}

/* Card */
.card { border-radius: var(--radius); }

/* Animations */
.animate__animated { animation-duration: 0.8s; }

/* Testimonials */
.testimonial-box {
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid rgba(99, 102, 241, 0.15);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.stars i {
    margin: 0 2px;
    font-size: 0.8rem;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 36px;
    opacity: 0.5;
    transition: var(--transition);
    filter: invert(0.4);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    filter: invert(0);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    padding: 8px;
    background-size: 50% 50%;
}

/* Indicators */
.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--gray);
    opacity: 0.3;
    border: none;
    transition: var(--transition);
}

.carousel-indicators button.active {
    background-color: var(--primary);
    opacity: 1;
    width: 20px;
    border-radius: 10px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

@media (min-width: 992px) {
    .footer .col-lg-4:nth-child(2) {
        text-align: center;
    }

    .footer .col-lg-4:nth-child(3) {
        text-align: right;
    }

    .footer .col-lg-4:nth-child(2) ul {
        display: inline-block;
        text-align: left;
    }
}

.footer a:hover {
    color: white;
}

.hover-white:hover {
    color: white;
    opacity: 1;
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
    z-index: 1030;
    transition: var(--transition);
    padding: 0.75rem 0;
}

.navbar-scrolled {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

@media (max-width: 991px) {

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        padding: 1rem 1.5rem;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 1025;
        margin-top: 0.5rem;
        animation: slideDown 0.3s ease;
    }

    .navbar-collapse .d-flex {
        flex-direction: column;
        width: 100%;
    }

    .navbar-collapse .btn {
        width: 100%;
        margin: 0.25rem 0;
        text-align: center;
    }

    .hero {
        z-index: 1;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar-brand img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}
