*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #050608;
  color: #f7f7f7;
}

/* UTILIDADES */
.section-title {
  font-weight: 600;
  font-size: 2.1rem;
  color: #ffffff;
}

/* NAVBAR */
.az-nav {
  height: 100px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(3, 6, 12, 0.96);
  overflow: visible; /* IMPORTANTE */
}


.az-logo {
  height: 180px; /* tu tama帽o real grande */
  width: auto;
  position: relative;
  top: 0px; /* empuja visualmente hacia abajo sin afectar el nav */
  z-index: 10;
}


.navbar-dark .navbar-nav .nav-link {
  color: #d0d0d0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ff9f33;
}

.btn-orange {
  background: linear-gradient(135deg, #ff8c00, #ffb347);
  color: #0c0c0c;
  border-radius: 999px;
  padding: 10px 20px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 25px rgba(255, 140, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-orange:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(255, 140, 0, 0.35);
  color: #0c0c0c;
}

.btn-ghost {
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 500;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* Bot杌妌 idioma */
.lang-nav-btn-small {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.lang-nav-btn-small img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* HERO */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden;
  background: radial-gradient(circle at top, #1a2235 0, #050608 55%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.75;
}

#drift .float1,
#drift .float2,
#drift .float3,
#drift .float4,
#drift .float5 {
  animation: azFloat 18s infinite ease-in-out;
}

#drift .float2 {
  animation-delay: -3s;
}
#drift .float3 {
  animation-delay: -6s;
}
#drift .float4 {
  animation-delay: -9s;
}
#drift .float5 {
  animation-delay: -12s;
}

@keyframes azFloat {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(15px, -25px, 0);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.2;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
   margin-top: -20%; /* sube */
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
  color: #FF6A00;
}

.hero p {
  font-size: 1.1rem;
  color: #d8d8d8;
  max-width: 1080px;
  margin: 0 auto 22px auto;
}

/* DEMO CASA + TABLET */
.aztech-demo-section {
  padding: 70px 0 40px 0;
  background: #050608;
}

.aztech-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.aztech-house-svg {
  width: 100%;
  max-width: 620px;
  filter: drop-shadow(0 15px 45px rgba(0, 0, 0, 0.7));
}

.room-label {
  fill: #ffffff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.az-light {
  fill: #ffb347;
  filter: drop-shadow(0 0 8px rgba(255, 180, 71, 0.8));
}

.az-camera rect {
  fill: #202020;
}
.az-camera circle {
  fill: #00ffe1;
}

.az-speaker rect {
  fill: #2b2b2b;
}

.az-lock rect {
  fill: #ff8c00;
}

/* Tablet */
.aztech-tablet {
  width: 100%;
  max-width: 340px;
  border-radius: 26px;
  background: radial-gradient(circle at top, #1c2030 0, #050608 55%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8);
  padding: 18px 16px 22px;
  color: #ffffff;
}

.tablet-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
}

.tablet-logo {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbbbbb;
}

.tablet-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tablet-row {
  display: flex;
  gap: 10px;
}

.tablet-btn {
  flex: 1;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.75);
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.tablet-btn:hover {
  background: rgba(255, 140, 0, 0.25);
  border-color: rgba(255, 140, 0, 0.8);
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.6);
  transform: translateY(-1px);
}

.tablet-btn-full {
  flex: 1;
}

/* ICON SLIDER */
#tech-icons {
  background: radial-gradient(circle at top, #101522 0, #050608 60%);
}

.light-beam {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.icon-slider {
  overflow: hidden;
  position: relative;
}

.icon-track {
  display: inline-flex;
  gap: 38px;
  font-size: 3.0rem;
  color: #ffb347;
  white-space: nowrap;
  animation: iconScroll 18s linear infinite;
}

.icon-track i {
  opacity: 0.75;
}

@keyframes iconScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* SERVICES */
#services {
  background: #070b10;
}

.svc-card {
  background: radial-gradient(circle at top, #151a25 0, #050608 80%);
  border-radius: 18px;
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.svc-icon {
  font-size: 2.3rem;
  color: #ff9f33;
  margin-bottom: 10px;
}

.svc-title {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.btn-xs {
  padding: 7px 14px;
  font-size: 0.8rem;
}

/* MODALES */
.az-modal {
  background: radial-gradient(circle at top, #151a25 0, #050608 80%);
  color: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-icon {
  font-size: 2.2rem;
  color: #ffb347;
}

.az-modal h3 {
  margin-bottom: 12px;
}

.az-modal ul {
  padding-left: 1.2rem;
  text-align: left;
}

.az-modal li {
  margin-bottom: 6px;
  font-size: 0.94rem;
}

/* PROJECTS BOOK */
#projects {
  background: #050608;
}

.book-wrapper {
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.book {
  position: relative;
  flex: 1;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr;
}

.page {
  display: none;
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.page-content {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.page-content img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.page-content .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 55%);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.page-content .overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.page-content .overlay p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.book-nav {
  border-radius: 999px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(7, 10, 16, 0.9);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.book-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffb347;
  transform: translateY(-1px);
}

/* CONTACT */
.contact-section {
  background: #000000;
}

.contact-section p {
  color: #dcdcdc;
}

/* FOOTER */
.az-footer {
  background: #050608;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.az-footer p {
  font-size: 0.85rem;
  color: #9f9f9f;
}

.hero-scroll-wrapper {
  position: absolute;
  bottom: 160px;
  center: 100%;
  transform: translateX(-50%);
  z-index: 5;
}

.hero-scroll-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 140, 0, 0.18);
  border: 1px solid rgba(255, 140, 0, 0.45);
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  color: #FF6A00;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  animation: floatPulse 4s infinite ease-in-out;
}

.hero-scroll-btn i {
  font-size: 1.3rem;
}

.hero-scroll-btn:hover {
  background: rgba(255, 140, 0, 0.35);
  border-color:#FF6A00;
  color: white;
  transform: translateY(-3px) translateX(-50%);
}

/* Animaci贸n suave */
@keyframes floatPulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(px); }
  100% { transform: translateY(0); }
}


/* RESPONSIVE */
@media (max-width: 991.98px) {
  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .aztech-demo-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .aztech-house-svg {
    margin: 0 auto;
  }

  .aztech-tablet {
    margin: 0 auto;
  }

  .book-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .page-content img {
    height: 280px;
  }

  .az-logo {
    height: 38px;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.7rem;
  }

  .icon-track {
    font-size: 1.5rem;
    gap: 24px;
  }

  .tablet-btn {
    font-size: 0.8rem;
  }

  .svc-card {
    padding: 22px 18px;
  }
}


/* 🔥 Floating Scroll Button */
.az-scroll-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c00, #ffb347);
  color: #0c0c0c;
  border: none;
  font-size: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999999;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.az-scroll-btn.show {
  opacity: 1 !important;
  pointer-events: auto !important;
}



