@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,600;1,6..12,300&display=swap');

/* --- Variables --- */
:root {
  --bg:       #070b18;
  --bg2:      #0c1225;
  --surface:  rgba(255,255,255,0.035);
  --border:   rgba(255,255,255,0.07);
  --teal:     #06d6a0;
  --teal-dim: rgba(6,214,160,0.1);
  --white:    #edf2ff;
  --muted:    #6b7592;
  --fh:       'Outfit', sans-serif;
  --fb:       'Nunito Sans', sans-serif;
  --nav-h:    72px;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; transition: all 0.25s var(--ease); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--fh);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { color: rgba(237,242,255,0.65); }
em { font-style: normal; color: var(--teal); }

/* --- Layout --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* ===========================
   NAVIGATION
   =========================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(7,11,24,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(237,242,255,0.6);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
}
.nav-links a:hover { color: var(--white); background: var(--surface); }
.nav-links a.active { color: var(--teal); background: var(--teal-dim); }
.nav-cta {
  background: var(--teal) !important;
  color: var(--bg) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 7px !important;
}
.nav-cta:hover { opacity: 0.85 !important; background: var(--teal) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(6,214,160,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 15% 80%, rgba(6,100,214,0.05) 0%, transparent 50%),
    var(--bg);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.042) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}
#hero h1 {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}
#hero > .container > .hero-content > p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 540px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--teal); color: var(--bg); }
.btn-primary:hover {
  background: #04bfa1;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6,214,160,0.25);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.22);
  background: var(--surface);
  transform: translateY(-2px);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(6,214,160,0.4);
}
.btn-outline:hover { background: var(--teal-dim); transform: translateY(-2px); color: var(--teal); }

/* ===========================
   PILLARS / INTRO
   =========================== */
#intro {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pillar {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--surface); }
.pillar-num {
  font-family: var(--fh);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.pillar h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.pillar p  { font-size: 0.9rem; }

/* ===========================
   SERVICES
   =========================== */
#servicios { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--teal);
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 500px; margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  background: var(--bg2);
  padding: 2.5rem 2rem;
  transition: background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { background: #101828; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--teal);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.88rem; line-height: 1.65; }

/* ===========================
   CTA SECTION
   =========================== */
#cta-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(6,214,160,0.055) 0%, transparent 65%);
}
#cta-section .container { position: relative; }
#cta-section h2 { margin-bottom: 1rem; }
#cta-section p   { margin-bottom: 2.5rem; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ===========================
   FOOTER
   =========================== */
#footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
}
.footer-logo span { color: var(--teal); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--muted); font-size: 0.78rem; }

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(6,214,160,0.05) 0%, transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.page-hero p   { font-size: 1.05rem; max-width: 540px; }

/* ===========================
   ABOUT PAGE
   =========================== */
.about-section { padding: 5rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}
.about-grid img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border);
}
.about-text h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.about-text p  { margin-bottom: 1rem; }
.clients-section { padding: 4rem 0; border-top: 1px solid var(--border); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.client-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(237,242,255,0.65);
  text-align: center;
  transition: border-color 0.2s;
}
.client-item:hover { border-color: rgba(6,214,160,0.25); color: var(--white); }

/* ===========================
   SONOS PAGE
   =========================== */
.guide-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 3rem;
  padding: 4rem 0;
  align-items: start;
}
.guide-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 {
  font-family: var(--fb);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-card li {
  font-size: 0.88rem;
  color: rgba(237,242,255,0.65);
  padding-left: 1.1rem;
  position: relative;
}
.sidebar-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.65rem;
  top: 0.15em;
}
.guide-content h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.guide-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.guide-content p  { margin-bottom: 0.9rem; font-size: 0.94rem; }
.guide-content ol,
.guide-content ul {
  margin: 0.75rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.guide-content li { font-size: 0.9rem; color: rgba(237,242,255,0.7); }
.guide-content a  { color: var(--teal); }
.guide-content a:hover { text-decoration: underline; }
.tip-box {
  background: var(--teal-dim);
  border: 1px solid rgba(6,214,160,0.18);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: rgba(237,242,255,0.8);
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-section { padding: 4rem 0 6rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s;
}
.contact-card:hover { border-color: rgba(6,214,160,0.25); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: 0.9rem;
  font-weight: 500;
}
.btn-wa:hover {
  background: #1db854;
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,0.25);
}
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(237,242,255,0.5);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--fb);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(6,214,160,0.5); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars       { grid-template-columns: 1fr; }
  .pillar        { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .guide-layout  { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .clients-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .nav-links     { display: none; }
  .nav-toggle    { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(7,11,24,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .form-row      { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .clients-grid  { grid-template-columns: 1fr 1fr; }
}
