/* ---- CONTENIDO GENERAL ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

#contenedor {
    width: 100%;
    height: 98%;
    margin: auto;
    background-color: #e5d2b8;
}

.secciones {
    height: auto;
    min-height: 300px;
}

/* ---- FIN CONTENIDO GENERAL ---- */

/* ---- NAVBAR ---- */
header {
    background-color: #F3E5C7;
    height: 8vh;
    width: 100vw;
    position: fixed;
    z-index: 9999;
}

.menu-toggle {
    display: none;
}

nav ul {
    display: flex;
    height: 8vh;
    width: 60vw;
    align-items: center;
    justify-content: space-around;
    list-style: none;
    font-size: 25px;
    color: #000;
    margin: 0 0 0 5%;
}

nav ul a {
    text-decoration: none;
    color: #000;
}

.dropdown a {
    color: #000;
}

.dropdown-menu {
  display: none;      /* 🔴 oculto al inicio */
  position: absolute;
  background: #F3E5C7;
  list-style: none;
  border-radius: 5px;
  margin: 0;
  padding: 0;
  width: 160px;
  height: 100px;
}

nav ul li a:hover {
  color: #fff;
}

.dropdown-menu li:hover{
    background-color: #d2ab80;
    border-radius: 5px;
}

.dropdown.active .dropdown-menu {
  display: block;     /* 🟢 visible cuando .dropdown tiene .active */
}
/* ---- FIN NAVBAR ----*/

/* ---- MAIN POSICION ---- */
  main div{
  position: absolute;   /* los sacamos del flujo */
  width: 100%;          /* para que ocupen todo el ancho */
  height: 1px;          /* casi invisibles */
  pointer-events: none; /* no interfieren con clics */
  }

#inicio { top: 0; }
#rucadug { top: 650px; }
#posi-comu { top: 1350px; }
#cont-posi { top: 3000px; }


/* ---- fIN MAIN ---- */

/* ---- SECCION HOME ---- */
#icono-wsp-flotante{
  position: fixed;
  right: 0;
  bottom: 0;
  margin: 0 1% 1% 0;
  width: 60px;
  height: 60px;
  background-color: #D2AB80;
  border-radius: 50%; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#icono-wsp-flotante:hover {
  border-radius: 20%;
}

#home{
    background: url("img\ utilizadas/rucaseccionprinci.webp") no-repeat center center;
    min-height: 100vh;
    background-size: cover; /* la adapta al ancho/alto */
    display: flex;
    align-items: center;
    justify-content: center;
}

.part-home{
  width: 50%;
  height: 100vh;
}

#left-home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#right-home {
    display: flex;
  justify-content: center;
  align-items: center;
}

#titulo{
    width: 96%;
    height: 30%;
    max-width: 650px;
    max-height: 250px;
    background: url("img\ utilizadas/sinfondoruca.webp") no-repeat center center;
    background-size: cover;
}

.none-style-boton{
  list-style: none;
  color: #000;
}

#boton{
    background-color: #d2ab80;
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    padding: 3px;
    aspect-ratio: 4 / 1;
    transition: all 0.5s ease; 
}

#boton:hover{
  color: #fff;
  border-radius: 50% 0 50% 0;
}

.foto{
    border-radius: 50%;
    transition: transform 1s ease, box-shadow 1s ease;
    animation: flotar 4s ease-in-out infinite;
}

#foto1 {
    z-index: 10;
    background: url("img\ utilizadas/imgfoto1home.webp") no-repeat center center;
    background-size: cover;
    margin: -30% -80% 0 0;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4 / 3; /* 🟢 mantiene siempre proporción */
    border-radius: 50%;
    object-fit: cover;   /* asegura que se vea bien dentro de su forma */
    display: block;
    animation-delay: 1s;
}

#foto2 {
    z-index: 20;
    background: url("img\ utilizadas/imgfoto2home.webp") no-repeat center center;
    background-size: cover;
      width: 100%;
      max-width: 350px;
      aspect-ratio: 4 / 3; /* 🟢 mantiene siempre proporción */
      border-radius: 50%;
      object-fit: cover;   /* asegura que se vea bien dentro de su forma */
      display: block;
      margin: 0 -5% -20% 0;
      animation-delay: 2s;
}

#foto3 {
    z-index: 30;
    background: url("img\ utilizadas/imgfoto3home.webp") no-repeat center center;
    background-size: cover;
      width: 100%;
      max-width: 250px;
      aspect-ratio: 4 / 3; /* 🟢 mantiene siempre proporción */
      border-radius: 50%;
      object-fit: cover;   /* asegura que se vea bien dentro de su forma */
      display: block;
    margin: 0 -10% -30% 0;
    animation-delay: 3s;
}

