/* Reset básico */
body, h1, h2, p, ul, li, nav, header, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos para Layout */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
    display: flex;
	 margin: 0;
    flex-direction: column;
    min-height: 100vh;
}

.miImg {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

footer {
    background: linear-gradient(to right, #003E95 30%, #0a7e65 33%, #007E2D 36%, #007E2D 63%, #a81515 66%, #E90B18 69%);
    color: white;
    text-align: center;
    padding: 0.5rem;
}

.footer-fixed {
    position: relative;
    bottom: 0;
    width: 100%;
}

header {
    background: #f4f6f9;
    color: #E90B18;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: -120px;
    z-index: 1000;
    transition: top 1s ease;
}

header.visible {
    top: 0;
}

/* Estilos para la navegación móvil */
header h1 {
    font-size: 1.5rem; /* Título más pequeño para móviles */
    margin-bottom: 0.5rem;
}

.redondeado {
    border-radius: 15px 0 0 15px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan */
    justify-content: center;
    gap: 0.5rem; /* Espacio más pequeño para móviles */
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem; /* Tamaño de fuente más pequeño para móviles */
}

main {
    padding: 1rem; /* Padding más pequeño para móviles */
    background: #fff;
    margin: 1rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 120px;
}

section {
    margin-bottom: 1.5rem; /* Margen más pequeño para móviles */
}

/* Botones */
button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #0056b3;
}

/* Estilos de navegación y dropdowns */
.navbar-nav .nav-link:hover {
    color: #e4e706;
    background: linear-gradient(to right, #003E95 30%, #0a7e65 33%, #007E2D 36%, #007E2D 63%, #a81515 66%, #E90B18 69%);
    text-decoration: underline;
}

.dropdown-menu {
    border-radius: 0 0 15px 15px;
    transition: all 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #eef130;
    color: #000;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    transition: all 0.3s ease-in-out;
}

/* Contenedor Principal (versión móvil) */
.main-container {
    display: flex;
    flex-direction: column; /* Apila las columnas en móviles */
    width: 100%;
}

.left-column, .right-column {
    flex: 1;
    width: 100%;
}

.left-column img {
    width: 100%;
    height: auto; /* Altura automática para evitar deformación */
    object-fit: cover;
}

.right-column {
    padding: 1rem;
    text-align: center;
    background-color: #ffffff;
}

/* Loader, Cards y otros */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #d9534f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.counter-box {
    font-size: 8px;
    font-weight: bold;
    color: #555;
    text-align: right;
}


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

.card-body {
    display: none;
    transition: opacity 0.3s ease;
}

.card:hover .card-body {
    display: block;
    opacity: 1;
    font-size: 0.8rem;
    color: white;
    background-color: rgba(231, 23, 23, 0.9);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.img-responsive .img-fluid {
    padding-bottom: 10px;
    padding-top: 5px;
}

/* Default state on mobile - hidden */
.main-menu {
    display: none;
    /* Other mobile-specific styles like position: fixed, etc. */
}

/* State when menu is open */
.main-menu.menu-open {
    display: block; /* Or flex, or grid */
}


/* Media query para tabletas y dispositivos medianos (md) */
@media (min-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 1rem;
    }

    main {
        padding: 2rem;
        max-width: 900px;
    }

    .main-container {
        flex-direction: row; /* Vuelve a las filas en pantallas grandes */
    }

    .left-column, .right-column {
        height: 100vh;
    }
}

/* Media query para pantallas grandes (lg) */
@media (min-width: 992px) {
	.loader {
    height: 100%;
  }
    header h1 {
        font-size: 2.5rem;
    }

    main {
       /* max-width: 1140px;*/
	   max-width: 90%;
	   
    }

    .left-column img {
        height: 100%; /* Ajuste para que la imagen ocupe la altura completa */
    }
}
