:root {
    --primary-red: #dc2626;
    --dark-gray: #374151;
    --text-dark: #111827;
    --text-light: #6b7280;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #374151 100%);
    --gradient-hero: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(55, 65, 81, 0.9) 100%);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 30% 70%, rgba(0,0,0,0.2) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%), url('img/fondo3.jpg'); 
    background-size: 100% 100%, 100% 100%, cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

body::before { 
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

body.scrolled .main-nav {
    background-color: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
}

/* Menú */
/* Estilos para el MENÚ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.9) 0%, rgba(43, 44, 44, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.logo-container img {
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.menu-items {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-items .active {
    color: var(--primary-red) !important;
    background: rgba(87, 80, 80, 0.1);
    border-radius: 6px;
}

.menu-items a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-items a:hover {
    color: var(--primary-red);
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.search-container input {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.15);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Estilos para el menú */
/* .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.9) 0%, rgba(43, 44, 44, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
} */

body.scrolled .main-header {
    opacity: 0;
}

/* .logo-container img {
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.menu-items {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-items a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-items .active {
    color: var(--primary-red) !important;
    background: rgba(87, 80, 80, 0.1);
    border-radius: 6px;
}

.menu-items a:hover {
    color: var(--primary-red);
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.search-container input {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
} */

/* .main-nav.scrolled {
    background-color: #222;
}


.toggler{
    display: none;
}
 */


/* Header */
header {
    padding: 20px 0;
    background-color: #595959;
}

header .logo {
    text-align: center;
    margin-bottom: 20px;
}

header .logo p {
    color: #fff;
}

header form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

header .barra-busqueda {
    width: 70%;
    height: 40px;
    line-height: 40px;
    background: #fff;
    padding: 0 20px;
    border-radius: 25px; /* Reduje el radio para un aspecto más moderno */
    border: none;
    text-align: center;
    font-size: 16px;
}

header .categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

header .categorias a {
    color: #fff;
    margin: 10px 20px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

header .categorias a.activo {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
}

/* AGREGADO: Efecto hover para las pestañas */
header .categorias a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

/* Grid */
.grid {
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s linear 1s;
}

.grid.imagenes-cargadas {
    opacity: 1;
}

.grid .item {
    position: absolute;
    display: block;
    padding: 0;
    margin: 10px;
    width: calc(33.333333% - 20px);
}

.grid .item-contenido {
    position: relative;
}

.grid .item img {
    width: 100%;
    cursor: pointer;
    vertical-align: top;
    border-radius: 10px; /* Agregué bordes redondeados */
    transition: transform 0.3s ease; /* Efecto de transición en las imágenes */
}

.grid .item img:hover {
    transform: scale(1.1); /* Efecto de escala al pasar el mouse */
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .9);
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.overlay.activo {
    display: flex;
}

.overlay img {
    max-width: 100%;
    border-radius: 10px; /* Agregué bordes redondeados */
}

.overlay .descripcion {
    display: block;
    background: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 5px;
    border-radius: 10px;
    max-width: 50%;
}

.contenedor-img {
    position: relative;
}

.overlay #btn-cerrar-popup {
    background: none;
    font-size: 20px;
    color: #fff;
    border: none;
    cursor: pointer;
    position: absolute;
    right: -20px;
    top: -20px;
}

/* Footer */
footer {
    background: #363638;
    color: #fff;
    padding: 60px 20px 20px;
    text-align: center;
    position: relative;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column {
    text-align: left;
}

.footer-column h2 {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column img {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-column i {
    color: var(--primary-red);
    margin-right: 8px;
    width: 16px;
}
/*  */
	
@media screen and (max-width: 780px) {
    .menu-items {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .menu-items a {
        display: block;
    }

    .search-container {
        display: none;
    }

    label {
        display: inline-flex;
    }
    .toggler{
        display: block;
    }
    #toggler:checked~.menu-items {
        display: flex;
    }
    .fa {
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    .fa-bars {
        z-index: 1001; /* Ajusta según sea necesario */
    }
}

.superposicion {
    position: relative;
    width: 100%;
    height: 40vh; /* Esto asegura que el div ocupe toda la altura de la ventana */
    background: url('img/shape1.png') center/cover; /* Ajusta la ruta de tu imagen */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.superposicion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad del fondo oscuro */
}

.main-title {
    z-index: 2;
    text-align: center;
    padding: 2rem;
    font-family: "Inter", "Arial", sans-serif;
    animation: fadeInUp 1s ease-out;
}

.main-title h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
    .superposicion {
        align-items: center; 
    }

    .main-title {
        margin-top: 60px;
        margin-left: 600px;
        padding: 10px;
    }

    .toggler{
        display: block;
    }
}
