/* Reset básico */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* evita scroll horizontal */
}

/* Imágenes base (seguro) */
img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* HEADER */
header{
  box-shadow: 0 6px 80px 100px rgba(136, 77, 21, 0.97);
}

/* WhatsApp */
#wsp{
  width: 70px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 300;
}
#wsp img{ width:100%; height:auto; display:block; }

/* NAV (DESKTOP) */
.topnav{
  height: 85px;
  width: 100%;
  background-color: rgba(136, 77, 21, 0.99);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 24px;
  gap: 24px;
  margin-bottom: 0;
}

.logo{
  width: 250px;
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logoImg{
  height: 85px;
  width: 100%;
  object-fit: contain;
}

/* Menú ocupa el resto */
.indice_menu{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex: 1;
  align-items: stretch;
  height: 100%;
}

/* Cada item */
.indice{
  height: 100%;
  flex: 1;
  border-left: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: stretch;
  min-width: 0;
}

/* Link ocupa todo */
.indice_link{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.9);

  font-size: clamp(14px, 1.15vw, 22px);
  letter-spacing: clamp(1px, .25vw, 4px);

  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-style: normal;

  text-align: center;
  height: 100%;
  width: 100%;
  position: relative;

  white-space: nowrap;
}

.indice_link:hover{
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.02)
  );
}

.indice_link::after{
  content: "";
  position: absolute;
  bottom: 17px;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: rgba(255,255,255,0.75);
  transform: translateX(-50%);
  transition: width .25s ease;
}

.indice_link:hover::after{
  width: 55%;
}

/* MAIN */
.mainTrl{
  padding-top: 0;
  background: rgba(136, 77, 21, 0.767);
  width: 100%;
}

/* HERO (DESKTOP: como vos querías) */
.hero{
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero img{
  width: 85%;
  height: 1150px;
  object-fit: cover;
  margin: 0;
}

/* FOOTER (importante: NO height fijo) */
footer{
  background-color: rgba(136, 77, 21, 0.94);
  min-height: 120px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 80px 100px rgba(136, 77, 21, 0.75);
  position: relative;
  z-index: 1;
}

.logofoot{
  display: flex;
  align-items: center;
  justify-content: center;
}

.logoImgfoot{
  width: 250px;
  height: auto;
  object-fit: contain;
  display:block;
}

/* Botón volver al nav (flecha) */
#btnVolverNav{
  position: fixed;
  right: 40px;
  bottom: 140px;
  width: 56px;
  height: 82px;
  z-index: 350;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
#btnVolverNav img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#btnVolverNav.mostrar{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* INDICES (otras páginas) */
.mainIndice{
  background: rgba(136, 77, 21, 0.767);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "roboto", sans-serif;
  font-size: 30px;
}
.textoIndice{
  font-family: "roboto", sans-serif;
  font-size: 30px;
  text-align: center;
  width: 55%;
}
.tituloIndice{
  font-family: "Playfair Display", serif;
  font-size: 45px;
  text-align: center;
  width: 55%;
  margin-top: 100px;
}
li{
  text-align: left;
  margin-bottom: 15px;
}
.liFlecha{ list-style: none; }
.liSquare{ list-style: square; }

form{ text-align: center; }

.form{
  font-size: 22px;
  font-family: "roboto", sans-serif;
  width: 1000px;
  height: 50px;
  margin-bottom: 20px;
}

#msj{
  width: 1000px;
  height: 200px;
  font-size: 22px;
  font-family: "roboto", sans-serif;
  margin-bottom: 20px;
  padding: 10px;
}

#envio{
  height: 50px;
  width: 200px;
  margin-bottom: 20px;
  font-family: "roboto", sans-serif;
  font-size: 25px;
  font-weight: bold;
  color: rgb(136, 77, 21);
  background-color: rgb(255, 255, 255);
  border-color: rgb(255, 161, 73, 0.507);
  border-radius: 10px;
}

