/* =======================================================
   Aztech Solutions - style.css
   Comentarios en español por secciones principales.
   ======================================================= */

/* ---------- Variables y base ---------- */
:root {
  --az-orange: #ff6a00;
  --az-green: #00ff7f; /* Acento eco */
  --az-bg1: #0b0d12;   /* Fondo tech profundo */
  --az-bg2: #0f1118;
  --az-text: #f3f3f3;
  --az-muted: #cfcfcf;
}
* { scroll-behavior: smooth }
body {
  background: radial-gradient(circle at 10% 0%, var(--az-bg1) 0%, var(--az-bg2) 100%);
  color: var(--az-text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

/* ---------- Navbar (estilos y halo superior) ---------- */
nav.navbar {
  height: 80px; min-height: 80px; max-height: 80px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  overflow: visible; padding: 0; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 0 24px rgba(0, 255, 127, 0.12), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
}
.navbar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background: radial-gradient(1200px 120px at 50% -40px, rgba(0, 255, 127, 0.18), transparent 60%);
  animation: navbarGlow 8s ease-in-out infinite alternate;
}
@keyframes navbarGlow { from { opacity: 0.15 } to { opacity: 0.3 } }

.navbar-brand { position: relative; overflow: visible; display: flex; align-items: center }
.navbar-brand img { height: 220px; transform: translateY(-12px); animation: glowPulse 3.8s ease-in-out infinite; transition: transform 0.3s ease, filter 0.3s ease }
.navbar-brand img:hover { animation-duration: 1.2s; filter: drop-shadow(0 0 16px rgba(255, 106, 0, 0.95)) }
@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 8px var(--az-orange)) }
  50% { filter: drop-shadow(0 0 14px rgba(255, 106, 0, 0.85)) }
  100% { filter: drop-shadow(0 0 8px var(--az-orange)) }
}

.btn-orange {
  background-color: var(--az-orange);
  color: #fff;
  border-radius: 30px;
  padding: 10px 24px;
  transition: all 0.25s ease
}
.btn-orange:hover {
  background-color: #ff8533;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.5)
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 30px;
  padding: 10px 22px
}

/* ---------- Hero (fondo 3D + overlay SVG) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(600px 300px at 15% 80%, rgba(255,106,0,.18), transparent 60%),
    radial-gradient(500px 260px at 85% 20%, rgba(255,106,0,.12), transparent 60%),
    radial-gradient(700px 340px at 70% 85%, rgba(0,140,255,.18), transparent 60%),
    radial-gradient(600px 300px at 20% 20%, rgba(0,140,255,.12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 50px),
    linear-gradient(180deg, #0a0c12 0%, #0e1118 100%);
  filter: saturate(1.05) brightness(.95);
  animation: meshShift 30s ease-in-out infinite alternate;
}
@keyframes meshShift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0 }
  to   { background-position: 3% -2%, -2% 3%, 2% 4%, -3% -1%, 0 4px, 4px 0, 0 0 }
}

.hero-content { position: relative; z-index: 2; color: #fff }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--az-orange);
  letter-spacing: 2px
}
.hero p {
  font-size: 1.1rem;
  max-width: 760px;
  margin: 20px auto;
  color: var(--az-muted)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.28;
  z-index:1
}
.hero-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.06))
}
.hero-overlay #drift { animation: diagDrift 40s linear infinite alternate }
@keyframes diagDrift { from { transform: translate(-5%, 5%) } to { transform: translate(5%, -5%) } }

.float1 { animation: float1 18s ease-in-out infinite alternate }
.float2 { animation: float2 22s ease-in-out infinite alternate }
.float3 { animation: float3 26s ease-in-out infinite alternate }
.float4 { animation: float4 20s ease-in-out infinite alternate }
.float5 { animation: float5 24s ease-in-out infinite alternate }
@keyframes float1 { from { transform: translate(0,0) rotate(0deg) } to { transform: translate(6px,-10px) rotate(6deg) } }
@keyframes float2 { from { transform: translate(0,0) rotate(0deg) } to { transform: translate(-8px,8px) rotate(-5deg) } }
@keyframes float3 { from { transform: translate(0,0) rotate(0deg) } to { transform: translate(10px,6px) rotate(7deg) } }
@keyframes float4 { from { transform: translate(0,0) rotate(0deg) } to { transform: translate(-6px,-8px) rotate(-6deg) } }
@keyframes float5 { from { transform: translate(0,0) rotate(0deg) } to { transform: translate(12px,-6px) rotate(8deg) } }
.twinkle { animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 0% { opacity: .22 } 50% { opacity: .55 } 100% { opacity: .22 } }

.section-title {
  color: var(--az-orange);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px
}

/* ---------- Tarjetas de servicios ---------- */
.svc-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 127, 0.35);
  box-shadow: 0 10px 30px rgba(0, 255, 127, 0.1), 0 0 0 1px rgba(0, 255, 127, 0.15) inset
}
.svc-icon { font-size: 2rem; color: var(--az-green); margin-bottom: 10px }
.svc-card h4 { color: var(--az-text); font-weight: 600; margin-bottom: 10px }
.svc-card p { color: var(--az-muted); margin-bottom: 16px }

