/* ============================================
   MOBILE FIRST - BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: rgb(245, 245, 248);
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #0c0c0c;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Scrollbar personalizado */
body::-webkit-scrollbar {
  width: 12px;
  background-color: rgba(223, 230, 236);
}

body::-webkit-scrollbar-thumb {
  background-color: #FF6600;
  border-radius: 6px;
}

/* Container base */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

#seccionImgPrincipal {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;

  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding: 0;
  overflow: hidden;
  margin-top: 2rem;
}

.image-border-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(135deg, #FF6600 0%, #FF9800 50%, #FFC849 100%);
  box-sizing: border-box;
}

.image-border-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 30%;
  background: linear-gradient(to top, rgba(245, 245, 248, 0.9), transparent);
  border-radius: 0 0 16px 16px;
  pointer-events: none;
  z-index: 2;
}

#seccionImgPrincipal img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  max-width: 100%;
}

/* ============================================
   INFO SECTION
   ============================================ */

#seccionInfo {

  padding: 1rem 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #0c0c0c;
}

#premava {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 0.5rem auto;
  object-fit: contain;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
}

.info-text.highlight {
  font-weight: 500;
  color: #FF6600;
  font-size: 1.1rem;
}

/* ============================================
   PILATES SECTION
   ============================================ */

#seccionPilates {

  background: linear-gradient(135deg, #FF9800 0%, #FF6600 100%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pilates-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pilates-image-wrapper {
  width: 100%;
  position: relative;
  padding: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.image-border-frame.pilates-frame {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  overflow: hidden;
}

.image-border-frame.pilates-frame::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
}

#seccionPilates img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.95);
  border-radius: 12px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.pilates-content {
  padding: 2rem 1.5rem;
  color: #fff;
}

.pilates-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #fff;
}

.pilates-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
}

.pilates-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.option-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.option-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

.option-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

#verHorarios {
  width: 100%;
  max-width: 300px;
  padding: 0;
  min-height: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
}

#verHorarios:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: #e55a00;
}

/* ============================================
   SOCIAL SECTION
   ============================================ */

#seccionRedes {
  padding: 2rem 1rem;
  text-align: center;
}

.social-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #0c0c0c;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  transition: transform 0.3s ease;
  border-radius: 12px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#seccionRedes img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* ============================================
   MAP SECTION
   ============================================ */

#seccionMapa {
  padding: 2rem 1rem;
}

.map-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #0c0c0c;
}

.map-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#mapa {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* ============================================
   TABLET STYLES (min-width: 768px)
   ============================================ */

@media screen and (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hero-image-wrapper {
    margin: 0 1rem;
  }

  .image-border-frame {
    border-radius: 24px;
    padding: 10px;
  }

  .image-border-frame::before {
    border-radius: 20px;
  }

  #seccionImgPrincipal img {
    border-radius: 20px;
  }

  .hero-image-wrapper::after {
    border-radius: 0 0 20px 20px;
  }

  #seccionInfo {
    padding: 3rem 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  #premava {
    max-width: 350px;
    margin-bottom: 0.75rem;
  }

  .info-text {
    font-size: 1.1rem;
  }

  .info-text.highlight {
    font-size: 1.2rem;
  }

  #seccionPilates {
    border-radius: 20px;
  }

  .image-border-frame.pilates-frame {
    padding: 10px;
  }

  #seccionPilates img {
    height: 350px;
    border-radius: 14px;
  }

  .pilates-content {
    padding: 2.5rem;
  }

  .pilates-title {
    font-size: 2rem;
  }

  .pilates-text {
    font-size: 1.2rem;
  }

  .pilates-options {
    flex-direction: row;
    gap: 2rem;
  }

  .option-card {
    flex: 1;
  }

  #verHorarios {
    max-width: 350px;
    padding: 0;
    min-height: 55px;
    font-size: 1.2rem;
  }

  .social-title {
    font-size: 1.75rem;
  }

  #seccionRedes img {
    width: 70px;
    height: 70px;
  }

  .map-title {
    font-size: 1.75rem;
  }

  #mapa {
    height: 400px;
  }
}

