/* ================= HERO ================= */
#HeroSection {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.HeroimageContainer {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.HeroimageContainer img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}
.textBlock {
    color: white;
    position: absolute;
    top: 50%;
    left: 36%;
    transform: translate(-50%, -50%);
    padding-right: 150px;
    text-align: left;
    opacity: 0;
}
.textBlock h1, .textBlock h2 {
    font-family: "Lora", sans-serif;
}
.textBlock h1 {
    font-size: 40px;
}
.textBlock p {
    font-size: 1.5rem;
    text-align: left;
    font-family: "Urbanist", sans-serif;
}
#text1 { opacity: 1; }

/* ================= ABOUT ME ================= */
#AboutMe {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #171717;
}
.containerAbout {
    width: 60%;
    height: fit-content;
    padding-right: 30px;
    padding-left: 30px;
    text-align: left;
}
.imageContainer {
    background-color: #171717;
    height: auto;
    position: relative;
    width: 40%;
    display: flex;
    justify-content: start;
    align-items: start;
    overflow: hidden;
}
.imageContainer img {
    width: 100%;
    height: 100vh;
    border-radius: 10px;
    object-fit: cover;
}
#AboutMe h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: whitesmoke;
    font-family: "Lora", sans-serif;
}
#AboutMe p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #ddd;
    font-family: "Urbanist", sans-serif;
    max-width: 600px;
    text-align: justify;
}

/* ================= CARRUSEL ================= */
#carruselTextSection {
    height: 60vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoomContainer {
    width: 100%;
    height: 100%;
    padding:0;
    background-image: url('https://jorgeserratos.com/wp-content/uploads/2025/08/DSC04802-scaled.jpg');
    background-size: cover;
    background-position: center;
}

.carruselText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem; /* más grande en desktop */
  color: white;
  font-family: "Urbanist", sans-serif;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity, font-size;
  line-height: 1.2;
  padding: 0 15px;

  /* 🔥 Clave: que el zoom crezca desde el centro */
  transform-origin: center center;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
    #HeroSection { display: none; }
    #AboutMe { flex-direction: column; height: auto; }
    .imageContainer { width: 100%; height: auto; justify-content: center; align-items: center; }
    .imageContainer img { width: 100%; height: auto; max-height: 60vh; border-radius: 0; object-fit: cover; }
    .containerAbout { width: 100%; padding: 20px; text-align: center; }
    .containerAbout p { text-align: justify; }

    /* 🔥 Carrusel ajustado en móvil */
    #carruselTextSection {
        height: 50vh;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        padding: 0 10px;
    }

    /* 🔥 Texto centrado y preparado para zoom */
    .carruselText {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2.2rem;   /* base más chica */
        line-height: 1.3;
        text-align: center;
        max-width: 90%;
        opacity: 1;

        /* 🔥 asegura origen al centro */
        transform-origin: center center;
    }

    /* 🔥 Cuando entra zoom */
    .carruselText.zooming {
        font-size: 2rem; /* sube más el tamaño al hacer zoom */
    }
}
