/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: 
        radial-gradient(circle, rgba(20, 20, 20, 0.9) 10%, rgba(60, 60, 60, 0.8) 50%, rgba(0, 0, 0, 0.9) 90%), /* Fondo principal oscuro */
        radial-gradient(circle, rgba(30, 30, 30, 0.7) 20%, rgba(80, 80, 80, 0.7) 60%, rgba(0, 0, 0, 0.8) 100%), /* Capa de gradiente central */
        radial-gradient(circle, rgba(40, 40, 40, 0.6) 30%, rgba(100, 100, 100, 0.6) 70%, rgba(0, 0, 0, 0.85) 100%); /* Capa de gradiente más oscuro */
    background-size: 100% 100%, 100% 100%, 100% 100%; 
    background-position: center, center, center; 
    background-attachment: fixed; 
    font-size: 22px; 
    line-height: 1.6; 
    max-width: 1400px;
    margin: 0 auto;
    transition: background 0.5s ease-in-out; /
}

:root {
  --color-gris-letras-modo-claro: #686969;    
  --color-azul-marino-redes-sociales: #629bb5;  
  --color-hueso: #faf2dd;      
  --color-blanco-fondo: #ffffff;  
  --color-azul-hover-redes-sociales: #2282db;
  --color-azulcito-nav: #d6ebf3;
  --color-oscuro-footer: #222;
  --color-gris: #ffffff66;  
}


body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(60, 60, 60, 0.4) 20%, transparent 60%),
                radial-gradient(circle, rgba(80, 80, 80, 0.3) 30%, transparent 60%);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(50, 50, 50, 0.1), rgba(30, 30, 30, 0.1));
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}


h1, h3 {
    text-align: center;
    font-size: 60px;
    margin: 30px 0; 
    position: relative; 
    padding-bottom: 5px;
    transition: background-image 0.3s ease;   
    background-image: url(/imagenes/letras1.jpg);   
    background-size: cover; 
    background-position: center; 
    color: transparent; 
    -webkit-background-clip: text; 
    background-clip: text; 
}

h1::after , h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #717174bb; 
    transition: width 0.3s ease; 
}

h3 {
    font-size: 1.5em;
}

.imagenes-seccion {
    max-width: 900px;
    margin: auto;
    width: 90%;
    background: linear-gradient(to bottom, #0e0c0c, #474747);     
    box-shadow: 0 0 15px rgba(139, 139, 138, 0.589);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 50px;
}


.imagen-detalles-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; 
}


.imagen-grande {
    text-align: center;   
    flex: 4;  
}

.imagen-grande img {
    width: 100%;  
    height: auto;
    border-radius: 8px;    
    margin: 60px 0;
    
}

.imagen-grande p {
    color: #f3ebeb;
}


.detalles {
    flex: 1;  
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.7), rgba(50, 50, 50, 0.6), rgba(70, 70, 70, 0.5)); /* Gradiente oscuro sutil */
    color: #dbd5d5;
    font-size: 20px;
    font-weight: 600;
    padding: 20px; 
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin: auto;
    margin-right: 30px;    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6); 
    transition: background 0.3s ease-in-out; 
}


.detalles span {
    display: flex;
    align-items: center;  
    gap: 8px;            
  }
  


.imagenes-pequenas {
    display: flex;
    justify-content: center;
    gap: 30px; /
}

.imagenes-pequenas img {
    width: 30%;  
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    box-shadow: 0 0 10px rgba(211, 209, 209, 0.685); 
}

.imagenes-pequenas img:hover {
    transform: scale(1.1);  
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.89); 
}


.contenedor-grid {
   
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
        
}


.columna-izquierda {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to top, #0e0c0c, #474747);     
    box-shadow: 0 0 15px rgba(139, 139, 138, 0.589);    
}


.descripcion p {
    font-size: 1.1em;
    color: #ffffff;
    line-height: 2.5;
    margin-bottom: 10px;
}


.columna-derecha {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to top, #0e0c0c, #474747);     
    box-shadow: 0 0 15px rgba(139, 139, 138, 0.589);
    color: rgb(216, 215, 211);
}
.columna-derecha h2 {
    margin-bottom: 50px;
}

.plano img {
    max-width: 600px;
    width: 100%;   
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}




/*--------------------------------------administracion---------------------------*/




.boton-edicion {    
    color: white; 
    border: none;
    border-radius: 5px; 
    padding: 10px 20px; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
    width: 100%; 
    max-width: 160px; 
    margin: 15px 10px; 
    text-align: center; 
}

.boton-edicion:hover {
    background-color: #45a049; 
    transform: scale(1.05); 
}


@media (max-width: 600px) {
    .boton-edicion {
        font-size: 14px; 
        padding: 8px 16px; 
    }
}


.boton-edicion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


