@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap");



body {
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    background-color: black;
    color: #fff;
}

header {
    padding: 20px;
    padding-top: 80px;
    position: relative;
    font-family: "Orbitron", sans-serif;
}

.page-header {
    font-family: "Orbitron", sans-serif;
}

.logo-image {
    height: 20vh;
    width: auto;
    display: block;
}

.site-name {
    justify-self: start;
}

.site-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    font-family: "Orbitron", sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 16px;
}

header nav{
    display: grid;
    grid-template-columns: auto auto;
    background-color: transparent;
    color: #fff;
    align-items: center;
    text-decoration: none;
    margin-top: 2.5%;
    margin-left: 0%;
    margin-right: 0%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    font-family: "Orbitron", sans-serif;
}

header .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

main{
    padding: 20px;
    background-color: transparent;
}

.main-content {
    text-align: center;

}
nav ul li {
    margin-right: 20px;
    a {
        color: #fff;
    }
}

nav a {
    text-decoration: none;
    font-family: "Orbitron", sans-serif;
}

.movies-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;

}

.movies-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.movie-row {
    display: grid;
    grid-template-columns: repeat(3, 20vw);
    gap: 20px;

}

.movie-details {
    color: black;
}
.movie-row.row-two {
    grid-template-columns: repeat(2, 20vw);

}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(2, 22vw);
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.producto-card {
    background-color: whitesmoke;
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #111;
    min-height: 55vh;
    max-width: 22vw;
    box-shadow: 0 6px 22px rgb(255, 255, 255);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 34px rgb(148, 0, 185);
}

.producto-card img {
    width: 100%;
    height: 40vh;
    background-color: rgb(83, 83, 83);
    border-bottom: #000 solid 2px;
    object-fit: cover;
    display: block;
}

.producto-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.producto-content h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #111;
}

.producto-content p {
    margin: 0;
    color: #333;
}

.producto-price {
    margin-top: auto;
    font-weight: bold;
    color: #111;
}

.producto-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-1px);
}

.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #000;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.cart-fab-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #80f04d;
    color: #000000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid #fff;
}

.cart-modal {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-height: 70vh;
    background-color: #1a1a1a;
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
}

.clear-cart-btn-class {
    background-color: #ff0000;
    color: #000000;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
}
.btn-primary {
    background-color: #007bff;
    color: #000000;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.clear-cart-btn-class:hover {
    background-color: #1eff00;
    color: #000000;
    transform: translateY(-1px);
}
.btn-primary:hover {
    background-color: #1eff00;
    color: #000000;
    transform: translateY(-1px);
}

.cart-modal-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.cart-modal-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-modal-footer p {
    margin: 0;
    color: #fff;
    font-weight: bold;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-info strong {
    font-size: 0.95rem;
}

.cart-item-info span {
    font-size: 0.85rem;
    color: #aaa;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.cart-item-actions button {
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.cart-item-actions button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-empty {
    margin: 0;
    color: #999;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.cart-panel {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    color: #fff;
}

.cart-panel h2 {
    margin: 0 0 14px 0;
    font-size: 1.2rem;
}

.cart-items {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.cart-item-actions button {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
}

.cart-item-actions button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-empty {
    margin: 0;
    color: #cfcfcf;
}

.loading-message {
    color: #fff;
    text-align: center;
    width: 100%;
}

.movie-card {
    background-color: whitesmoke;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: black;
}
.movie-card:hover {
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 30px rgb(148, 0, 185);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.movie-poster {
    background-color: transparent;
    width: 20vw;
    height: 65vh;
    margin: 0%;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px 4px 0 0;
}

.movie-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.movie-content h3 {
    margin: 0;
    font-size: 1.1rem;
}

.movie-meta {
    margin-top: auto;
    font-size: 0.9rem;
    color: #555;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.btn-info-api {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-info-api:hover {
    background-color: #555;
    transform: scale(1.05);
}

.btn-info-api:active {
    transform: scale(0.98);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 32px;
}

.modal-body h2 {
    margin: 0 0 16px 0;
    font-family: "Orbitron", sans-serif;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 12px;
}

.movie-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.movie-details p {
    margin: 0;
    line-height: 1.6;
}

.movie-details strong {
    color: #333;
}

.opening-crawl {
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
    padding: 12px;
    border-left: 4px solid #333;
    margin-top: 8px !important;
}

.characters-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

.characters-section h3 {
    margin: 0 0 10px 0;
    font-family: "Orbitron", sans-serif;
    color: #333;
}

.characters-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.characters-section li {
    padding: 6px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.characters-section li:last-child {
    border-bottom: none;
}

.loading {
    text-align: center;
    color: #555;
    padding: 20px;
}


