* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

body {
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../img/fondito.jpg) no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: -1;
}

footer {
  margin-top: auto;
}

header {
  display: flex;
  flex-direction: column;
  height: 30vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(to right, #4283ac, #2d5d80);
  text-align: center;
  color: white;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.1);
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    #4283ac,
    #6bb7da,
    #4283ac,
    #6bb7da,
    #4283ac
  );
  background-size: 300% 100%;
  animation: moveGradient 2s linear infinite;
  box-shadow: 0 0 8px #6bb7da;
  z-index: 10;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    #4283ac,
    #6bb7da,
    #4283ac,
    #6bb7da,
    #4283ac
  );
  background-size: 300% 100%;
  animation: moveGradient 2s linear infinite;
  box-shadow: 0 0 8px #6bb7da;
  z-index: 10;
}

@keyframes moveGradient {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.divider-footer {
  width: 100%;
  height: 2px;
  margin: 20px 0;
}

#contacto {
  background: linear-gradient(to right, #1c2d45, #243a5b);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15%;
  box-sizing: border-box;
  border-top: 2px solid #5aa3ce;
  box-shadow: 0 -2px 10px rgba(66, 131, 172, 0.2);
}

#logo-footer {
  max-height: 100px;
  width: auto;
}

.contacto-info {
  color: #e6eef5;
  font-size: 15px;
  font-weight: 300;
  margin-left: 300px;
}

.p-footer {
  margin: 10px;
}

#logo {
  width: 400px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
}

.titulo-contenido {
  border-left: 4px solid #4283ac;
  padding-left: 15px;
  background-color: #f0f4fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  text-align: center;
}

.subtitulo {
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #285b78;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.p-contenido {
  line-height: 1.6;
  color: #333;
}

.boton-oculto {
  display: block;
  margin: 20px auto;
}

button,
.boton-oculto,
#boton-principio {
  background-color: #4283ac;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(66, 131, 172, 0.4);
}

button:hover,
.boton-oculto:hover,
#boton-principio:hover {
  background: #4283ac;
  box-shadow: 0 6px 18px rgba(66, 131, 172, 0.5);
}

#logo-section {
  margin-top: 10px;
  width: 50%;
}

#OL-text {
  font-size: 40px;
  font-weight: bold;
  color: #4283ac;
}

#const-text {
  font-size: 30px;
  color: #4283ac;
}

#servicios-quienesSomos {
  display: flex;
  width: 100%;
  height: 100px;
  position: relative;
  border: 1px solid #4283ac;
  overflow: hidden;
}

.option-container {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #0f1c2e;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  z-index: 1;
  background-color: #e6eef5;
  cursor: pointer;
}

.option-container:hover {
  background-color: #dceaf6;
  color: #0f1c2e;
}

.divider {
  position: absolute;
  width: 2px;
  height: 50px;
  background-color: #4283ac;
  box-shadow: 0 0 8px rgba(66, 131, 172, 0.4);
  border-radius: 2px;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.4s ease-in-out;
  z-index: 2;
}

.switch-section.active-left #divider {
  left: 100%;
}

.switch-section.active-left #quienes-option {
  opacity: 0;
  pointer-events: none;
  width: 0;
}

.switch-section.active-left #servicios-option {
  width: 100%;
  font-size: 30px;
}

.switch-section.active-right #divider {
  left: 0;
}

.switch-section.active-right #servicios-option {
  opacity: 0;
  pointer-events: none;
  width: 0;
}

.switch-section.active-right #quienes-option {
  width: 100%;
  font-size: 30px;
}

.option-container.active {
  background-color: #0f1c2e;
  color: white;
  box-shadow: 0 4px 12px rgba(66, 131, 172, 0.2);
  opacity: 1;
  transition: all 0.3s ease;
}

/* CONTENIDOS Y ANIMACIONES */

