/*Fuentes*/
@font-face {
    font-family: 'nevis';
    src: url("../fonts/nevis/nevis.eot");
    src: url("../fonts/nevis/nevis.eot?#iefix") format("embedded-opentype"),
        url("../fonts/nevis/nevis.woff") format("woff"),
        url("../fonts/nevis/nevis.ttf") format("truetype"),
        url("../fonts/nevis.svg") format("svg");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'outfit';
    src: url("../fonts/outfit/Outfit-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'robot';
    src: url("../fonts/roboto/Roboto-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
/*Logo*/
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    z-index: 3;

}

body {
    padding-top: 110px;
}

/*Barra de navegacion*/
#nav {
    /*min-width: 200;*/
    background-color: transparent;
    font-family: sans-serif, Helvetica, Arial;
    font-size: 14px;
}

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav>ul>li {
    /*Se define el ancho de la barra de nav*/
    float: left;
    line-height: 38px;
}

#nav>ul>li a {
    display: block;
    padding: 0 20px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    transition: color 200ms;
}

#nav>ul>li a:hover {
    color: #e60000;
}


/*Menu Desplegable*/
#nav>ul>li>ul {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    z-index: 2;
    padding: 0;
    width: 300px;
    /* Ancho del submenu */
}

#nav>ul>li:hover>ul {
    display: block;
}

#nav>ul>li>ul>li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    transition: color 200ms;
}

#nav>ul>li>ul>li a:hover {
    color: #e60000;
    /* Color al pasar el cursor */
}

/*Submenu segundo nivel*/
#nav>ul>li>ul>li>ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #ffffff;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    z-index: 1;
    padding: 0;
}

#nav>ul>li>ul>li:hover>ul {
    display: block;
}

#nav>ul>li>ul>li>ul>li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    /* Color normal */
    white-space: nowrap;
    text-decoration: none;
    transition: color 200ms;

}

/*Redes Sociales*/
#redSocial a {
    margin: 0 5px;
}

/*Secciones*/
#sections {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    overflow: hidden;
}

#video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    /* Ajusta la opacidad para mejor contraste */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Cambia el 0.5 para más o menos oscuridad */
    z-index: 1;
}

#sections>section {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 800px;
}

#sections h1 {
    font-size: 4em;
    margin-bottom: 4px;
    margin-top: 5px;
    white-space: nowrap;
    font-family: "nevis";
}

#sections h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: "nevis";

}

#sections p {
    font-family: "nevis";
    font-size: 2rem;
    /* Tamaño para párrafos */
    line-height: 1.6;
    margin-bottom: 0;
    white-space: nowrap;
}

/* Seccion barra lateral derecha mosaicos*/
#DescubreNacajuca {
    display: flex;
    flex-direction: column;
    /* Hace que los hijos se acomoden en columna (vertical) */
    gap: 18px;
    /* Espacio entre cada imagen */
    align-items: flex-end;
    /* Alinea el mosaico a la derecha */
    margin-right: 40px;
    /* Espacio a la derecha, opcional */
    min-width: 90px;
    /* Ajusta según el tamaño de tus imágenes */
}

#DescubreNacajuca>div {
    position: relative;
    display: flex;
    flex-direction: row;
    /* Elementos en fila */
    align-items: center;
    /* Centra verticalmente */
    gap: 10px;
}

#DescubreNacajuca .overplay {
    display: none;
    position: static;
    background: #8C3B8C;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    margin-right: -11px;
    margin-left: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: block;
    min-width: 90px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s, transform 0.4s cubic-bezier(.77, 0, .18, 1);
}

#DescubreNacajuca>div:hover .overplay {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

#DescubreNacajuca img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border: 2px solid #fff;
    background: #eee;
    transition: transform 0.2s, border-color 0.2s;
}

#DescubreNacajuca img:hover {
    transform: scale(1.1);
    border-color: #D32B8B;
}

/*Fondo videos*/
.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
    background: #333;
}

.video-fondo.visible {
    opacity: 1;
}