@keyframes flotar {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  }
}

/* ---- FIN SECCION HOME ---- */

/* ---- SECCION QUE ES RUCA ---- */
#queesruca {
    display: flex;
}

#cont-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2 {
    font-size: 60px;
    text-align: center;
    font-family: "Bitter", serif;
    font-weight: 500;
    color: #7b5446;
}

.autoshow{
  animation: text-appear both;
  animation-timeline: view();
}

@keyframes text-appear{
  from{
    opacity: 0;
    transform: translateY(100px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.importante-estilo{
    color: #7b5446;
    -webkit-text-stroke: 1px black;
}

#texto-qruca {
    text-align: center;
    font-size: 25px;
    max-width: 90%;
    margin-top: 40px;
    color: #000;
}

.laterales {
    display: flex;
    width: 70%;
    height: 500px;
}


#lderechoimg {
    justify-content: end;
}

/* ---- FIN SECCION QUE ES RUCA ---- */

/* ---- SECCION COMUNIDAD ---- */
#comunidad {
    display: flex;
    background: url("img\ utilizadas/ruca-seccion-comu.webp") no-repeat center center;
    background-size: cover;
    height: 750px;
    align-items: end;
}

.cont-comu {
    height: 600px;
    width: 50%;
}

#h3-comunidad{
    font-size: clamp(1.5rem, 4vw, 4rem);
}

#contex{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: end;
    gap: 20px;
}

.tex-comu{
    display: flex;
    justify-content: start;
    font-size: 25px;
    width: 80%;
    color: #fff;
    height: 15%;
    margin: 20px 0 0 0;
}

#insignia{
  display: none;
}

#h3-comunidad{
    color: #7b5446;
    font-weight: 500;
}

/* division 2*/

.imgc {
    height: 20%;
    width: 100%;
    display: flex;
    max-width: 100vw; /* nunca más ancha que la pantalla */
  overflow: hidden; /* evita que se desborde */
}

#imgc1 {
    justify-content: center;
    transition: transform 0.4s ease;
}

#imgc1-hijo{
  margin: 1% 0 0 0;
  height: 95%;
  width: auto;
  overflow: hidden; /* evita que se desborde */
}

#imgc1:hover{
    transform: translateY(-10px); /* se “eleva” */
}

#imgc2 {
    justify-content: start;
    align-items: end;
    padding: 0 0 2% 0;
    transition: transform 0.4s ease;
}

#imgc2-hijo{
  height: 63%;
  width: auto;
  overflow: hidden; /* evita que se desborde */
}

#imgc2:hover{
    transform: translateY(-10px); /* se “eleva” */
}

#imgc3 {
  display: flex; 
    justify-content: flex-end;
    align-items: center;
    padding: 0 5% 2% 0;
    transition: transform 0.4s ease;
}

#imgc3-hijo{
  height: 97%;
  width: auto;
  overflow: hidden; /* evita que se desborde */
}

#imgc3:hover{
    transform: translateY(-10px); /* se “eleva” */
}

#imgc4 {
  transition: transform 0.4s ease;
}

#imgc4-hijo{
  height: 75%;
  width: auto;
  overflow: hidden; /* evita que se desborde */
}

#imgc4:hover{
    transform: translateY(-10px); /* se “eleva” */
}

#imgc5 {
    justify-content: end;
    padding: 0 5% 0 0;
    transition: transform 0.4s ease;
}

#imgc5-hijo{
  height: 75%;
  width: auto;
  overflow: hidden; /* evita que se desborde */
}

#imgc5:hover{
    transform: translateY(-10px); /* se “eleva” */
}

/* ---- FIN SECCION COMUNIDAD ----*/


/* ---- SECCION HORAYDELY ---- */
#horaydely{
    display: flex;
    justify-content: center;
    background: url("img\ utilizadas/ruca-seccion-dely.webp") no-repeat top center;
    background-size: cover;
}

.cont-dely{
    height: 750px;
    max-height: 850px;
    width: 33%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    margin-top: 5%;
    font-size: 30px;
    color: #d2ab80;
    gap: 3%;
}

.h-cont-dely {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

h4{
    font-family: "Bitter", sans-serif;
    font-size: 40px;
    font-weight: 500;
}

.retrato{
    height: 50%;
    width: 70%;
    border-radius: 0 0 100% 100%;
}

#r-img-degus{
    background: url(img\ utilizadas/h-dely-img.webp) no-repeat center center;
    background-size: cover;
}