#contenido-info {
  width: 100%;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contenido {
  width: 75%;
  margin-top: 30px;
  padding: 20px;
  height: fit-content;
  background: rgba(255, 255, 255, 0.95);
  color: #1c1c1c;
  border: 2px solid #4283ac;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(66, 131, 172, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%) translateY(20px);
  transition: transform 0.5s ease var(--scroll-delay, 0s),
    opacity 0.5s ease var(--scroll-delay, 0s), box-shadow 0.2s ease 0s; /* sin delay en sombra */
  backdrop-filter: blur(4px);
}

.contenido.visible-scroll {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0) translateY(20px);
}

/* Animación para contenidos que vienen desde la izquierda */
.contenido.desde-izquierda {
  transform: translateX(-100%) translateY(20px);
}

/* Animación para contenidos que vienen desde la derecha */
.contenido.desde-derecha {
  transform: translateX(100%) translateY(20px);
}

.contenido.mostrar-derecha,
.contenido.mostrar-izquierda {
  transform: translateX(0) translateY(20px);
  transition: transform 0.8s ease, box-shadow 0.8s ease;
  opacity: 1;
  pointer-events: all;
}

/* Hover: levanta ligeramente la tarjeta */
.contenido.mostrar-izquierda:hover,
.contenido.mostrar-derecha:hover {
  transform: translateX(0) translateY(17px);
  box-shadow: 0 6px 18px rgba(66, 131, 172, 0.25);
  transition-duration: 0.15s; /* más rápido al hacer hover */
}

.contenido.mostrar-izquierda:hover,
.contenido.mostrar-derecha:hover {
  transform: translateX(0) translateY(17px);
  box-shadow: 0 6px 18px rgba(66, 131, 172, 0.25);
  transition-duration: 0.15s; /* más rápido al hacer hover */
}

/* Extra contenido con transición de altura */
.contenido-extra {
  margin-top: 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.contenido-extra.visible {
  opacity: 1;
  max-height: 1000px;
}

.p-expl {
  padding: 15px;
  font-weight: 600;
}

ul {
  list-style: circle;
}

.contenido-lista {
  list-style: inside;
  list-style-type: circle;
  padding: 15px;
}

p b {
  font-weight: 700;
}

#presentacion {
  position: relative;
  background-color: #0f1c2e;
  border-radius: 12px;
  padding: 40px 50px;
  max-width: 1000px;
  margin: 40px auto;
  box-shadow: 0 8px 24px rgba(66, 131, 172, 0.15);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
  display: flex;
  align-items: center;
  gap: 40px;
}

.presentacion-texto {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(66, 131, 172, 0.1);
  flex: 1;
  z-index: 1;
}

.presentacion-texto p {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  text-align: justify;
}

.presentacion-texto mark {
  background-color: #4283ac;
  color: white;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(66, 131, 172, 0.4);
  transition: background-color 0.3s ease;
}

.presentacion-texto mark:hover {
  background-color: #35678f;
  cursor: default;
}

.presentacion-icono {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  background-color: #e6f0fa;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatUpDown 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

mark {
  background-color: #4283ac;
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
}

#indice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  padding: 20px 25px;
  box-sizing: border-box;
  transform: translateX(-100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: none;
  border: none;
  box-shadow: none;
  transition: all 0.4s ease-in-out;
}

#indice:hover {
  background-color: rgba(221, 231, 241, 0.6);
}

#indice.mostrar-izquierda {
  display: grid !important;
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

#indice.oculto {
  display: none;
}

.indice-inside {
  background-color: #f0f4fa;
  padding: 15px;
  text-align: center;
  border-radius: 5px;
  border: 2px solid #4283ac;;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(66, 131, 172, 0.1);
}

.indice-inside a {
  color: #0f1c2e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.indice-inside:hover {
  background-color: #4283ac;
  box-shadow: 0 8px 24px rgba(66, 131, 172, 0.4);
}

.indice-inside:hover a {
  color: white;
}

#go-to-start {
  text-align: center;
}