/*Seccion de tarjetas*/
#cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cards {
    width: 230px;
    height: 330px;
    border: 1px solid #d32b8b;
    box-shadow: 1px 1px 2px #eb5b3c;
    overflow: hidden;
    margin: 20px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 300ms;
}

.cards:hover {
    background: #4c0c2c;
}

.cards img {
    display: block;
    margin: 0 auto;
    margin-top: 15px;
}

.cards:hover img {
    transform: scale(1.2);
    transition: all 300ms;
    animation: showIcon 300ms linear;
    filter: brightness(0) invert(1);
    /*Acerdate de la imagen*/
}

/* Animación para mostrar el icono al pasar el cursor */
@keyframes showIcon {
    from {
        transform: translateY(-200%);
    }

    to {
        opacity: 1;
        transform: translateY(0%)
    }
}

/*Esto es para quitar el subrayado del hipervinculo*/
#tarjetas div>div>a {
    text-decoration: none;
}

.cards .category {
    width: 100%;
    height: 10px;
    font-size: 23px;
    text-align: center;
    font-weight: bold;
    font-family: "outfit";
    color: #4C0C2C;
    transition: all 300ms;
}

.cards:hover .category {
    color: white;
    animation: showCategory 400ms linear;
}

/* Animación para mostrar la categoría al pasar el cursor */
@keyframes showCategory {
    from {
        transform: translateY(-300%);
        color: #4C0C2C;
    }

    to {
        transform: translateY(0%);
        color: white;
    }
}

.cards .description {
    text-align: center;
    color: #E32C53;
    font-size: 17px;
    font-family: "outfit";
    margin-left: 25px;
    margin-right: 25px;
    transition: all 300ms;
}

.cards:hover .description {
    color: white;
    animation: showDescription 400ms linear;
}

@keyframes showDescription {
    from {
        transform: translateY(300%);
        color: #E32C53;
    }

    to {
        transform: translateY(0%);
        color: white;
    }
}

/*Seccon Noticias*/
/* Estilos para la sección de Noticias */
#Noticias {
    padding: 40px 0;
    background: #faf8f9;
    text-align: center;
}

#Noticias>div>div>a {
    text-decoration: none;
}

#Noticias h2 {
    font-family: 'nevis', Arial, sans-serif;
    font-size: 2.8em;
    color: #d32b8b;
    margin-bottom: 30px;
    letter-spacing: 2px;

}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.news-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(76, 12, 44, 0.10);
    width: 320px;
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 6px 24px rgba(76, 12, 44, 0.18);
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
}

.news-item h3 {
    font-family: 'outfit', Arial, sans-serif;
    font-size: 1.3em;
    color: #d32b8b;
    margin-bottom: 10px;
    margin-top: 0;
}

.news-item p {
    font-family: 'outfit', Arial, sans-serif;
    font-size: 1em;
    color: #333;
    margin: 0;
}

/*Registro Civil*/
#Oficialias {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    font-family: "robot";
}

.fila-superior {
    display: flex;
    justify-content: center;
    width: 100%;
}
.fila-inferior {
  display: flex;
  width: 100%;
  margin-bottom: 40px; /* Espacio inferior */
}
#Oficialia {
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}
.usuario-img {
    width: 275px;
    height: 275px;
    background-color: transparent;
    transition: transform 0.3s ease;
    margin-bottom: 0; /* Elimina margen inferior */
    display: block;
}

.usuario-img:hover {
    transform: scale(1.1);
}

#Oficialias div>h3 {
    margin-top: 0;    /* Elimina margen superior */
    margin-bottom: 10px;
    font-size: 18px;
    color: #000;
}


button.visitar-btn {
    background-color: #80348c;
    /* Morado */
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button.visitar-btn:hover {
    background-color: #9e52a6;
}

/* Ícono dentro del botón */
button.visitar-btn::after {
    content: "📍";
    font-size: 16px;
}

/*Pie de pagina*/
#footer {
    width: 100%;
    margin: 0px auto;
    text-align: center;
    background-color: #4c0c2c;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: sans-serif, Helvetica, Arial;
    font-size: 14px;
    color: white;
    box-shadow: 0px 0px 2px gray;
}