/* ===========================
   General
=========================== */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding-top: 80px; /* Espacio para navbar fijo */
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   Navbar
=========================== */
.navbar {
    background-color: #fff !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding-top: 5px;
    padding-bottom: 5px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
}

.navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.navbar-logo {
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-logo {
        max-width: 80px;
    }

    .card-title {
        font-size: 1rem;
    }
}

/* ===========================
   Botones y Filtros
=========================== */
.btn-filtro {
    font-weight: bold;
    margin: 5px;
}

.btn-ver {
    background-color: #E23A2A;
    color: white;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-ver:hover {
    background-color: #e2392ac2;
}

.btn-danger {
    background-color: #e23a2a;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #d11d1d;
    color: #fff;
}

/* ===========================
   Cards
=========================== */
.card {
    background-color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.card-body {
    background-color: #fff !important;
    padding: 15px;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #e9ecef;
    padding: 10px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
}

.card img {
    background-color: transparent !important;
}

/* ===========================
   Banner en Cards
=========================== */
.banner {
    position: absolute;
    top: 10px;
    right: -50px;
    background-color: rgba(255, 69, 0, 0.9);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 50px;
    transform: rotate(45deg);
    transform-origin: center;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.banner.disponible {
    background-color: rgba(50, 205, 50, 0.9);
}

/* ===========================
   Splash Screen
=========================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1.5s ease-out forwards 6s;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 1.2s ease-in-out;
}

.splash-logo {
    width: 150px;
    animation: bounceIn 1s ease-in-out;
}

.animated-message {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e23a2a;
    margin-top: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.typing::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
}

/* Loader */
.loader {
    margin-top: 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* ===========================
   Animaciones Keyframes
=========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===========================
   Footer
=========================== */
footer {
    background-color: #222;
    color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
}

footer .social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: #f8f9fa;
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons a:hover {
    transform: scale(1.2);
    color: #e23a2a;
}

footer p {
    margin: 0;
    font-weight: 400;
}
