body {
  font-family: Arial, sans-serif;
  background: linear-gradient(rgba(233, 246, 250,0.9), rgba(233, 246, 250,0.9)), 
  url('fondo.png');
  background-size: 60% auto; /* ancho alto */
  background-repeat: repeat;
  background-color: rgb(233, 246, 250);
  background-position: 40% 40%;
  margin: 50px;
  font-size: 12;
}
#content {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}


/*--------------Contenidos generales--------*/
#contenido {
  margin-top: 20px;
  padding: 20px;
  background-color: #f2f2f2;
  opacity: 0.8;
}

/*-----Tabla cursos-------
#contenido #cv_table {
  all: unset;
  width: auto;
  border: none;
}

#contenido #cv_table td {
  width: auto;
  border: none;
}-*/




/*---------------
Header con botones
-----------------*/



/* Header/Blog Title */
.header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
    url('imagen nombre.png');
    background-position: 30% 30%;
  }

.header h1 {
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 2.1em;
    /*background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));*/
    color: white;
    opacity: 0.8;
    overflow: hidden;
  }

  .header h1 #subtitulo {
    font-size: 0.6em;
  }

/* The navbar container */
.topnav {
    display: flex; 
    background-color: #333;
  }
  

  .topnav button {
    all: unset;
    display: flex;
    position: relative;
    white-space: nowrap;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: #333;
    cursor: pointer;
  }
  
  .topnav button:hover {
    background-color: #ddd;
    color: black;
  }

  .topnav #right-button {
    all: unset;
    display: block;
    position: absolute;
    white-space: nowrap;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    right: 50px;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: #333;
    cursor: pointer;
  }
  
  .topnav #right-button:hover {
    background-color: #ddd;
    color: black;
  }


  /* Contenedor del botón del menú */
  .topnav #menu-container {
    position: relative; /*  Necesario para que el menú desplegable se posicione bien */
  }

  .topnav #menu-container #menu-btn{
    all: unset;
    white-space: nowrap;
    display: flex;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: #333;
  }

  
  .topnav #menu-container #menu-btn:hover {
    background-color: #ddd;
    color: black;
  }  
  
  /* Oculta inicialmente el menu */
  .topnav #menu-container .menu {
    position: absolute;
    top: calc(100% - 16px);
    left: -40%;
    display: none;
    z-index: 100;
    width: 150px;
  }

/*  Evita que los elementos dentro del menú se comporten raro */
.topnav #menu-container .menu li {
  list-style: none;
  width: 100%;
}

/* Enlaces */
.topnav #menu-container .menu li button {
  all: unset;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  /*float: left;*/
  width: 100%;
  /*display: block;*/
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  background-color: #333;
  cursor: pointer;
}

/* Cambia el color al pasar el mouse sobre un elemento de la lista del menu*/
.topnav #menu-container .menu li button:hover {
  background-color: #ddd;
  color: black;
}

/* Mostrar menú cuando se pasa el cursor en cualquier parte del menu */
.topnav #menu-container:hover .menu {
  display: block;
}














/*Tabla de cursos*/

table {
  width: 50%;
  border-collapse: collapse;
}
th, td {
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}
th {
  background-color: lightgray;
}









/*--------Listas con FontAwesome------------------*/

.listaiconos {
  list-style: none; /* Quita las viñetas predeterminadas */
  padding-left: 0;
}

.listaiconos li::before{
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* Para que se vea sólido */
  margin-right: 10px;
  color: #0077cc; /* Color del ícono */
}

/* Íconos específicos según el tipo de información */
.ubicacion::before { content: "\f3c5"; }  /* 📍 Ubicación */
.telefono::before { content: "\f095"; }   /* 📞 Teléfono */
.email::before { content: "\f0e0"; }      /* ✉️ Correo */
.paper::before { content: "\f15c"; }
.book::before { content: "\f02d"; }


/*Tabla CV */

#contenido #cv_table {
  all: unset;
  width: auto;
  border: none;
}

#contenido #cv_table td {
  border: none;
}

#cv_table img {
    width:75%;
    height: auto;
}






/* ===================== */
/*        MOBILE         */
/* ===================== */

@media (max-width: 768px) {
  body {
    margin: 10px;
    font-size: 14px;
    overflow-x: auto;
  }

  .header {
    padding: 20px;
    background-size: contain;
        /*width: 100%;*/
  }

  .header h1 {
    font-size: 1.5em;
        width: 100%;
  }

  .topnav {
    flex-direction: column;
    align-items: center;
        /*width: 100%;*/
  }

  .topnav button {
    padding: 10px;
    text-align: center;
    /*width: 100%;*/
  }
  
   .topnav button {
    all: unset;
    display: flex;
    position: relative;
    white-space: nowrap;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: #333;
    cursor: pointer;
  }
  
  .topnav button:hover {
    background-color: #ddd;
    color: black;
  }

  .topnav #right-button {
    all: unset;
    display: flex;
    position: relative;
    white-space: nowrap;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: #333;
    cursor: pointer;
  }
  
  
  .topnav #menu-container .menu {
    position: absolute;
    top: calc(100% - 14px);
    left: -45%;
    display: none;
    z-index: 100;
    width: 150px;
  }
 


  
  /*--------------------------------------------------------------------------*/
  
  #contenido {
    margin-top: 10px;
    padding: 10px;
  }

  table {
    width: 100%;
    display: block;
    overflow-x: auto;
  }

  th, td {
    padding: 6px;
    font-size: 12px;
  }

  img {
    max-width: 250px;
    width: 100%;
    height: auto;
  }
  
/*Tabla CV */

#contenido #cv_table {
  width: auto;
  border: none;
}

#contenido #cv_table td {
  border: none;
  margin: 10px;
}

#cv_table img {
    position: relative;
    top: -30px; 
    width:100%;
    height: auto;
    
}


}


