* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #F8F8FF;
}

.header {
  background: linear-gradient(90deg, #092b7a, #034F3B);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  flex-wrap: wrap;
}
.menu a {
  text-decoration: none;
  color: #white;             
  padding: 0.5em 1em;
  background-color: #1D2A73;      
  border: 2px solid #2c3e50;   
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: bold;
}

.menu a:hover {
  background-color: #2c3e50; 
  color: #fff;                
}


.section-2 {
  padding: 20px;
  background-color: #F8F8FF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 1200px;
  margin: 20px auto;
}

.s2-header h1 {
  color: #2c3e50;
  text-align: center;
}

.tabla-especialidades {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.tabla-especialidades th,
.tabla-especialidades td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.tabla-especialidades th {
  background-color: #2c3e50;
  color: white;
  text-align: center;
}

.tabla-especialidades tr:nth-child(even) { background-color: #f2f2f2; }
.tabla-especialidades tr:hover { background-color: #e8f0fe; }
.tabla-especialidades td:first-child { font-weight: bold; color: #34495e; }

.video-container { text-align: center; margin-top: 20px; }
video { width: 100%; max-width: 600px; }

.galeria { margin: 20px 0; }
.imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 10px;
}
.imagenes img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.2s;
}
.imagenes img:hover { transform: scale(1.05); }

.especialidades { margin-top: 20px; }
.especialidades h2 { text-align: center; color: #34495e; }

.footer {
  text-align: center;
  padding: 20px;
  background-color: #2c3e50;
  color: #fff;
  margin-top: 10px;
  border-radius: 8px;
}

.backtohome { text-align: left; margin-bottom: 30px; }
.backtohome a {
  display: inline-block;
  background-color: #2D2D5C;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.backtohome a:hover { background-color: #1f5f8c; }

@media (max-width: 768px) {
  .header { flex-direction: column; align-items: center; gap: 10px; }
  .menu { justify-content: center; }
  .img { width: 120px; }
  .menu a { padding: 0.5em 0.8em; font-size: 14px; }

  .tabla-especialidades thead { display: none; }
  .tabla-especialidades, .tabla-especialidades tbody, .tabla-especialidades tr, .tabla-especialidades td {
    display: block;
    width: 100%;
  }
  .tabla-especialidades tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .tabla-especialidades td {
    text-align: left;
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #ddd;
  }
  .tabla-especialidades td:last-child { border-bottom: none; }
  .tabla-especialidades td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
  }

  video { width: 100%; height: auto; }
  .imagenes { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .img { width: 100px; }
  .menu a { padding: 0.4em 0.6em; font-size: 12px; }
}

.qr-container {
    text-align: center;
    margin: 30px 0;
}

.qr-container h3 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 500;
}

.qr-container img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

@media screen and (max-width: 600px) {
    .qr-container img {
        width: 120px;
        height: 120px;
    }

    .qr-container h3 {
        font-size: 1em;
    }
}




