* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}
/* Estilos para los modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 600px;
    animation: slideIn 0.3s;
}

.scannerModal:hover {
    filter: drop-shadow(2px 4px 6px black);
}

.scannerModal {
    background: none;
    border: none;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: black;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Botón de scanner */
.scanner-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.scanner-btn:hover {
    background-color: #f0f0f0;
}

.scanner-btn img {
    width: 20px;
    height: 20px;
}

.deleteProduct:hover {
    filter: drop-shadow(2px 4px 6px black);
}
.deleteProduct {
    margin: auto;
    background: none;
    border: none;
    color: red;
    width: 100%;
}
.header {
    background: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-container img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex: 1 1 auto;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #333;
}

.login-btn svg {
    width: 20px;
    height: 20px;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    left: 0;
    right: 0;
    opacity: 0;
    position: absolute;
    padding-bottom: 50px;
}

.container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#main {
    display: block;
}

.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section.visible .container {
    position: inherit;
    opacity: 1;
    visibility: visible;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature h3 {
    margin-bottom: 15px;
}

.feature p {
    margin-bottom: 15px;
}

.pricing {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.plan {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan:hover {
    transform: translateY(-10px);
}

.plan h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    align-self: center;
}

.cta-button:hover {
    background: #333;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.google-btn:hover {
    background-color: #333;
}

.google-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Estilos adicionales para la gestión de productos */

.main-content {
    margin-top: 150px;
    padding: 40px 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 20px;
    background: #f1f3f5;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tab:hover {
    background: #e9ecef;
}

.tab.active {
    background: #1a1a1a;
    color: white;
}

.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.product-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 1rem;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.table-responsive {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.product-table th,
.product-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.product-table th {
    background-color: #f1f3f5;
    font-weight: 600;
}

.product-table tr:hover {
    background-color: #f8f9fa;
}

.product-item {
    margin-top: 5px;
    padding-left: 5px;
}

.product-item:hover {
    background: gainsboro;
}

#product-results {
    border: 1px solid;
    border-radius: 4px;
    padding: 0px 0px 4px 0px;
    display: none;
    position: sticky;
    background: white;
    width: 100%;
    padding-right: 20px;
}

.alert.alert-info {
    text-align: center;
    color: red;
}

.expand {
    background: white;
    border: none;
    display: none;
    align-self: end;
}
.form-section input {
    color: white;
}
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 1rem;
}
.form-group input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.form-group input[type=number]{
    -moz-appearance: textfield;
}

img.expandImg:hover {
    filter: drop-shadow(2px 4px 6px black);
    transition: 0.3s all;
}

.title {
    text-align: center;
    margin-bottom: 50px;
}

.title h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.title p {
    color: #666;
    font-size: 1.2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 100px;
}

.plan-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.plan-card.featured {
    border: 2px solid #1a1a1a;
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.plan-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #444;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background: #333;
}

.salesChevron:hover {
    filter: opacity(0.5);
    transition: 0.3s all;
}

.faq-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #1a1a1a;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

#contacto {
    background: #141414;
}

.contact-container {
    max-width: 1200px;
    margin: auto;
    margin-top: 40px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: white;
    justify-content: center;
    background: #141414;
}

.info-section {
    padding: 40px 20px;
}

.info-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.info-section p {
    color: #b5b5b5;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #dbdbdb;
}

.feature-item::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.form-section {
    padding: 40px 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-section input,
.form-section textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 16px;
    transition: border-color 0.3s;
    background: transparent;
}

.form-section input:focus,
.form-section textarea:focus {
    outline: none;
    border-bottom-color: #000;
}

.form-section textarea {
    height: 100px;
    resize: vertical;
}

.form-section .btn {
    background-color: #dddddd;
    color: #141414;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.form-section .btn:hover {
    background-color: #333;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #000;
    color: white;
}

.graphs {
    width: auto;
    text-align: center;
}

.graph{
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        margin: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/*Profile Dahsboard*/
.profile-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.profile-info p {
    margin: 5px 0;
    color: #666;
}

.profile-plan {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #495057;
}

.profile-fields {
    display: grid;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

.input-group input {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
}
a.status {
    border: 1px solid;
    padding: 2px;
    border-radius: 10px;
}

button.delete-btn:hover {
    filter: drop-shadow(2px 4px 6px black);
}
button.delete-btn {
    color: red;
    font-weight: bold;
    border: none;
    background: none;
    width: 100%;
}
.status-pending {
    color: orange;
    font-weight: bold;
}

.status-success {
    color: green;
    font-weight: bold;
}

.status-cancelled {
    color: red;
    font-weight: bold;
}

.status-authorized {
    color: rgb(179, 176, 0);
    font-weight: bold;
}

@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-pic {
        width: 80px;
        height: 80px;
    }
}

/* Loader */
.loader {
    display: none;
    text-align: center;
    margin: 20px 0;
}
.loader div {
    width: 12px;
    height: 12px;
    margin: 3px;
    display: inline-block;
    background-color: #323232;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loader div:nth-child(1) { animation-delay: -0.32s; }
.loader div:nth-child(2) { animation-delay: -0.16s; }
.loader div:nth-child(3) { animation-delay: 0; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.searchBox {
    margin-bottom: 10px;
    border: none;
    border-bottom: 1px solid #000000;
    padding: 7px 30px 5px 5px;
}

/* Animación de tablas */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        text-align: center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-toggle {
    display: none;
}
#camera-stream {
    width: auto;
    height: auto;
    border: 1px solid black;
    max-width: 365px;
}

#camera-stream {
    width: 100%;
    height: auto;
    border: 1px solid black;
    position: absolute;
    max-width: 365px;
}


#scanner-frame {
    width: 55%;
    height: 50%;
    border: 5px solid green;
    background: rgba(0, 255, 0, 0.3);
    z-index: 10;
}

#barcode-result {
    width: 100%;
    padding: 10px;
    font-size: 20px;
    text-align: center;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .pricing {
        flex-direction: column;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero {
        margin-top: 70px;
    }

    #camera-stream {
        max-width: 280px;
        width: -webkit-fill-available;
    }
    #scanner-frame {
        width: 50%;
    }

    #camera-stream {
        max-width: 280px;
    }
    #scanner-frame {
        width: 50%;
    }

}
