/* shared.css — TwinsTech · Paleta verde + negro */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Nueva paleta oscura tech */
  --black:        #0A0A0A;
  --black-soft:   #111111;
  --black-card:   #161616;
  --black-border: #242424;
  --green-main:   #1DB954;   /* verde vivo, tech */
  --green-dark:   #0D8C3A;
  --green-dim:    #145C2C;
  --green-pale:   #0D2016;   /* fondo sección alt */
  --lime:         #A8E063;   /* acento CTA */
  --white:        #FFFFFF;
  --off-white:    #F0F0F0;
  --gray-text:    #B8B8B8;
  --gray-mid:     #606060;
  --gray-border:  #2A2A2A;
  --text-main:    #EDEDED;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--black-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span { color: var(--green-main); }

.nav-logo-dot {
  width: 8px; height: 8px;
  background: var(--green-main);
  border-radius: 50%;
  animation: pulse 2s infinite;
  display: none;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.75); }
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-main); }

.nav-cta {
  background: var(--green-main) !important;
  color: var(--black) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  transition: background 0.2s, transform 0.1s !important;
}
.nav-cta:hover { background: #25d468 !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ── FOOTER ── */
footer {
  background: #050505;
  padding: 52px 5% 28px;
  border-top: 1px solid var(--black-border);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 28px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-brand-name span { color: var(--green-main); }

.footer-slogan {
  font-size: 0.8rem;
  color: var(--green-main);
  font-style: italic;
  margin-bottom: 10px;
  opacity: 0.7;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--gray-mid);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--gray-mid);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-main); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: #333; }
.footer-badge {
  font-size: 0.75rem;
  color: var(--green-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-main);
  border-radius: 50%;
  opacity: 1;
}

/* ── SECTION SHARED ── */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-main);
  background: rgba(29,185,84,0.1);
  border: 1px solid rgba(29,185,84,0.2);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.section-title .accent { color: var(--green-main); }

.section-sub {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 560px;
}

.section-header { margin-bottom: 52px; }

.btn-primary {
  background: var(--green-main);
  color: var(--black);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(29,185,84,0.3);
}
.btn-primary:hover {
  background: #25d468;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(29,185,84,0.4);
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  background: var(--black-soft);
  padding: 120px 5% 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--black-border);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,185,84,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-main);
  background: rgba(29,185,84,0.1);
  border: 1px solid rgba(29,185,84,0.2);
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.2px;
  margin-bottom: 18px;
}
.page-hero-title .accent { color: var(--green-main); }
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── NAVBAR DROPDOWN ── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-chevron { font-size: 0.7rem; transition: transform 0.2s; display: inline-block; }
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  min-width: 240px;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 200;
  list-style: none;
}

/* little arrow pointing up */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: #111111;
  border-left: 1px solid #242424;
  border-top: 1px solid #242424;
  rotate: 45deg;
  z-index: 1;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-inner {
  background: #111111;
  border: 1px solid #242424;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  margin-top: 6px;
}
.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  font-size: 0.88rem;
  color: #A0A0A0 !important;
  transition: background 0.15s, color 0.15s !important;
  white-space: nowrap;
  border-radius: 0;
}
.nav-dropdown-menu li a:hover {
  background: rgba(29,185,84,0.08);
  color: var(--green-main) !important;
}

@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(29,185,84,0.05);
    padding: 4px 0 4px 16px;
    display: none;
    min-width: unset;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,0.99);
    padding: 20px 5%;
    gap: 16px;
    border-bottom: 1px solid var(--black-border);
  }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

.nav-logo img, .nav-logo { user-select: none; }
.nav-logo img { -webkit-user-drag: none; pointer-events: auto; }