/* ---------- Footer ---------- */
footer {
  background: #0c0c0c;
  color: #888;
  text-align: center;
  padding: 30px 10px;
  margin-top: 80px;
  border-top: 1px solid #222
}
.logo-footer { height: 50px; animation: glowPulse 4.6s ease-in-out infinite; filter: drop-shadow(0 0 6px var(--az-orange)) }

/* ---------- Botón de idioma en navbar ---------- */
.lang-nav-btn-small {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  margin-top: 2px;
}
.lang-nav-btn-small:hover {
  border-color: var(--az-orange);
  box-shadow: 0 0 6px var(--az-orange);
  transform: scale(1.08);
}
.lang-nav-btn-small img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* ---------- Modal estilizado ---------- */
.az-modal {
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.2);
  animation: zoomFade 0.3s ease;
}
@keyframes zoomFade {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-icon { font-size: 3rem; color: var(--az-green); margin-right: auto; }
.az-modal ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.az-modal ul li {
  margin: 10px 0;
  font-size: 1.05rem;
  position: relative;
  padding-left: 24px;
}
.az-modal ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--az-orange);
}

/* ---------- Marcas (slider) ---------- */
#brands {
  background: rgba(15, 17, 25, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}
.brand-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
}
.brand-track {
  display: flex;
  width: calc(250px * 14);
  animation: scrollBrands 40s linear infinite;
}
.brand-track img {
  width: 160px; height: auto; margin: 0 40px;
  filter: grayscale(1) brightness(0.9);
  opacity: 0.85;
  transition: all 0.3s ease;
}
.brand-track img:hover {
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 10px var(--az-green));
  opacity: 1;
  transform: scale(1.06);
}
@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .brand-track img { width: 120px; margin: 0 20px; }
  .brand-slider { height: 90px; }
}

/* ---------- Íconos tech (carrusel) ---------- */
#tech-icons {
  background: rgba(10, 12, 18, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}
.light-beam {
  position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  filter: blur(40px);
  animation: moveBeam 18s linear infinite; z-index: 1;
}
@keyframes moveBeam {
  0% { transform: translateX(0); opacity: 0.25; }
  50% { transform: translateX(150%); opacity: 0.4; }
  100% { transform: translateX(300%); opacity: 0.25; }
}
.icon-slider {
  width: 100%;
  overflow: hidden;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.icon-track {
  display: flex;
  gap: 60px;
  animation: scrollIcons 45s linear infinite;
}
.icon-track i {
  font-size: 2.8rem;
  color: #ffffff;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
  animation: breathing 5s ease-in-out infinite;
  transition: all 0.3s ease;
}
@keyframes breathing {
  0% { opacity: 0.6; filter: drop-shadow(0 0 6px rgba(255,255,255,0.2)); }
  50% { opacity: 1; filter: drop-shadow(0 0 14px rgba(255,255,255,0.8)); }
  100% { opacity: 0.6; filter: drop-shadow(0 0 6px rgba(255,255,255,0.2)); }
}
.icon-track i:nth-child(odd) { animation-delay: 1.5s; }
.icon-track i:nth-child(3n) { animation-delay: 3s; }
.icon-track i:hover {
  transform: scale(1.15);
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(255,255,255,1));
}
@keyframes scrollIcons { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) {
  .icon-track { gap: 40px; }
  .icon-track i { font-size: 2rem; }
}