#a-top {
  text-decoration: none;
  color: #e6f0fa;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease;
}

/*Contenido de quienes somos VAMO PERUUU CAUU*/
.div-info-niggas {
  display: flex !important;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
}

.quienes-divisor {
  flex: 1;
}

.nombre {
  border-radius: 0;
  background-color: transparent;
  color: #285b78;
  padding: 0;
  font-weight: 700;
  font-size: 1.8rem;
  margin-left: 10px;
  margin-top: -10px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.texto-integrante {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.foto {
  height: 180px;
  width: auto;
  border-radius: 8px;
  opacity: 1;
  box-shadow: none;
  flex-shrink: 0;
}

.foot-icons {
  vertical-align: middle;
}

.seccion-elegirnos {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px 25px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(66, 131, 172, 0.15);
  font-family: "Montserrat", sans-serif;
  color: #1c1c1c;
}

.titulo-elegirnos {
  font-size: 2rem;
  color: #4283ac;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  border-left: 5px solid #4283ac;
  padding-left: 15px;
  box-shadow: 2px 2px 8px rgba(66, 131, 172, 0.2);
}

.texto-elegirnos,
.intro-lista {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.lista-elegirnos {
  list-style-type: disc;
  padding-left: 40px;
  color: #285b78;
  font-weight: 600;
}

.lista-elegirnos li {
  margin-bottom: 10px;
}

#presentacion-general {
  display: flex;
  flex-direction: column; /* Apila verticalmente los hijos */
  gap: 30px; /* Espacio entre presentación y por qué elegirnos */
  max-width: 1000px; /* o lo que uses para ancho máximo */
  margin: 40px auto; /* Centrar horizontalmente */
  padding: 0 20px; /* algo de padding si querés */
}

/* === RESPONSIVE === */

/* Tablets y pantallas medianas (768px a 1024px aprox) */
@media (max-width: 1024px) {
  #presentacion {
    max-width: 90%;
    padding: 30px 30px;
    flex-direction: column;
    gap: 25px;
  }
  .presentacion-texto {
    font-size: 1rem;
    padding: 20px 20px;
  }
  .presentacion-icono {
    width: 130px;
    height: 130px;
  }
  #logo {
    width: 300px;
    height: 150px;
  }
  #logo-section {
    width: 70%;
    margin-top: 15px;
  }
  #OL-text {
    font-size: 32px;
  }
  #const-text {
    font-size: 24px;
  }
  #servicios-quienesSomos {
    height: 80px;
    font-size: 20px;
  }
  .option-container {
    font-size: 20px;
  }
  .contenido {
    width: 90%;
    margin-top: 20px;
  }
  #contacto {
    padding: 0 10%;
  }
  .contacto-info {
    margin-left: 150px;
    font-size: 14px;
  }
  .seccion-elegirnos {
    max-width: 90%;
    padding: 20px 25px;
  }

  .seccion-elegirnos h2 {
    font-size: 1.8rem;
  }

  .seccion-elegirnos p {
    font-size: 1rem;
  }
  #presentacion-general {
    max-width: 700px;
    gap: 25px;
    margin: 30px auto;
    padding: 0 15px;
  }
}