/*-------------------------modales-----------------------------*/
/* Estilos para la Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    overflow: auto; 
    padding-top: 50px;
}


.modal-content {
    background-color: #f9f9f9; 
    margin: 5% auto; 
    padding: 30px;
    border-radius: 10px; 
    width: 90%; 
    max-width: 500px; 
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out; 
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}


.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}


.close {
    font-size: 1.5em;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
}

.close:hover {
    color: #333;
}


.modal-body {
    font-size: 18px;
    color: #555;
}


#imagen1, #imagen2, #imagen3 {
    max-width: 100%;
    border-radius: 10px; 
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); 
    margin-bottom: 15px; 
}

/* Input de archivo */
#imagen1Input, #imagen2Input, #imagen3Input {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
}


.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Botón Cerrar */
.cerrar-modal {
    background-color: #e6e6e6;
    border: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cerrar-modal:hover {
    background-color: #cccccc;
}


.guardarCambios {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.guardarCambios:hover {
    background-color: #0056b3;
}


.modal-header h5 {
    margin: 0;
}


.boton-edicion {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.boton-edicion:hover {
    background-color: #0056b3;
}



.admin-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-azul-marino-redes-sociales); 
    color: white; 
    font-size: 16px;
    text-decoration: none; 
    border-radius: 5px; 
    transition: background-color 0.3s ease, transform 0.3s ease; 
    position: absolute; 
    top: 25px;
    left: 25px;
    cursor: pointer;
    z-index: 150;
    position: fixed;
  }
  
  
  .admin-link::before {
    content: "←"; 
    margin-right: 10px; 
    font-size: 16px; 
    
  }
  
 
  .admin-link:hover {
    background-color: var(--color-azul-hover-redes-sociales); 
    transform: scale(1.05); 
  }
  


  /*-----------------------------------responsividad-----------------------------*/


  @media (max-width: 1200px) { 

    .contenedor-grid {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin: auto;
        
    }

    .columna-izquierda {
        max-width: 700px;
        margin: auto;
    }

    .columna-derecha  {
        max-width: 1100px;
        margin: auto;  
        
    }
  }


  @media (max-width: 1050px) {
    .imagenes-seccion {
        max-width: 900px;
    }

    .detalles , button, .descripcion{
        font-size: 14px;
    }
    
  }

  @media (max-width: 930px) {
    .imagenes-seccion {
        max-width: 600px;        
    }
    .detalles {
        font-size: 10px;
    }
    .imagen-grande {
        margin: 0;
        
    }    
    .admin-link::before {
        margin-right: 7px; 
        font-size: 15px; 
      }
    
      h1 {
        margin-top: 50px;
        font-size: 40px;
      }

  }

  
  @media (max-width: 600px) {

     body { 
        overflow-x: hidden; 
    }

    h1 {
        
        font-size: 35px;
      }

    .imagenes-seccion {
     width:90%;      
     
   }

   .imagen-detalles-container {
    overflow-y: hidden;
    overflow-x: hidden;
   }

    .imagenes-seccion,
    .imagen-detalles-container,
    .contenedor-grid,
    .columna-izquierda,
    .columna-derecha {
        overflow-x: hidden; 
    }
    .contenedor-grid{
        margin: auto;
    }

    
    .imagen-grande {
        width: 100%; 
        overflow: hidden;
        position: relative; 
    }

    .imagen-grande img {
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        display: block; 
    }
    .imagenes-pequenas {
        overflow-x: hidden; 
    }

    .imagen-detalles-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
         
    }

   
    .detalles {
        position: absolute; 
        top: 150px; 
        left: 5%; 
        font-size: 12px;
        text-align: left; 
        z-index: 10; 
        background: rgba(0, 0, 0, 0.5); 
        color: white; 
        padding: 10px;
        border-radius: 8px;
        width: auto; 
    }

    /* Imagen grande ajustada */
    .imagen-grande img {
        margin: 0;
        padding: 0;
        max-width: 100%;
        height: auto;
        transform: scale(0.9);
        object-fit: cover;
        margin-bottom: 60px;
    }

    .imagenes-pequenas {
        display: flex;
        flex-direction: column; 
        justify-content: space-between; 
        width: 100%;
        gap: 20px; 
        margin-top: 20px;
        margin: auto;
    }

    .imagenes-pequenas img {
        width: 80%; 
        height: auto; 
        object-fit: cover; 
        border-radius: 8px;
        max-width: 300px;
        max-height: 500px ; 
        margin: auto;
    }

    /* Enlace de volver */
    .admin-link {
        font-size: 14px; 
        padding: 5px 16px; 
        top: 10px;
        left: 15px;        
        z-index: 150; 
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 32px;
    }
   
}


.contacto-video {
    display: flex;
    justify-content: center;
    margin: 20px; 
  }
  
  .contacto-video video {
    width: 100%;
    max-width: calc(100% - 20px); 
    margin: 20px 10px;
    border-radius: 8px; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
  }
  