@charset "utf-8";
/* CSS Document */

:root {
    --mcd-red: #ff0000;
    --mcd-yellow: #ffc72c;
    --mcd-dark: #27251f;
    --mcd-light: #f2f2f2;
    --mcd-white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--mcd-dark);
    padding-top: 80px;
    overflow-x: hidden;
}

/* Header fijo */
header {
    background-color: var(--mcd-red);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Estilos para las categorías del menú */
.nav-link {
    color: var(--mcd-yellow) !important; /* Amarillo para categorías no seleccionadas */
    font-weight: 600;
    margin: 0 8px;
    transition: all 0.3s;
    position: relative;
    padding: 8px 12px !important;
    border-radius: 4px;
}

/* Categoría seleccionada */
.nav-link.active {
    color: var(--mcd-red) !important; /* Texto rojo cuando seleccionada */
    border-bottom: 2px solid var(--mcd-red); /* Subrayado rojo */
    background-color: transparent !important; /* Sin fondo */
}

/* Hover en categorías no seleccionadas */
.nav-link:hover {
    color: var(--mcd-red) !important; /* Rojo al pasar el mouse */
    background-color: transparent; /* Sin fondo */
}

/* Quitar el rectángulo inferior que aparece en hover */
.nav-link::after {
    content: none; /* Elimina la línea inferior animada */
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    .nav-link {
        margin: 5px 0;
        text-align: center;
        color: var(--mcd-yellow) !important; /* Amarillo en móviles */
    }
    .nav-link.active {
        color: var(--mcd-red) !important; /* Rojo cuando seleccionada */
        border-bottom: 2px solid var(--mcd-red); /* Subrayado rojo */
    }
}

.delivery-btn {
    background-color: var(--mcd-yellow);
    color: var(--mcd-dark) !important;
    border-radius: 30px;
    padding: 10px 22px !important;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.delivery-btn:hover {
    background-color: var(--mcd-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.delivery-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Video Background */
.video-background {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -1;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--mcd-white);
    padding: 30px; /* Reducido de 40px para que el contenido interno sea más compacto */
    background-color: rgba(39, 37, 31, 0.8);
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}

/* Opcional: Si quieres que el título y párrafo también se vean más compactos */
.hero-content h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 15px; /* Reducido de 20px */
    color: var(--mcd-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1; /* Hace el título más compacto */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px; /* Reducido de 30px */
    line-height: 1.3; /* Compacta el párrafo */
}

/* Responsividad: En móviles, reduce aún más si es necesario */
@media (max-width: 768px) {
    .video-background {
        min-height: 70vh; /* Más bajo en móviles */
    }
    .hero-content {
        padding: 20px; /* Padding más pequeño en móviles */
        margin: 0 auto;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

.btn-hero {
    background-color: var(--mcd-red); /* Siempre amarillo */
    color: var(--mcd-yellow); /* Texto oscuro para contraste */
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none; /* Sin borde */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
	width: 40%;
	text-align:center;
	margin: 0 auto;
}

.btn-hero:hover {
    background-color: var(--mcd-yellow); /* Sigue amarillo al hover */
    color: var(--mcd-dark); /* Mantiene texto oscuro */
    transform: scale(1.05); /* Mismo efecto de escalado para interactividad */
	color: var(--mcd-red);
}

.btn-hero i {
    transform: rotate(90deg);
}

/* Secciones */
section {
    padding: 80px 0;
}

.section-title {
    color: var(--mcd-red);
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5rem;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--mcd-red), var(--mcd-yellow));
    margin: 15px auto;
    border-radius: 2px;
}

/* Productos */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.5s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 700;
    color: var(--mcd-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Estilo para el precio en las tarjetas de productos */
.price {
    color: var(--mcd-red); /* Rojo McDonald's */
    font-weight: 700;
    font-size: 1.6rem; /* Más grande que el original (1.4rem) */
    margin-bottom: 15px;
    text-align: center; /* Centrado como el botón */
}

.btn-add-cart {
    background-color: var(--mcd-red);
    color: white;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    border: none;
}

.btn-add-cart:hover {
    background-color: var(--mcd-yellow);
    color: var(--mcd-dark);
}

/* Modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background-color: var(--mcd-red);
    color: white;
    border-bottom: 3px solid var(--mcd-yellow);
}

.modal-title {
    font-weight: 700;
}

.modal-option-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-option-title {
    font-weight: 700;
    color: var(--mcd-red);
    margin-bottom: 10px;
}

.form-check-input:checked {
    background-color: var(--mcd-red);
    border-color: var(--mcd-red);
}

.option-price {
    color: #28a745;
    font-weight: 600;
}

.btn-modal-add {
    background-color: var(--mcd-red);
    color: white;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
}

.btn-modal-add:hover {
    background-color: var(--mcd-yellow);
    color: var(--mcd-dark);
}

/* Carrito */
.cart-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--mcd-red);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
}

.cart-bubble:hover {
    transform: scale(1.1);
    background-color: var(--mcd-yellow);
    color: var(--mcd-dark);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--mcd-yellow);
    color: var(--mcd-dark);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Animación para el carrito */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    
    .delivery-btn {
        margin: 10px 0;
        justify-content: center;
    }
}


/* Estilos para el selector de cantidad en el modal */
.quantity-selector .input-group {
    border-radius: 20px;
    overflow: hidden;
}

.quantity-selector .btn-minus,
.quantity-selector .btn-plus {
    background-color: var(--mcd-red);
    color: var(--mcd-white);
    border: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.quantity-selector .btn-minus:hover,
.quantity-selector .btn-plus:hover {
    background-color: var(--mcd-yellow);
    color: var(--mcd-dark);
}

.quantity-selector .form-control {
    border: 1px solid var(--mcd-red);
    text-align: center;
    font-weight: 600;
    color: var(--mcd-dark);
    background-color: var(--mcd-light);
}

.quantity-selector .form-control:focus {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    border-color: var(--mcd-yellow);
}

/* Asegurar que el input no sea demasiado pequeño en móviles */
@media (max-width: 576px) {
    .quantity-selector .input-group {
        max-width: 120px;
    }
    .quantity-selector .btn-minus,
    .quantity-selector .btn-plus {
        padding: 6px 10px;
        font-size: 1rem;
    }
}

/* Estilos para el modal-footer */
.modal-footer {
    display: flex;
    justify-content: space-between; /* Revisar Orden izquierda, Agregar al Carrito derecha */
    gap: 10px; /* Espacio entre botones */
    align-items: center; /* Alineación vertical */
}

/* Estilo para el botón Revisar Orden */
.btn-review-order {
    background-color: var(--mcd-yellow); /* Amarillo McDonald's */
    color: var(--mcd-dark);
    border-radius: 30px; /* Redondeado */
    padding: 12px 30px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
}

.btn-review-order:hover {
    background-color: var(--mcd-red); /* Cambia a rojo al hover */
    color: var(--mcd-white);
}

/* Estilo para el botón Agregar al Carrito */
.btn-modal-add {
    background-color: var(--mcd-red);
    color: var(--mcd-white);
    border-radius: 30px; /* Redondeado */
    padding: 12px 30px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
}

.btn-modal-add:hover {
    background-color: var(--mcd-yellow);
    color: var(--mcd-dark);
}

/* Estilos para el selector de cantidad */
.quantity-selector .input-group {
    border-radius: 20px;
    overflow: hidden;
}

.quantity-selector .btn-minus,
.quantity-selector .btn-plus {
    background-color: var(--mcd-red);
    color: var(--mcd-white);
    border: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.quantity-selector .btn-minus:hover,
.quantity-selector .btn-plus:hover {
    background-color: var(--mcd-yellow);
    color: var(--mcd-dark);
}

.quantity-selector .form-control {
    border: 1px solid var(--mcd-red);
    text-align: center;
    font-weight: 600;
    color: var(--mcd-dark);
    background-color: var(--mcd-light);
}

.quantity-selector .form-control:focus {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    border-color: var(--mcd-yellow);
}

/* Estilos para checkboxes como switches */
.form-check-input.option-checkbox {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: #ccc; /* Gris para apagado */
    border-radius: 20px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-check-input.option-checkbox:checked {
    background-color: var(--mcd-red); /* Rojo para encendido */
}

.form-check-input.option-checkbox::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--mcd-white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.form-check-input.option-checkbox:checked::before {
    transform: translateX(20px);
}

/* Ajustar el label para alinearse con el switch */
.form-check-label {
    margin-left: 10px;
    line-height: 20px;
}

/* Opcional: Estilo para radios como switches (si quieres aplicarlo) */
.form-check-input.option-radio {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc; /* Gris para apagado */
    border-radius: 20px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
	flex-wrap: nowrap;
}

.form-check-input.option-radio:checked {
    background-color: var(--mcd-red); /* Rojo para encendido */
}

.form-check-input.option-radio::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--mcd-white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.form-check-input.option-radio:checked::before {
    transform: translateX(20px);
}

/* Asegurar que los botones no se apilen en pantallas pequeñas */
@media (max-width: 576px) {
    .modal-footer {
        flex-wrap: nowrap; /* Evita que se apilen */
    }
    .btn-review-order, .btn-modal-add {
        padding: 10px 20px; /* Más pequeños en móviles */
        font-size: 0.9rem;
    }
    .quantity-selector .input-group {
        max-width: 120px;
    }
    .quantity-selector .btn-minus,
    .quantity-selector .btn-plus {
        padding: 6px 10px;
        font-size: 1rem;
    }
    .form-check-input.option-checkbox,
    .form-check-input.option-radio {
        width: 36px;
        height: 18px;
    }
    .form-check-input.option-checkbox::before,
    .form-check-input.option-radio::before {
        width: 14px;
        height: 14px;
        top: 2px;
        left: 2px;
    }
    .form-check-input.option-checkbox:checked::before,
    .form-check-input.option-radio:checked::before {
        transform: translateX(18px);
    }
}