/* Blog Albergue Olocau: sustituye /css/blog.css por este archivo. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #666; background: #fff; }
img { max-width: 100%; height: auto; }
a { overflow-wrap: break-word; }
a:focus-visible { outline: 3px solid #f2b40b; outline-offset: 3px; }

/* El menú permanece en el flujo: su altura se adapta al texto y al zoom. */
#slide { position: relative; width: 100%; background: #699; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }
.botones, .botones1, .botones2 { position: static; width: auto; min-width: 0; margin: 0; }
#slide ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
#slide li { margin: 0; padding: 0; }
#slide a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 14px; border-radius: 6px; background-color: #366; color: white; text-decoration: none; }
#slide .botones a, #slide .botones1 a { width: 44px; padding: 0; background-position: center; background-repeat: no-repeat; border-radius: 50%; }
#slide a.inicio { background-image: url('https://www.albergueolocau.com/fotos/botoninicio.svg'); }
#slide a.icon-facebook2 { background-image: url('https://www.albergueolocau.com/fotos/botonfacebook.svg'); }
#slide a.icon-twitter2 { background-image: url('https://www.albergueolocau.com/fotos/itwitter2.png'); }
#slide a.icon-feed3 { background-image: url('https://www.albergueolocau.com/fotos/botonblog.svg'); }
#slide a.icon-mail { background-image: url('https://www.albergueolocau.com/fotos/botonemail.svg'); }
#slide a.icon-instagram { background-image: url('https://www.albergueolocau.com/fotos/botoninstagram.svg'); }
#slide a.icon-feed3 { background-color: red; }
#slide a.icon-facebook2:hover { background-color: #3b5998; }
#slide a.icon-instagram:hover { background-color: #d43377; }
#slide a:hover { background-color: #477b7b; }

#pagina {width:100%;max-width:1300px;margin:0 auto;padding:70px 0 0 0;}
#cuerpo1 {width:60%;float:left;background: rgba(250, 250, 250, 0.7);padding: 1%;}
#cuerpo1 a{background: rgba(0, 0, 0, 0.4);padding: 0.5em;color:white;text-decoration:none;line-height:2.5em;}
#cuerpo1 a:hover{background: white;padding: 0.5em;color:#666;}
#foto{background: url(https://www.albergueolocau.com/fotos/audios.jpg) no-repeat center;display: block;height: 20em;}
#foto1{background: url(https://www.albergueolocau.com/fotos/equipaje.jpg) no-repeat center;display: block;height: 20em;}
#foto2{background: url(https://www.albergueolocau.com/fotos/enfermeria.jpg) no-repeat center;display: block;height: 20em;}
#foto3{background: url(https://www.albergueolocau.com/fotos/consejos.jpg) no-repeat center;display: block;height: 20em;}
#foto4{background: url(https://www.albergueolocau.com/fotos/atencion.jpg) no-repeat center;display: block;height: 20em;}
#foto5{background: url(https://www.albergueolocau.com/fotos/esquema.png) no-repeat center;display: block;height: 30em;}
#cuerpo2 {width:36%;float:left;background: transparent;padding: 1%;}
#cuerpo2 p.audios{padding: 0 0 0 2em;font-size: 0.9em;}
#cuerpo2 p{font-size: 0.9em;}
#cuerpo2 p.centrar{text-align:center;}
#cuerpo2 a{display: inline-block;text-decoration: none;background: #669999;padding: 0.5em;color: white;width:29%;text-align: center;font-size: 0.8em;}
#cuerpo2 a:hover{background: #FFF;padding: 0.5em;color: #669999;}
#formulario {border-bottom: solid;} 

#footer {width:100%;margin:0 auto;display: inline-block;}
#footer p{text-align:center;color:#666;}
#footer a{width:100%;margin:0 auto;}

#faja {height:150px;margin-top: -20px auto;
        width:100%;background: white; padding: 50px 0 0 0;}
#faja p.gigante{text-align:center;color:#666666;font-size: 3em;}
@media (max-width: 950px) { #center { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  #slide { gap: 10px; padding: 12px; }
  .botones, .botones1, .botones2 { width: 100%; }
  #header { padding: 24px 16px; }
  #header h1 { font-size: 1.65rem; }
  #faja { padding: 24px 12px; }
  #faja p.gigante { font-size: 2rem; }
  #cuerpo { padding: 0 12px 24px; }
  #center { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
/* 3B. LOGO
---------------------------------------------------------------------- */
img[src$="logo.svg"] {
  display: block;
  margin: 0 auto;            /* centrado */
  width: 200px !important;   /* tamaño en escritorio */
  height: auto !important;   /* mantiene la proporción */
  max-width: 100%;
}

@media (max-width: 768px) {
  img[src$="logo.svg"] {
    width: 200px !important; /* tamaño en móvil */
  }
}

/* Añadir al FINAL de blog.css, fuera de cualquier otra llave. */
@media (max-width: 768px) {
  body #slide {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 12px;
  }
  body #slide .botones,
  body #slide .botones1,
  body #slide .botones2 {
    position: static;
    float: none;
    transform: none;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  body #slide .botones2 { margin-top: 10px; }
  body #slide ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
  }
  body #slide ul li {
    display: block;
    float: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }
  body #slide ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    line-height: 1.2;
  }
  body #slide .botones ul li a,
  body #slide .botones1 ul li a {
    width: 44px;
    height: 44px;
    padding: 0;
    background-position: center;
  }
  body #slide .botones2 ul li a { padding: 10px 14px; }
}

/* Menú adaptable incluso con texto ampliado y pantallas estrechas. */
@media (max-width: 768px) {
  body #slide { max-width: 100%; min-width: 0; }
  body #slide .botones,
  body #slide .botones1,
  body #slide .botones2 { min-width: 0; max-width: 100%; }
  body #slide .botones ul,
  body #slide .botones1 ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 44px));
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
  }
  body #slide .botones2 ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0 auto;
    gap: 6px;
  }
  body #slide ul li {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }
  body #slide .botones ul li a,
  body #slide .botones1 ul li a {
    width: 100%;
    min-width: 0;
    max-width: 44px;
    margin: 0 auto;
    padding: 0;
    background-size: contain;
  }
  body #slide .botones2 ul li a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    padding: 10px 4px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}
@media (max-width: 280px) {
  body #slide .botones ul,
  body #slide .botones1 ul { grid-template-columns: repeat(3, minmax(0, 44px)); }
  body #slide .botones2 ul { grid-template-columns: minmax(0, 1fr); }
}

/* Mantiene el menú visible al desplazarse sin alterar sus filas. */
body #slide {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Una sola columna en móviles; escritorio conserva sus anchos. */
@media (max-width: 768px) {
  #cuerpo1,
  #cuerpo2 {
    float: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px;
  }
}