.formAlert{
  display:none;
  margin: 12px auto 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: "roboto", sans-serif;
  font-size: 18px;
  width: min(1000px, 92%);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.formAlert.ok{
  display:block;
  background: rgba(233, 247, 239, 0.95);
  border: 1px solid rgba(191, 232, 207, 0.95);
  color: #1f6b3a;
}
.formAlert.err{
  display:block;
  background: rgba(253, 236, 236, 0.95);
  border: 1px solid rgba(245, 188, 188, 0.95);
  color: #8a1f1f;
}

/* =====================================
   RESPONSIVE (UN SOLO BLOQUE, LIMPIO)
   ===================================== */
@media (max-width: 900px){

  /* En móvil: sombras gigantes quedan feas */
  header{ box-shadow: none; }
  footer{ box-shadow: none; }

  /* NAV a columna */
  .topnav{
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
    overflow: visible;
  }

  .logo{
    width: min(220px, 70%);
    justify-content: center;
  }
  .logoImg{
    height: 56px;
    width: 100%;
  }

  /* Menú en grid */
  .indice_menu{
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-items: center;
  }

  .indice{
    width: 100%;
    border-left: none;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 12px;
    height: auto;
    overflow: hidden;
  }

  .indice_link{
    width: 100%;
    padding: 10px 10px;
    font-size: 16px;
    letter-spacing: 1px;
    white-space: normal;
  }

  .indice_link::after{
    bottom: 10px;
  }

  /* HERO: full width (solo en móvil) */
  .hero img{
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  /* Footer logo */
  .logoImgfoot{
    width: min(240px, 80%);
  }

  /* Botones flotantes */
  #wsp{
    width: 60px;
    right: 14px;
    bottom: 14px;
  }
  #btnVolverNav{
    right: 14px;
    bottom: 95px;
    width: 52px;
    height: 78px;
  }

  /* Índices */
  .textoIndice,
  .tituloIndice{
    width: min(92%, 700px);
  }
  .tituloIndice{
    margin-top: 50px;
    font-size: clamp(28px, 6vw, 45px);
  }
  .textoIndice{
    font-size: clamp(18px, 4.5vw, 30px);
  }

  /* Form responsive */
  .form{
    width: min(1000px, 92%);
    font-size: 18px;
  }
  #msj{
    width: min(1000px, 92%);
    font-size: 18px;
  }
  #envio{
    width: min(240px, 70%);
    font-size: 20px;
  }
}

@media (max-width: 520px){
  .indice_menu{
    grid-template-columns: 1fr;
  }
  .logoImg{
    height: 62px;
  }
}
/* ===== Ajuste fino MOBILE (centrar y achicar) ===== */
@media (max-width: 900px){

  /* Centrar todo el bloque principal */
  .mainTrl{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* HERO más chico y centrado */
  .hero{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero img{
    width: 92%;
    max-width: 92%;
    height: auto;
    border-radius: 8px;
  }

  /* Menú un poco más compacto */
  .indice_menu{
    width: 92%;
  }

  .indice{
    width: 100%;
  }

  /* Logo footer centrado real */
  .logofoot{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .logoImgfoot{
    width: 70%;
    max-width: 240px;
  }
}
/* =========================
   AJUSTES DESKTOP - ÍNDICES
   (no afecta mobile)
   ========================= */
@media (min-width: 901px){

  /* Achicar un poco el texto solo en desktop */
  .textoIndice{
    font-size: 1.3rem;
    text-align: center;/* probá 1.2rem si lo querés más chico */
  }

  /* Que los items no se corten en varias líneas */
  .textoIndice li{
    white-space: nowrap;
    text-align: center;
  }

  /* Para que entre más texto por línea */
  .textoIndice{
    width: 80%;          /* antes 55% -> demasiado angosto */
    text-align: center;    /* si lo dejás centrado, se ve raro para listas */
  }
}