/* ==================================================
   RESET GLOBAL
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================================================
   HTML Y BODY
================================================== */
html,
body {
  height: 100%;
  overflow: hidden;
  background: #e65e25;
  font-family: "Inter", Arial, sans-serif;
}

/* Layout principal */
body {
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 12px -10px rgba(0, 0, 0, 0.35);
}

header picture,
header img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: none;
}

/* ==================================================
   CONTENEDOR PRINCIPAL (.main)
================================================== */
.main {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding-right: 0;
  -webkit-overflow-scrolling: touch;
  box-shadow: none;
  scrollbar-width: none; /* Firefox: oculta scrollbar nativo */
}

.main::-webkit-scrollbar {
  display: none; /* Chrome/Safari: oculta scrollbar */
  width: 0;
  height: 0;
}

/* Imágenes del contenido y contenedor picture */
.main picture {
  width: 100%;
  display: block;
  margin: 0;
}

.main picture img,
.main img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.main picture.visible img,
.main img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sin efecto hover */
.main img:hover {
  filter: none;
  transform: none;
}

/* ==================================================
   FOOTER ZONE
================================================== */
.footer-zone {
  width: 100%;
  min-height: 0;
  background: #3c3a3c;
  padding: 10px 0;
  box-sizing: border-box;
}

.footer-actions {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1000;
  opacity: 1;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.footer-actions.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
}

/* Botones */
#scrollTopBtn,
#homeBtn {
  position: static;
  transform: none;
  opacity: 0.95;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: all 0.25s ease;
}

#scrollTopBtn:hover,
#homeBtn:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: scale(1.03);
}

/* ==================================================
   RESPONSIVE
================================================== */
@media screen and (max-width: 768px) {
  .footer-zone {
    padding: 10px 0;
  }
  .footer-actions {
    left: 50%;
    bottom: 12px;
    gap: 6px;
    transform: translateX(-50%);
  }
  #scrollTopBtn,
  #homeBtn {
    padding: 7px 10px;
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .footer-zone {
    padding: 8px 0;
  }
  .footer-actions {
    left: 50%;
    bottom: 10px;
    gap: 6px;
    transform: translateX(-50%);
  }
  #scrollTopBtn,
  #homeBtn {
    padding: 6px 9px;
    font-size: 10.5px;
  }
}

/* ==================================================
   FOOTER LEGAL BAR
================================================== */
.footer-legal-bar {
  text-align: center;
  padding: 14px 10px 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2px;
}

.footer-legal-bar a {
  color: rgba(253, 82, 30, 0.7);
  text-decoration: none;
  font-weight: 400;
  margin-left: 3px;
  transition:
    color 0.2s ease,
    text-decoration 0.2s ease;
}

.footer-legal-bar a:hover {
  color: #fd521e;
  text-decoration: none;
}