/* ============================================
   DESKTOP STYLES (min-width: 1024px)
   ============================================ */

@media screen and (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  .hero-image-wrapper {
    margin: 0 auto;
    max-width: 1400px;
  }

  .image-border-frame {
    border-radius: 28px;
    padding: 12px;
  }

  .image-border-frame::before {
    border-radius: 24px;
  }

  #seccionImgPrincipal img {
    border-radius: 24px;
  }

  .hero-image-wrapper::after {
    border-radius: 0 0 24px 24px;
  }

  #seccionInfo {
    padding: 4rem 3rem;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  #premava {
    max-width: 450px;
    margin-bottom: 1rem;
  }

  .info-content {
    max-width: 900px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  .info-text {
    font-size: 1.15rem;
  }

  .info-text.highlight {
    font-size: 1.3rem;
  }

  #seccionPilates {
    max-width: 1400px;
    border-radius: 24px;
  }

  .pilates-container {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
  }

  .image-border-frame.pilates-frame {
    padding: 14px;
  }

  #seccionPilates img {
    height: 100%;
    min-height: 500px;
    border-radius: 16px;
  }

  .pilates-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .pilates-title {
    font-size: 2.25rem;
    text-align: left;
  }

  .pilates-text {
    font-size: 1.25rem;
    text-align: left;
  }

  .pilates-options {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-button-wrapper {
    justify-content: flex-start;
  }

  #verHorarios {
    max-width: 400px;
    padding: 0;
    min-height: 60px;
    font-size: 1.25rem;
  }

  #seccionRedes {
    padding: 3rem 2rem;
  }

  .social-title {
    font-size: 2rem;
  }

  .social-links {
    gap: 3rem;
  }

  #seccionRedes img {
    width: 80px;
    height: 80px;
  }

  #seccionMapa {
    padding: 3rem 2rem;
  }

  .map-title {
    font-size: 2rem;
  }

  .map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }

  #mapa {
    height: 500px;
  }
}

/* ============================================
   LARGE DESKTOP STYLES (min-width: 1440px)
   ============================================ */

@media screen and (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .section-title {
    font-size: 3rem;
  }

  #premava {
    max-width: 550px;
  }

  .info-text {
    font-size: 1.25rem;
  }

  .pilates-title {
    font-size: 2.5rem;
  }

  .pilates-text {
    font-size: 1.3rem;
  }

  .social-title,
  .map-title {
    font-size: 2.25rem;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
  opacity: 1;
}

/* Fade In */
.fade-in {
  transform: scale(0.95);
}

.fade-in.animate {
  transform: scale(1);
}

.fade-in-delay {
  transform: scale(0.95);
  transition-delay: 0.2s;
}

.fade-in-delay.animate {
  transform: scale(1);
}

/* Slide Up */
.slide-up {
  transform: translateY(50px);
}

.slide-up.animate {
  transform: translateY(0);
}

.slide-up-delay {
  transform: translateY(50px);
  transition-delay: 0.15s;
}

.slide-up-delay.animate {
  transform: translateY(0);
}

.slide-up-delay-2 {
  transform: translateY(50px);
  transition-delay: 0.3s;
}

.slide-up-delay-2.animate {
  transform: translateY(0);
}

/* Slide Down */
.slide-down {
  transform: translateY(-50px);
}

.slide-down.animate {
  transform: translateY(0);
}

/* Slide Left */
.slide-left {
  transform: translateX(-50px);
}

.slide-left.animate {
  transform: translateX(0);
}

/* Slide Right */
.slide-right {
  transform: translateX(50px);
}

.slide-right.animate {
  transform: translateX(0);
}

/* ============================================
   ANIMATIONS & INTERACTIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  #seccionImgPrincipal img:hover {
    transform: scale(0.99);

  }



  #seccionPilates img:hover {
    transform: scale(1.05);
  }

  .image-border-frame.pilates-frame:hover {
    box-shadow: 
      0 12px 40px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  }
}

/* Accesibilidad: respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}