#r-img-dely{
    background: url(img\ utilizadas/h-dely-img-2.webp) no-repeat center center;
    background-size: cover;
}

#r-img-hora{
    background: url(img\ utilizadas/h-dely-img-3.webp) no-repeat center center;
    background-size: cover;
}
/* ---- FIN SECCION HORAYDELY ---- */

/* ---- SECCION CONTACTO ----*/
#contacto {
    display: flex;
    justify-content: center;
    align-items: end;
    background: url("img\ utilizadas/ruca-seccion-contact.webp") no-repeat top center;
    background-size: cover;
    height: 400px;
}

.cont-contacto{
    height: 250px;
    width: 33%;
    margin: 0 0 20px 0;
}

#cont-maps{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 0 0 0 50px;
}

#cont-infor{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

 #iconos-posicion{
  margin: 3% 0 0 0;
}

.weight-p-contactos {
    font-weight: 700;
    font-size: 18px;
}

#mapa-cont{
  max-width: 280px;
  border-radius: 5px;
}

.ruca-img-ultima{
    height: 100%;
    width: 350px;
    background: url("img\ utilizadas/sinfondoruca.webp") no-repeat center center;
    background-size: cover;
}

#edit-size-p{
    font-size: 25px;
}
/* ---- FIN SECCION CONTACTO ----*/


/* ---- MEDIAQUERIES ---- */
@media (max-width: 1350px) {
  #boton{
    aspect-ratio: 4 / 1; /* 🟢 mantiene siempre proporción */
  }

  #foto1{
    margin: -30% -90% 0 0
  }

  #foto2{
    margin: 0 -10% -45% 0;
  }

  #foto3{
    margin: 0 0 -40% 0;
  }

  nav ul {
    height: 8vh;
    width: 90vw;
  }

  #contimgc{
    overflow: hidden; /* evita que se desborde */
  }

  #imgc1-hijo{
  }

  #imgc2{
  }

  #imgc2-hijo{
  }

  #imgc3{
  }

  #imgc3-hijo{
  }

  #imgc4-hijo{
  }

  #imgc5-hijo{
  }

  .retrato{
    max-height: 40%;
  }

  .h-cont-dely{
    font-size: 25px;
  }

  .ruca-img-ultima{
    max-height: 100%;
    max-width: 250px;
  }

}


@media (max-width: 1000px) {
  #home{
    flex-direction: column;
  }

  .part-home{
  }

  #left-home{
    padding: 0;
  }

  #boton{
    margin: 0;
    width: 90%;
  }

  #foto1{
    margin: -40% -70% 0 0;
  }

  #foto2{
    margin: 0 -10% -10% 0;
  }
  
  #foto3{
    margin: 0 -20% -25% 0;
  }

  #img-qer-left{
    max-height: 70%;
  }

  #img-qer-right{
    max-height: 70%;
  }

  .tex-comu{
    font-size: 16px;
  }

  #imgc1-hijo{
    max-height: 80%;
  }

  #imgc2{
    align-items: center;
  }

  #imgc2-hijo{
    max-height: 53%;
  }

  #imgc3{
    align-items: start;
  }

  #imgc3-hijo{
    max-height: 65%;
  }

  #imgc4-hijo{
    max-height: 62%;
  }

  #imgc5-hijo{
    max-height: 58%;
  }

  #horaydely{
  }

  .cont-dely{
    max-height: 400px;
    justify-content: end;
    gap: 10%;
  }

  .retrato{
    max-height: 30%;
  }
  
  h4{
    font-size: 25px;
  }

  .h-cont-dely{
    font-size: 16px;
  }

  #mapa-cont{
    max-height: 80%;
    max-width: 200px;
  }

  #edit-size-p{
    font-size: 16px;
  }

  .ruca-img-ultima{
    max-height: 100%;
    max-width: 250px;
  }
}


