@charset "UTF-8";

body {
    width: 100%;
    max-width: inherit;
    min-width: inherit;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
}


.navbar {
    background-color: #333;
    padding: 1em 2em;
    z-index: 10;
   position:relative;
    width: 100%
}

.nav-links {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration:none;
    padding-left: 50px;
    color: white;
    font-weight: bold;
}

.nav-links a:hover {
    color: gold;
    /* Efecto al pasar el ratón */

}

.dropdown {
    float: center;
    overflow: hidden;
    
}

.dropdown-content {
    display: none;
    background-color:#DAA520;
    border-color: black;
    position: absolute;
    border-radius: 10px;
    padding: 10px 5px; 
    text-align:left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.column a {
    color: white;
    display: block;
}

.contenedor-principal {
    width: 100%;
}


.logo {
    position: flex;
    top: 15px;
    /* Ajusta la distancia desde arriba */
     left: 25px;
    /* Ajusta la distancia desde la izquierda */
    z-index: 1000;
    /* Asegura que esté por encima (número alto) */
    width: 150px;
    /* Ajusta el tamaño según necesites */
    height: auto;
}



h1 {
    text-align: center;
    clear: both;
    font-family: Garamond;
    padding-top: 50px;
}

h2 {
    text-align: left;
    font-family: Garamond;
    padding-left: 250px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h3 {
    text-align: left;
    font-size: 17px;
    font-family: Garamond;

}

h4 {
    text-align: center;
    font-family: Garamond;
}


p {
    display: block;
    text-align: center;
    Padding: 8px;
    font-family: Garamond;
}


.contact-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;            /* Ocupa casi todo el ancho en móvil */
    max-width: 450px;      /* No crecerá más de esto en PC */
    margin: 20px auto;     /* 'auto' lo centra horizontalmente */
    box-sizing: border-box;
}

/* 2. Ajuste para que el texto de los títulos no se corte */
.contact-container h3 {
    font-size: 1.1rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 10px;
    padding: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: black;
}

input[type="text"],

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

.btn-enviar {
    width: 100%;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    background-color: black;

}

.btn-enviar:hover {
    background-color: #DAA520;
}


/* 3. Media Query para la navegación (opcional) */
@media (max-width: 600px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}


footer {
    background-color: black;
    padding: 20px;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}

.footer {
    margin: 0;
    font-size: 14px;
    color: white;
    font-weight: bold;
    align-items: center;
}

.btn-UP,
.btn-UP:visited {
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
    text-decoration: none; 

}

.btn-UP:hover {
    background-color: #DAA520;
    color: white;
}


.galeria-container {
    display: flex; /* Activa las columnas */
    gap: 25px;    /* Espacio entre columnas */
    padding: 20px;
    flex-wrap: wrap; /* En móviles, el acordeón bajará debajo de las fotos */
}

.columna-imagenes {
    flex: 1;/* Ocupa el 50% aprox */
    min-width: 300px;
}

.columna-imagenes img {
    width: 30%; /* Las imágenes ocupan todo el ancho de su columna */
    margin-bottom: 40px;
}

/* Estilo del fondo del popup */
.overlay {
    position:absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7); 
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
}

/* Cuando se hace click, el popup se vuelve visible */
.overlay:target {
    visibility: visible;
    opacity: 1;
}

/* Caja blanca del popup */
.popup-box {
    width: 80%;
    max-width: 600px;
    position: relative;
    margin: 5px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    text-align: center;
}

/* Estilo del boton de cerrar (X) */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    text-decoration: none;
    color: #333;
}

/* Imagen dentro del popup */
.popup-box img {
    width: 100%;
    height: auto;
}

.arte {
 width: 100%;
  max-width: 200px;
  cursor: pointer;
  border: 5px solid #ffffff; 
  border-radius: 8px;       
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
  transition: 0.3s;
}



.arte:hover {
  opacity: 0.8;
  border-color: darkgoldenrod; 
  transform: scale(1.02); 
    
}
.columna-acordeon {
    flex: 1; 
    min-width: 300px;
}


details {
    border: 1px solid gold;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        
}
summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}


.contenedor-imagen {
    position: relative; 
    text-align: center;
    width: 100%;       
    max-width: 1000px;  
    margin: 0 auto;   
    padding: 0;       
    overflow: hidden;
}

.contenedor-imagen img {
    width: 100%;      
    height: auto;
    display: block;
}

.texto-encima {
    position: absolute;
    top: 50%;         
    left: 50%;       
    transform: translate(-50%, -50%); 
    color: black;
    background-color: rgba(255, 255, 255, 0.6); 
    padding: 20px;
    border-radius: 10px;
    width: 80%;       
}

/* Ajuste de fuentes para que no sea gigante en móvil */
@media (max-width: 600px) {
    .texto-encima h1 {
        font-size: 1.5rem;
    }
    .texto-encima p {
        font-size: 1rem;
    }
}

    


/* --- DISEÑO PARA PANTALLA GRANDE (PC) --- */
.contenedor-index {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; 
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.img-arriba-izq {
    width: 100%;
    height: auto;
    grid-column: 1;
    align-self: start;
}

.texto-centro {
    grid-column: 2; 
    text-align: center;
    line-height: 1.8;
    padding: 0 10px;
}

.img-abajo-der {
    width: 100%;
    height: auto;
    grid-column: 3; 
    align-self: end;   
    margin-top: 50px; 
}

/* --- DISEÑO RESPONSIVE (Móvil y Tablet) --- */
@media (max-width: 850px) {
    .contenedor-index {
      
        grid-template-columns: 1fr; 
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .img-arriba-izq, .img-abajo-der {
        width: 70%;
        margin: 10px 0;
        order: 2;
    }

    .texto-centro {
        order: 1; 
        padding: 10px;
    }
    
}
