body {
    background-color: #f0e4d7; /* Fondo ocre claro */
    color: #4a3d31; /* Texto marrón oscuro */
    font-family: 'Georgia', serif; /* Fuente con un toque clásico */
    margin: 0;
    padding: 0;
}

.falling-element{
    position: absolute;
    font-size: 2rem;
    top: -50px;
    animation: fall 3s linear infinite;
}
@keyframes fall{
    0% { transform: translateY(-50px);}
    100% { transform: translateY(250px);}
}
.element1 { left: 20%; animation-delay: 1s;}
.element2 { left: 35%; animation-delay: 0.5s;}
.element3 { left: 50%; animation-delay: 1s;}
.element4 { left: 65%; animation-delay: 0.5s;}
.element5 { left: 80%; animation-delay: 0.5s;}

.banner {    
    position: relative;
    background-image: url("../imgPatrim/Un_marco_exterior_2.jpg"); 
    background-size: cover;
    height: 300px;
    width: 100%;
    background-position: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: cinzel, serif;
}
@keyframes wave {
    0%, 100% { transform: translateX(0) translateY(0);}
    25% { transform: translateX(25%) translateY(-20px);}
    50% { transform: translateX(50%) translateY(0);}
    75% { transform: translateX(75%) translateY(20px);}
}

header{
    background-color: #834a21;
    text-align: center;
    padding: 10px 10px;
    position: relative;
    overflow: hidden;
}
.titulo-patrimonio {
    font-size: 3rem;
    color: #f4f1ea;
    text-shadow: 2px 2px 5px #654321;
    margin: 0;
    animation: moveIn 2s ease-in-out, fadeIn 2s ease-in-out;
}

/* animaciones */
@keyframes moveIn {
    from {
        transform: translateY(-100px);
    }
    to {
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* efecto hover */
.titulo-patrimonio:hover {
    color: #cd853f;
    text-shadow: 2px 2px 10px #8b4513;
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); } 
    50% { transform: translateX(5px); } 
    75% { transform: translateX(-5px); } 
    100% { transform: translateX(0); }
}

@keyframes moveHorizontal {
    0% { transform: translateX(0); }
    50% { transform: translateX(100px); }
    100% { transform: translateX(0); }
}
.negativo-container { 
    width: 100%; 
    overflow: hidden; 
    position: relative; 
    margin: 15px 0;
} 
.negativo-pelicula { 
    width: 100%; 
    animation: deslizar 10s linear infinite, wave 5s infinite ease-in-out; 
} 
@keyframes deslizar { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); }
}
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(20px);
    }
    75% {
        transform: translateY(-20px);
    }
}
/* barra para los enlaces a las redes sociales */
.sidebar {
    position: fixed;
    top: 20%;
    right: 5px;
    background-color: #d49138;
    padding: 3px;
    border: 2px solid #704214;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}
  .social-icons {
    list-style: none;
    padding: 0;
}
  .social-icons li {
    margin-bottom: 10px;
}
  .social-icons a {
    color: #faf6f1;
    font-size: 24px;
}
main {
    position: relative;
    min-height: 100vh;
    padding: 35px;
}
main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../imgPatrim/Fondo3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    opacity: 0.3;
    z-index: -1;
}
.iframe-container-lateral {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
    border: 3px solid #8b4513; /* Color del borde */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Sombra */
    background-color: #fffbea; /* Fondo claro */
}
.iframe-box {
    flex: 1;
    text-align: center;
}
.iframe-box iframe {
    width: 100%;
    height: 300px; /* Ajusta según sea necesario */
    border: none;
}
.descripcion-lateral {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.descripcion-lateral p {
    margin: 10px 0;
    font-size: 16px;
    text-align: justify;
}
.descripcion-lateral a {
    display: inline-block;
    margin-top: 10px;
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
}

.descripcion-lateral a:hover {
    text-decoration: underline;
}

/* Estilos para destacar el contenedor */
.iframe-container-lateral {
    border: 3px solid #8b4513; /* Color del borde */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Sombra */
    background-color: #fffbea; /* Fondo claro */
}
.destacado {
    border: 3px solid #8b4513; /* Color del borde */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Sombra */
    background-color: #fffbea; /* Fondo claro */
}

.formato-cine {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.formato-cine h2 {
    color: #704214;
    margin-bottom: 1.5rem;
    text-align: center;
}
.formato-cine .introduccion {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 2rem;
    text-align: justify;
}
.formato {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #704214;
    background-image: url(../imgPatrim/fotograma1.png);
    background-repeat: no-repeat;
    background-size: 875px;
    opacity: 0.3;
    z-index: -1;
}
.formato h3 {
    color: #704214;
    margin-top: 0;
    margin-bottom: 1rem;
}
.formato h4 {
    color: #704214;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.formato p {
    color: #333;
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.6;
}
.formato ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #444;
    margin-bottom: 1rem;
}
.formato ul li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.contenido {
    padding: 0.5rem;
}
@media (max-width: 768px) {
    .formato-cine {
        padding: 1rem;
    }
    .formato {
        padding: 1rem;
    }
}


h1, h2 {
    color: #6b4b3e; /* Encabezados en tono marrón oscuro */
    text-shadow: 1px 1px 2px #654321; /* Sombra para efecto elegante */
    text-align: center;
}
h3, h4, h5, h6 {
    color: #6b4b3e; /* Encabezados en tono marrón oscuro */
    text-align: center;
}


a {
    color: #a0522d; /* Color marrón para los enlaces */
    text-decoration: none;
}
a:hover {
    color: #8b5e3c; /* Color más claro al pasar el ratón por encima */
}

nav {
    background-color: #c19a6b; /* Color marrón claro para la barra de navegación */
    padding: 0;
    text-align: center;
    border-bottom: 1px solid #8b5e3c; /* Borde inferior en marrón oscuro */
    display: flex;
}
nav a {
    color: #4a3d31;
    margin: 0 10px;
    font-weight: bold;
}
nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    padding: 0;
}
nav ul li {
    margin: 0 10px;
    display: inline;
}

main {
    padding: 10px;
    border-top: 2px solid #8b5e3c; /* Borde superior en marrón oscuro */
}

#formularios {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}
form {
    background-color: #cd853f;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
}
h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #6b4b3e;
    font-size: 1.2em;
    text-align: center;
}
label {
    display: block;
    margin-bottom: 3px;
    color: white;
    font-size: 0.9em;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9em;
}
input[type="submit"],
button[type="submit"] {
    background-color: #704214;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    align-self: center;
    width: 60%;
    margin-top: 10px;
}
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #8b7355;
}
textarea {
    height: 80px;
    resize: vertical;
}
/* Estilos responsive */
@media screen and (max-width: 768px) {
    #formularios {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    form {
        width: 90%;
        max-width: 300px;
    }
    input[type="submit"],
    button[type="submit"]{
        width: 80%;
    }
}


footer {
    background-color: #d2b48c;
    color: #4a3d31;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 2px solid #8b5e3c; /* Borde superior en marrón oscuro */
}
footer img {
    border-radius: 50%; /* Bordes redondeados */
    transition: transform 0.5s ease; /* Transición suave */
}
footer img:hover {
    transform: scale(1.5); /* Aumenta el tamaño al pasar el ratón */
}
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #704214;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}
.scroll-to-top:hover {
    background-color: #8b7355;
    transform: translateY(-2px);
}
.scroll-to-top.visible {
    display: flex;
}