@media (max-width: 768px) {

   * {
    font-size: 16px; /* Ajustar texto */
  }

  header {
    background-color: transparent;
    height: auto;
    width: auto;
    position: fixed;
    z-index: 9998;
}

.menu-toggle {
  margin-top: 4%;
  position: absolute;
  top: 3%;
  left: 4%;
  display: block;
  font-size: 40px;
  z-index: 9999;
}



nav ul {
  background-color: #E5D2B8;
    flex-direction: column;
    width: 100vw;
    align-items: center;
    justify-content: space-around;
    list-style: none;
    font-size: 30px;
    color: #000;
    margin: 0;
    padding: 0;
}

.mostrar-movil{
  border: solid;
  display: flex;
  opacity: 0;
  transform: translateY(-20px);
  height: 0;
  overflow: hidden;
  transition: all 0.6s ease;
}

.mostrar-movil.show {
  display: flex;     /* 🟢 visible cuando .mostrar-movil tiene .show */
  opacity: 1;
  transform: translateY(0);
  height: 70vh;
 }

 .mostrar-movil li {
  margin: 10px 0;
}

.mostrar-movil a {
  text-decoration: none;
  color: #000;
}

/* ---- MAIN POSICION ---- */
  main div{
  position: absolute;   /* los sacamos del flujo */
  width: 100%;          /* para que ocupen todo el ancho */
  height: 1px;          /* casi invisibles */
  pointer-events: none; /* no interfieren con clics */
  }

#inicio { top: 0; }
#rucadug { top: 520px; }
#posi-comu { top: 1400px; }
#cont-posi { top: 2400px; }


  .none-movile{
    display: none;
  }


  #home {
    min-height: 80vh;
  }

  #contenedor {
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* evita scroll horizontal raro */
}

      .secciones {
    background: none !important;   /* ❌ quita cualquier imagen */
    background-color: #F3E5C7;     /* ✅ ponés un color de respaldo */
    min-height: auto;              /* opcional, la altura se adapta al contenido */
    min-height: 50px;
  }

  #icono-wsp-flotante{
  position: fixed;
  right: 0;
  bottom: 0;
  margin: 0 4% 4% 0;
}

  #right-home{
    display: none;
  }

  #left-home{
    justify-content: space-evenly;
  }

  #titulo{
    height: 75%;
    min-width: 250px;
    margin: 30% 0 0 0;
  }

  .none-style-boton{
    width: 60%;
    height: 6%;
    margin: 0 0 30% 0;
  }

  #boton{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
  }


  h2{
    font-size: 30px;
    max-width: 80%;
  }

  #queesruca{
    padding: 60px 0 30% 0;
  }

  #texto-qruca{
    font-size: 16px;
    max-width: 80%;
  }

  #horaydely {
    display: flex;
    max-width: 90vw;
    gap: 0;
    padding: 0 0 30% 0;
    margin: 0;
  }


  .cont-dely {
    min-width: 40%;
    margin-right: -40px; /* 🔑 efecto de superposición */
    transition: transform 0.7s ease;
    border: solid #000;
    justify-content: center;
    background: #fff;
    color: #000;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  
.cont-dely:hover {
  transform: translateY(-8px); /* se “eleva” */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

  .cont-dely.activa {
    transform: scale(1.1) !important; /* 🔥 agranda la carta tocada */
    z-index: 10 !important;
  }
  
  h4{
    font-size: 20px;
  }

  .laterales{
    display: none;
  }

  #foto1{
    width: 70%;
    height: 30%;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  #foto2{
    display: none;
  }

  #foto3{
   display: none;
  }

  #comunidad {
    height: auto;
    justify-content: center;
    align-items: center;
  }

  .cont-comu{
    min-width: 80%;
  }

  .tex-comu{
    justify-content: center;
    text-align: center;
  }

  #insignia{
    display: block;
    border-radius: 10px;
  }

  #h3-comunidad{
    margin: 5% 0 0 0;
    text-align: start;
  }

  #contimgc{
    display: none;
  }

  #contex{
    max-width: 80%;
    justify-content: center;
    align-items: center;
  }

  .retrato{
    display: none;
  }

  img {
    max-width: 100%; /* Que las imágenes nunca se salgan */
    height: auto;
  }

  #contacto{
    height: auto;
    flex-direction: column-reverse;
    font-size: 16px;
    align-items: center;
  }

  .cont-contacto{
    height: auto;
  }

  #cont-infor{
    display: flex;
    flex-direction: column;
  }

  #iconos-posicion{
    margin: 0;
    display: flex;
    flex-direction: row;
    padding: 10px;
    gap: 30px;
  }

  #boton-wsp-fijo{
    display: none;
  }

  #delete-moviles{
    display: none;
  }

  #edit-size-p{
    display: none;
}

.h-contact-2{
  width: 90vw;
  display: flex;
  justify-content: center;
}

  #cont-maps{
    align-items: center;
    width: 90vw;
    gap: 0;
    padding: 0;
  }

  #mapa-cont{
    width: 60%;
    min-width: 210px;
    border-radius: 5px;
  }

#cont-rucabot{
    display: none;
}

}