/*
Index Page Styles for S-Team Haus
*/

main {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* === SLIDER === */

.slider-container {
  background: linear-gradient(135deg, #9fd0fe 0%, #87ceeb 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(159, 208, 254, 0.3);
  min-height: 400px;
 
}

.slider-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.slide {
  display: none;
  align-items: center;
  gap: 2rem;
  width: 100%;
  height: 100%;
  min-height: 350px;
  padding: 1rem;
}

.slide.active {
  display: flex;
}

.slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.slide-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.slide-image img:hover {
  transform: scale(1.05);
}

.slide-text {
  flex: 1;
  color: #2c3e50;
  padding: 1rem;
  
  
}

.slide-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c3e50;
  line-height: 1.2;
  text-align: center;
  
}

.slide-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  color: #34495e;
  font-weight: 500;
}

/* Botones del slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

.slider-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Indicadores */
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.dot:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

/* === MISIÓN === */

.mision {
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border-left: 5px solid #9fd0fe;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mision p {
  line-height: 1.8;
  color: #2c3e50;
  margin: 0;
}

/* === APRENDIZAJE === */

.aprendizaje {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.aprendizaje h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #2c3e50;
  position: relative;
}

.aprendizaje h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #9fd0fe, #87ceeb);
  border-radius: 2px;
}

.aprendizaje-tarjetas {
  display: flex;
  gap: 3rem;
  margin: 3rem 0;
  align-items: center;
}

.aprendizaje-imagen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aprendizaje-imagen img {
  max-width: 100%;
  max-height: 350px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.aprendizaje-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tarjeta {
  padding: 2rem;
  border-radius: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}


.tarjeta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(159, 208, 254, 0.2), transparent);
  transition: left 0.5s ease;
}

.tarjeta:hover::before {
  left: 100%;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: #9fd0fe;
}

.tarjeta.activa {
  background: linear-gradient(135deg, #9fd0fe 0%, #87ceeb 100%);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(159, 208, 254, 0.4);
  border-color: #9fd0fe;
}

.tarjeta h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: inherit;
  text-align: center;
}

.tarjeta p {
  font-size: 1rem;
  line-height: 1.6;
  color: inherit;
  text-align: justify;
    font-weight: 500;
  opacity: 0.9;
}

.comenzar {
  background-color: #2E3856;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(159, 208, 254, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
   font-family: "Montserrat", sans-serif;
}

.comenzar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(159, 208, 254, 0.4);
  background: #2E3856;
   font-family: "Montserrat", sans-serif;
}

/* === HISTORIA === */

.historia {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, #9fd0fe 0%, #87ceeb 100%);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(159, 208, 254, 0.3);
}

.historia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.historia-texto {
  flex: 1;
  position: relative;
  z-index: 2;
}

.historia-texto h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
}

.historia-texto p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #34495e;
  text-align: center;
}

.historia-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.historia-imagen img {
  max-width: 90%;
  max-height: 350px;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.historia-imagen img:hover {
  transform: scale(1.05);
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 1024px) {
  .slider-container {
    padding: 1.5rem;
    min-height: 350px;
  }

  .slide-text h2 {
    font-size: 1.8rem;
  }

  .slide-text p {
    font-size: 1rem;
  }

  .slide-image img {
    max-width: 280px;
    max-height: 250px;
  }

  .aprendizaje h1 {
    font-size: 2rem;
  }

  .historia-texto h2 {
    font-size: 1.8rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  .slider-container {
    padding: 1rem;
    min-height: 400px;
  }

  .slide {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 0.5rem;
  }

  .slide-image,
  .slide-text {
    flex: none;
    width: 100%;
  }

  .slide-image {
    min-height: 200px;
  }

  .slide-image img {
    max-width: 220px;
    max-height: 200px;
  }

  .slide-text {
    padding: 0.5rem;
  }

  .slide-text h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .slide-text p {
    font-size: 0.95rem;
  }

  .slider-btn {
    width: 45px;
    height: 45px;
  }

  .slider-btn svg {
    width: 20px;
    height: 20px;
  }

  .slider-btn.prev {
    left: 0.5rem;
  }

  .slider-btn.next {
    right: 0.5rem;
  }

  .slider-dots {
    bottom: 0.5rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .aprendizaje-tarjetas {
    flex-direction: column;
    gap: 2rem;
  }

  .historia {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .mision {
    font-size: 1.1rem;
    padding: 1.5rem;
  }

  .aprendizaje h1 {
    font-size: 1.8rem;
  }

  .historia-texto h2 {
    font-size: 1.6rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .slider-container {
    padding: 0.8rem;
    min-height: 350px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-btn svg {
    width: 18px;
    height: 18px;
  }

  .slide-text h2 {
    font-size: 1.4rem;
  }

  .slide-text p {
    font-size: 0.9rem;
  }

  .slide-image img {
    max-width: 180px;
    max-height: 180px;
  }

  .tarjeta {
    padding: 1.5rem;
  }

  .comenzar {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .historia {
    padding: 1.5rem 1rem;
  }

  .mision {
    font-size: 1rem;
    padding: 1rem;
  }

  .aprendizaje h1 {
    font-size: 1.5rem;
  }

  .historia-texto h2 {
    font-size: 1.4rem;
  }

  .historia-texto p {
    font-size: 1rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Mejoras para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .slide-image img,
  .slider-btn,
  .dot,
  .tarjeta {
    transition: none;
  }
}

/* Soporte para pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
  .slider-btn:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
  }

  .tarjeta:hover {
    transform: none;
  }

  .slide-image img:hover {
    transform: none;
  }

  .dot:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
  }

  .dot.active {
    transform: scale(1.2);
  }
}