/* Smartphones grandes y pequeños (hasta 767px) */
@media (max-width: 767px) {
  html,
  body {
    font-size: 14px;
  }
  #presentacion {
    max-width: 95%;
    padding: 20px 15px;
    flex-direction: column;
    gap: 20px;
  }
  .presentacion-texto {
    font-size: 0.9rem;
    padding: 15px 15px;
  }
  .presentacion-icono {
    width: 100px;
    height: 100px;
  }
  #logo {
    width: 200px;
    height: 100px;
  }
  #logo-section {
    width: 90%;
    margin-top: 10px;
  }
  #OL-text {
    font-size: 26px;
  }
  #const-text {
    font-size: 20px;
  }
  #servicios-quienesSomos {
    flex-direction: column;
    height: auto;
  }
  .option-container {
    width: 100%;
    font-size: 18px;
    padding: 15px 0;
  }
  .divider {
    display: none;
  }
  .contenido {
    width: 95%;
    margin-top: 15px;
    padding: 15px;
  }
  #contacto {
    flex-direction: column;
    height: auto;
    padding: 20px 10%;
    gap: 15px;
  }
  .contacto-info {
    margin-left: 0;
    text-align: center;
    font-size: 13px;
  }
  button,
  .boton-oculto,
  #boton-principio {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* Cuando está activo izquierda (Servicios) */
  .switch-section.active-left #quienes-option {
    display: none;
  }

  /* Cuando está activo derecha (Quiénes Somos) */
  .switch-section.active-right #servicios-option {
    display: none;
  }
  .seccion-elegirnos {
    max-width: 95%;
    padding: 15px 20px;
  }

  .seccion-elegirnos h2 {
    font-size: 1.7rem;
  }

  .seccion-elegirnos p {
    font-size: 1rem;
  }
  #presentacion-general {
    max-width: 85%;
    gap: 22px;
    margin: 28px auto;
    padding: 0 14px;
  }
}

/* MEDIA QUERY para pantallas muy pequeñas (menos de 480px) */
@media screen and (max-width: 479px) {
  header {
    height: 25vh;
    padding: 10px;
  }

  #logo {
    width: 200px;
    height: 100px;
  }

  .contacto-info {
    font-size: 13px;
    margin-left: 20px;
  }

  #contacto {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 20px;
    text-align: center;
    gap: 10px;
  }

  #logo-footer {
    max-height: 60px;
  }

  #OL-text {
    font-size: 28px;
  }

  #const-text {
    font-size: 20px;
  }

  .presentacion-icono {
    display: none;
  }

  .presentacion-texto {
    padding: 15px;
  }

  #presentacion {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  #indice {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .option-container {
    font-size: 18px;
  }

  .switch-section.active-left #servicios-option,
  .switch-section.active-right #quienes-option {
    font-size: 20px;
  }

  .contenido {
    width: 90%;
    padding: 15px;
  }

  button,
  .boton-oculto,
  #boton-principio {
    padding: 10px 20px;
    font-size: 14px;
  }

  .subtitulo {
    font-size: 16px;
  }

  /* Cuando está activo izquierda (Servicios) */
  .switch-section.active-left #quienes-option {
    display: none;
  }

  /* Cuando está activo derecha (Quiénes Somos) */
  .switch-section.active-right #servicios-option {
    display: none;
  }
  .seccion-elegirnos {
    max-width: 98%;
    padding: 10px 15px;
  }

  .seccion-elegirnos h2 {
    font-size: 1.4rem;
  }

  .seccion-elegirnos p {
    font-size: 0.9rem;
  }

  .seccion-elegirnos ul {
    padding-left: 15px;
  }
  #presentacion-general {
    max-width: 95%;
    gap: 18px;
    margin: 20px auto;
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  .div-info-niggas {
    flex-wrap: wrap; /* permite que el texto descriptivo baje */
  }
  .foto {
    height: 100px; /* más pequeña */
  }
  .nombre {
    flex: 1; /* para que tome el resto del espacio a la derecha */
    margin-left: 10px;
    font-size: 1.4rem;
    align-self: center; /* para que quede alineado verticalmente con la foto */
  }
  .texto-integrante {
    flex-basis: 100%; /* que ocupe toda la fila debajo */
    margin-top: 10px;
  }
  .seccion-elegirnos {
    max-width: 95%;
    padding: 15px 20px;
  }

  .seccion-elegirnos h2 {
    font-size: 1.6rem;
  }

  .seccion-elegirnos p {
    font-size: 0.95rem;
  }
  #presentacion-general {
    max-width: 90%;
    gap: 20px;
    margin: 25px auto;
    padding: 0 12px;
  }
}
