/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo de la página */
body {
    background-image: url('images/5399717.jpg'); /* Ajusta el nombre de tu imagen */
    background-size: cover; /* Hace que la imagen cubra toda la pantalla */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* Hace que la imagen no se mueva al hacer scroll */
    margin: 0;
    padding-top: 80px; /* Añadimos un espacio extra por el header fijo */
    height: 100vh; /* Ocupa el 100% de la altura de la ventana */
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    font-family: Arial, sans-serif; /* Establece una fuente común */
    overflow-x: hidden; /* Evitar desplazamientos horizontales */
}

/* Header - Barra de Navegación */
header {
    width: 100%;
    background-color: rgba(249, 249, 249, 0.6); /* Fondo blanco con opacidad */
    padding: 20px 0;
    color: white;
    position: fixed; /* Fijar el header en la parte superior */
    top: 0;
    left: 0;
    z-index: 10; /* Asegura que se quede encima de otros elementos */
    display: flex;
    justify-content: center; /* Centra el contenido del header */
}

.navbar {
    display: flex;
    justify-content: space-between; /* Espacio entre logo y enlaces */
    align-items: center;
    width: 100%; /* Asegura que ocupe todo el ancho */
    max-width: 1200px; /* Limita el ancho máximo */
    padding: 0 20px;
}

.navbar .logo {
    flex-grow: 1;
    text-align: center;
}

.navbar .logo a {
    font-size: 28px;
    font-weight: 600;
    color: #f9f9f9; /* Blanco para el logo */
    text-decoration: none;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 25px;
    background-color: #495057;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navbar ul li a:hover {
    background-color: #6c757d;
    transform: scale(1.05);
}

/* Otros estilos */
h2 {
    font-size: 32px;
    color: #f9f9f9;
    margin-bottom: 20px;
    font-weight: 700;
}

.info-text {
    font-size: 16px;
    color: #f9f9f9;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 14px;
    color:#f9f9f9;
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #d1d1d1;
    background-color: #f9f9f9;
    transition: border 0.3s ease, background-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #f1c40f; /* Dorado al hacer foco */
    outline: none;
    background-color: white;
}

/* Botón de pago */
button.pay-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #f1c40f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button.pay-button:hover {
    background-color: #e1b60f;
    transform: scale(1.05);
}

/* Mensaje de error */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
}

/* Resumen del pedido */
.order-summary {
    width: 100%;
    max-width: 400px;
    padding: 25px;
    background-color: rgba(250, 250, 250, 0.8); /* Fondo semitransparente */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.order-summary h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.order-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.order-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.order-item div {
    flex: 1;
}

.order-item p {
    font-size: 14px;
    color: #555;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.order-total p {
    color: #28a745;
}




/* Estilos para el formulario de consulta */
.consulta {
    max-width: 600px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo semitransparente */
    padding: 20px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.consulta h2 {
    text-align: center;
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

button.consulta-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #4CAF50; /* Verde para el botón */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.consulta-button:hover {
    background-color: #45a049;
}
















/* Responsividad */
@media (max-width: 768px) {
    /* Header en dispositivos móviles */
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    /* Resumen de pedido */
    .order-summary {
        width: 100%;
        padding: 15px;
        margin-top: 20px;
    }

    /* Ajustes para los inputs */
    input[type="text"] {
        font-size: 14px;
        padding: 12px;
    }

    button.pay-button {
        font-size: 16px;
    }
}
