* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url('images/kine.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: #93ab98 ;
  padding-top: 20px;
  overflow-x: hidden;
}

.sidebar a {
  display: block;
  color: white;
  padding: 16px;
  text-decoration: none;
  font-size: 16px;
}

.sidebar a:hover {
  background-color: #000000;
}

/* Logo barra lateral, bajado un poco */
.sidebar-logo {
  position: absolute;
  bottom: 20px;  /* Lo bajas un poco */
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: auto;
  opacity: 0.9;
}

/* Contenido */
.content {
  margin-left: 220px;
  padding: 20px;
  min-height: 100vh;
  background-color: rgba(255, 255, 255, 0.85);
  color: black;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.perfil-img {
  display: block;
  margin: 20px auto;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  object-fit: cover;
}

h1, h2, h3 {
  text-align: center;
}

h3 {
  font-weight: normal;
}

ul {
  padding-left: 40px;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img.gris-mejorada {
  display: block;
  margin: 20px auto;
  width: 170px;
  height: auto;
  filter: contrast(1.2) brightness(1.1);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

section {
  min-width: 300px;
  max-width: 450px;
  margin: auto;


p {
  font-size: 1em;
  line-height: 1.75em;
  border-top: 3px solid;
  -o-border-image: linear-gradient(to right, #085464 0%, #085464 100%);
     border-image: linear-gradient(to right, #085464 0%, #085464 100%);
  border-image-slice: 1;
  border-width: 3px;
  margin: 0;
  padding: 40px;
  counter-increment: section;
  position: relative;
  color: #34435e;
}
p:before {
  content: counter(section);
  position: absolute;
  border-radius: 50%;
  padding: 10px;
  height: 1.25em;
  width: 1.25em;
  background-color: #34435e;
  text-align: center;
  line-height: 1.25em;
  color: #ffffff;
  font-size: 1em;
}

p:nth-child(odd) {
  border-right: 3px solid;
  padding-left: 0;
}
p:nth-child(odd):before {
  left: 100%;
  margin-left: -20px;
}

p:nth-child(even) {
  border-left: 3px solid;
  padding-right: 0;
}
p:nth-child(even):before {
  right: 100%;
  margin-right: -20px;
}

p:first-child {
  border-top: 0;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

p:last-child {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
}


@media (max-width: 768px) {
  body {
    background-attachment: scroll; /* evita errores de fondo fijo en móviles */
    background-size: cover;
    background-position: top center;
  }

  .content {
    margin-left: 0;
    padding: 16px;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #93ab98;
  }

  .sidebar a {
    flex: 1 1 45%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
  }

  .sidebar-logo {
    display: none; /* oculta el logo en móvil si ocupa mucho espacio */
  }

  .perfil-img {
    width: 120px;
    height: 120px;
  }

  h1 {
    font-size: 1.4em;
  }

  h2 {
    font-size: 1.2em;
  }

  p {
    font-size: 0.95em;
  }
}


.bienvenida-box {
  max-width: 750px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fefefe;
  border-left: 6px solid #085464;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
  color: #34435e;
}

.bienvenida-box p {
  font-size: 1.05em;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}

footer {
  text-align: center;        /* Centra el texto */
  padding: 15px 0;           /* Espaciado vertical */
  background-color: #93ab98; /* Mismo tono que la barra lateral */
  color: white;              /* Texto blanco */
  font-size: 14px;           /* Tamaño de fuente */
  margin-left: 220px;        /* Para que no se meta debajo de la sidebar */
}

@media (max-width: 768px) {
  footer {
    margin-left: 0; /* En móviles, ocupa todo el ancho */
  }
}


.carrusel {
  position: relative;
  width: 600px;   /* ajusta al ancho que quieras */
  height: 400px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.carrusel img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.carrusel img.active {
  display: block;
}

.carrusel .btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
}

.carrusel .prev { left: 10px; }
.carrusel .next { right: 10px; }