/* ---------- Proyectos (libro / páginas) ---------- */
.book-wrapper {
  width: 85%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.book {
  position: relative;
  width: 100%;
  height: 420px;
  perspective: 2000px;
  transform-style: preserve-3d;
}
.page {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  transform-origin: left center;
  transition: transform 1.1s ease, box-shadow 1s ease;
  box-shadow: 0 0 25px rgba(255,106,0,0.2);
}
.page:not(.active) { transform: rotateY(-180deg); }
.page-content img { width: 100%; height: 100%; object-fit: cover; }
.page .overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  text-align: left;
}
.page .overlay h3 {
  color: var(--az-orange);
  font-size: 1.4rem;
  margin-bottom: 5px;
}
.page .overlay p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,140,0,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease, transform 1.1s ease;
  transform: scale(0.8);
  pointer-events: none;
}
.page.active::before {
  opacity: 1;
  transform: scale(1.3);
  animation: lightSweep 3s ease-out;
}
@keyframes lightSweep {
  0% { background-position: 0% 50%; opacity: 0.1; }
  50% { background-position: 100% 50%; opacity: 0.35; }
  100% { background-position: 50% 50%; opacity: 0.15; }
}
.book-nav {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.3s ease;
}
.book-nav:hover {
  color: var(--az-orange);
  text-shadow: 0 0 12px var(--az-orange);
  transform: translateY(-50%) scale(1.2);
}
.book-nav.prev { left: -60px; }
.book-nav.next { right: -60px; }
@media (max-width: 768px) {
  .book-wrapper { width: 100%; }
  .book-nav.prev { left: 5px; }
  .book-nav.next { right: 5px; }
}

/* ---------- Responsive específico ---------- */
@media (max-width: 576px) {
  .navbar-brand img {
    height: 90px;
    transform: translateY(-6px)
  }
}

/* ===== Botones pequeños en la sección "Our Services" ===== */
#services .btn.btn-orange {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
#services .btn.btn-orange:hover {
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.45);
  transform: translateY(-1px);
}

/* --- FIX: bullets personalizados en modales de servicios --- */
.modal ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.modal ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.4em;
}
.modal ul li::before {
  content: "•";
  color: #ff6600;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* =======================================================
   ⚡ AZTECH INTERACTIVE SMART HOME – OPCIÓN 3 (2D SVG)
   ======================================================= */

.aztech-demo-section {
  position: relative;
  padding: 80px 0 40px;
  background: radial-gradient(circle at top, #05070b 0%, #020308 100%);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #fff;
}

.aztech-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.9fr);
  gap: 32px;
  align-items: center;
}

/* SVG de la casa */
.aztech-house-svg {
  width: 100%;
  max-width: 540px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.9));
}

/* Labels */
.room-label {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 9px;
  fill: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Luces */
.az-light {
  fill: #262626;
  opacity: 0.35;
  transition: all 0.25s ease;
}
.az-light.on {
  fill: #ffb347;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,179,71,0.9));
}

/* Cámaras */
.az-camera rect,
.az-camera circle {
  fill: #0f172a;
  transition: all 0.25s ease;
}
.az-camera.on rect,
.az-camera.on circle {
  fill: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.9));
}

/* Speakers */
.az-speaker rect {
  fill: #111827;
  transition: all 0.25s ease;
}
.az-speaker.on rect {
  fill: #22c55e;
  filter: drop-shadow(0 0 6px rgba(34,197,94,0.9));
}

/* Lock */
.az-lock rect {
  fill: #991b1b;
  transition: all 0.25s ease;
}
.az-lock.on rect {
  fill: #22c55e;
  filter: drop-shadow(0 0 6px rgba(34,197,94,0.9));
}

/* Night mode (solo fondo + leve oscurecimiento) */
.aztech-demo-section.night {
  background: radial-gradient(circle at top, #000014 0%, #000000 100%);
}
.aztech-demo-section.night .aztech-house-svg {
  filter: drop-shadow(0 22px 46px rgba(0,0,0,1));
}

/* Tablet Aztech OS */
.aztech-tablet {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 280px;
  background: rgba(6,6,8,0.98);
  border-radius: 18px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(255,102,0,0.5);
  box-shadow: 0 14px 38px rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  color: #fff;
}

.tablet-header {
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,102,0,0.4);
}

.tablet-logo {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff6600;
}

.tablet-body {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tablet-row {
  display: flex;
  gap: 6px;
}

.tablet-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 7px 6px;
  font-size: 0.7rem;
  background: radial-gradient(circle at top left, rgba(255,102,0,0.22), rgba(10,10,12,1));
  color: #fff;
  border: 1px solid rgba(255,102,0,0.5);
  cursor: pointer;
  transition: all 0.18s ease-out;
}
.tablet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.95);
  background: radial-gradient(circle at bottom right, rgba(34,197,94,0.18), #111);
}
.tablet-btn--active {
  background: #ff6600 !important;
  color: #000 !important;
  box-shadow: 0 0 14px rgba(255,102,0,0.9);
}

/* Label superior (si decides usar texto arriba) */
.aztech-demo-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Responsive layout para la demo */
@media (max-width: 992px) {
  .aztech-demo-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .aztech-tablet {
    max-width: 320px;
  }
}
@media (max-width: 576px) {
  .aztech-demo-section {
    padding: 60px 0 30px;
  }
}

