/* =============================================
   ALPANEL – Design System & Styles
   Dark industrial theme | Gold + Green accents
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0d0d0d;
  --bg-card:   #161616;
  --bg-card2:  #1c1c1c;
  --gold:      #F5C518;
  --gold-dim:  #c9a010;
  --green:     #22c55e;
  --green-dk:  #16a34a;
  --text:      #ffffff;
  --text-dim:  #a0a0a0;
  --text-mute: #666;
  --border:    rgba(255,255,255,0.07);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.gold { color: var(--gold); }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 10px;
}

.section-header {
  margin-bottom: 56px;
}
.section-header.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 20px;
  border-radius: 2px;
}
.center-line { margin-left: auto; margin-right: auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}
.btn-green:hover {
  background: var(--green-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,197,94,0.35);
}
.btn-green:active { transform: translateY(0); }

.btn-cta-nav {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta-nav:hover {
  background: var(--green-dk);
  transform: translateY(-1px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(13,13,13,0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(30,30,30,0.8) 0%, var(--bg) 70%);
}

.hero-shape {
  position: absolute;
  opacity: 0.12;
}
.hero-shape-1 {
  width: 600px;
  height: 600px;
  right: -100px;
  top: 50%;
  transform: translateY(-50%) rotate(15deg);
  background: conic-gradient(from 0deg, transparent 0%, #888 20%, transparent 40%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hero-shape-2 {
  width: 400px;
  height: 400px;
  right: 100px;
  top: 50%;
  transform: translateY(-60%) rotate(-10deg);
  background: linear-gradient(135deg, #555, transparent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0%50%);
}
.hero-shape-3 {
  width: 250px;
  height: 700px;
  right: 220px;
  top: 50%;
  transform: translateY(-50%) rotate(20deg);
  background: linear-gradient(180deg, transparent, #666 50%, transparent);
  opacity: 0.06;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero-detail {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-top: 1.5rem;
  line-height: 1.4;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  filter: none;
  background: #e0e0e0;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,197,24,0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-badge {
  position: absolute;
  background: rgba(22,22,22,0.95);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.hero-badge-1 { top: 20px;  right: -10px; animation-delay: -2s; }
.hero-badge-2 { bottom: 40px; left: -10px; animation-delay: -4s; }

.badge-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 2s infinite;
}
@keyframes scroll-dot {
  0%, 100% { top: 6px; opacity: 1; }
  80% { top: 20px; opacity: 0; }
}

/* ============================================
   GRID – 3 COLUMNS
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================
   CARDS (Valor)
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,197,24,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,197,24,0.15);
}
.card-highlight {
  background: var(--bg-card2);
  border-color: rgba(245,197,24,0.25);
  box-shadow: 0 0 0 1px rgba(245,197,24,0.1), inset 0 1px 0 rgba(245,197,24,0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; }

.card-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.card-desc {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ============================================
   PERFORMANCE LAB
   ============================================ */
.perf {
  background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(18,18,18,0.6) 50%, rgba(20,20,20,0) 100%);
}

.perf-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.perf-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition);
}
.perf-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245,197,24,0.3);
}

.perf-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.perf-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.perf-icon svg { width: 100%; height: 100%; }
.perf-icon-right { margin-left: auto; }

.perf-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.perf-subtitle {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.perf-desc {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.perf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 4px;
  padding: 4px 10px;
}
.perf-badge svg { width: 12px; height: 12px; }

.perf-center-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perf-img-wrapper {
  width: 280px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid rgba(245,197,24,0.3);
  box-shadow: 0 0 60px rgba(245,197,24,0.12), 0 20px 60px rgba(0,0,0,0.5);
}

.perf-img {
  width: 100%;
  display: block;
  filter: none;
}

.perf-img-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: scan 3s linear infinite;
}
@keyframes scan {
  0%   { top: 0;    opacity: 1; }
  90%  { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.perf-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.82);
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  padding: 10px 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 16px;
}

.gallery-card {
  position: relative;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.gallery-card:hover .gallery-overlay {
  opacity: 0.5;
}
.gallery-card:hover .gallery-info {
  transform: translateY(0);
}

.gallery-card-tall {
  grid-row: span 2;
}
.gallery-card-wide {
  grid-column: span 1;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
  transition: opacity var(--transition);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  transform: translateY(8px);
  transition: transform var(--transition);
}

.gallery-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.gallery-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certs {
  background: linear-gradient(180deg, var(--bg) 0%, #111 50%, var(--bg) 100%);
}

.cert-pre {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cert-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition);
}
.cert-item:hover {
  transform: translateY(-4px);
}

.cert-icon {
  width: 72px;
  height: 72px;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.cert-item:hover .cert-icon { opacity: 0.9; }
.cert-icon svg { width: 100%; height: 100%; }

.cert-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.roi-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.roi-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.stat-ring {
  width: 120px;
  height: 120px;
}
.stat-ring svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 14px rgba(245,197,24,0.25));
}
.stat-ring.green svg {
  filter: drop-shadow(0 0 14px rgba(34,197,94,0.25));
}


.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 120px;
  line-height: 1.4;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
  text-align: center;
  padding: 140px 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.btn-cta-big {
  font-size: 1.1rem;
  padding: 20px 56px;
  border-radius: 10px;
  gap: 14px;
  box-shadow: 0 8px 40px rgba(34,197,94,0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-mute);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* ============================================
   CHAT BUTTON
   ============================================ */
.chat-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 20px rgba(34,197,94,0.45);
}
.chat-btn:hover {
  transform: scale(1.1) translateY(-2px);
  background: var(--green-dk);
  box-shadow: 0 8px 32px rgba(34,197,94,0.55);
}

/* ============================================
   ANIMATIONS / REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .perf-layout { grid-template-columns: 1fr; }
  .perf-center-img { order: -1; margin-bottom: 20px; }
  .perf-img-wrapper { width: 100%; max-width: 400px; }
  .roi-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 40px; }
  .hero-badge-1 { top: -10px; right: 0; }
  .hero-badge-2 { bottom: -10px; left: 0; }
  
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(13,13,13,0.98); padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .btn-cta-nav { display: none; }
  
  .grid-3 { grid-template-columns: 1fr; }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-card-tall { grid-row: span 1; }
  
  .cert-grid { gap: 32px; }
  .roi-stats { grid-template-columns: repeat(2, 1fr); }
  
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .cert-grid { gap: 20px; }
  .roi-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
