/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; }

:root {
  --yellow: #FFD700;
  --yellow-dim: #CCAC00;
  --yellow-light: #FFF3A3;
  --black: #000000;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --black-4: #222222;
  --gray: #2e2e2e;
  --gray-light: #888;
  --white: #ffffff;
  --green: #00ff88;
  --off-white: #F7F7F5;
  --ink: #14140f;
  --ink-gray: #5c5c56;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 32px rgba(255, 215, 0, 0.08);
  --shadow-hover: 0 8px 48px rgba(255, 215, 0, 0.2);
  --shadow-light: 0 4px 24px rgba(20, 20, 15, 0.06);
  --shadow-light-hover: 0 16px 40px rgba(20, 20, 15, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--yellow-dim); border-radius: 3px; }

/* ─── Utils ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.accent { color: var(--yellow); }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.section-header p { color: var(--gray-light); font-size: 17px; }

/* Light section theme (used by Servicios, to match white background in the reference design) */
.section--light { background: var(--off-white); color: var(--ink); }
.section--light .section-header p { color: var(--ink-gray); }
.section--light .tag {
  background: rgba(20, 20, 15, 0.05);
  border-color: rgba(20, 20, 15, 0.1);
  color: #a17d00;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #ffe44d;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}
.btn-ghost svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-sm); padding: 16px; font-size: 17px; }

.btn-dark-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-dark-pill:hover { background: var(--black-3); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.btn-dark-pill svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,215,0,0.1);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--black-3);
  border: 1.5px solid rgba(255,215,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
}
.logo-mark:hover { border-color: var(--yellow); box-shadow: 0 0 16px rgba(255,215,0,0.3); }
.logo-mark--sm { width: 40px; height: 40px; border-radius: 10px; }
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-line1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-line2 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
}
.logo-line2 em { color: var(--yellow); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 100px;
  padding: 11px 20px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-nav svg { width: 16px; height: 16px; }
.btn-nav:hover { background: #ffe44d; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* avoids mobile browser chrome resize jumps */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 0 80px;
}
.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(255,215,0,0.06) 0%, transparent 70%);
}
.code-rain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-content {
  flex: 1;
  min-width: 0;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.highlight { color: var(--yellow); }
.hero-sub {
  font-size: 18px;
  color: var(--gray-light);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 44px;
}
.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 96px;
}
.hf-icon { width: 40px; height: 40px; margin-bottom: 10px; }
.hero-feature p { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.75); line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  flex-shrink: 0;
  width: 46%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-mockup-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at center, #000 68%, transparent 100%);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ─── Servicios ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(20,20,15,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 22px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(24px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-light-hover); }
.service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--black-3);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-icon {
  position: absolute;
  left: 16px;
  bottom: -22px;
  width: 46px;
  height: 46px;
  background: var(--black);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 36px 20px 8px; line-height: 1.3; }
.service-card > p { font-size: 13px; color: var(--ink-gray); margin: 0 20px 14px; line-height: 1.6; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 20px;
  font-weight: 700;
  font-size: 13px;
  color: #b8880a;
  text-decoration: none;
  transition: var(--transition);
}
.service-link:hover { gap: 8px; color: var(--yellow-dim); }
.services-cta { text-align: center; margin-top: 48px; }

/* ─── Stats band (¿Por qué elegirnos?) ─── */
.stats-band { background: var(--black-2); padding: 90px 0; border-top: 1px solid rgba(255,215,0,0.06); border-bottom: 1px solid rgba(255,215,0,0.06); }
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.stats-text { flex: 1; min-width: 280px; max-width: 420px; }
.stats-text h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.stats-text p { color: var(--gray-light); font-size: 15px; line-height: 1.6; }
.stats-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-block { text-align: center; min-width: 100px; }
.stat-icon { width: 36px; height: 36px; margin: 0 auto 10px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--yellow); line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.stat-fixed { font-size: 32px; font-weight: 800; color: var(--yellow); line-height: 1; }
.stat-block p { font-size: 13px; color: var(--gray-light); }

/* ─── Por qué (metodología) ─── */
.porque { background: var(--black); }
.porque-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.porque-text h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.porque-text > p { color: var(--gray-light); font-size: 16px; line-height: 1.7; margin-bottom: 36px; }
.features-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; align-items: flex-start; gap: 16px; }
.feature-check {
  width: 28px;
  height: 28px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.feature-item p { color: var(--gray-light); font-size: 14px; }

.process-card {
  background: var(--black-3);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: var(--radius);
  padding: 36px;
}
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.process-step.active, .process-step:hover {
  background: rgba(255,215,0,0.05);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0.4;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
  transition: var(--transition);
}
.process-step.active .step-num, .process-step:hover .step-num { opacity: 1; }
.process-step strong { display: block; font-size: 16px; margin-bottom: 4px; }
.process-step p { color: var(--gray-light); font-size: 14px; }
.process-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255,215,0,0.3), rgba(255,215,0,0.05));
  margin-left: 36px;
}

/* ─── Proyectos ─── */
.proyectos { background: var(--black); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 280px 220px;
  gap: 16px;
}
.project--large { grid-row: 1 / 2; }
.project-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.project-image {
  width: 100%;
  height: 100%;
  position: relative;
  transition: var(--transition);
}
.pi-1 { background: url('../img/proyectos/cursopadres.png') top/cover no-repeat; }
.pi-2 { background: url('../img/proyectos/tramitsinsurance.png') top/cover no-repeat; }
.pi-3 { background: url('../img/proyectos/surettaxpro.png') top/cover no-repeat; }
.pi-4 { background: url('../img/proyectos/deltoroinsurance.png') top/cover no-repeat; }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.05) 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
  transition: var(--transition);
}
/* On devices with a real mouse/hover, keep the reveal-on-hover effect;
   on touch devices there's no hover, so the overlay stays visible by default (see above). */
@media (hover: hover) and (pointer: fine) {
  .project-overlay { opacity: 0; }
  .project-card:hover .project-overlay { opacity: 1; }
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 10px;
  width: fit-content;
}
.project-overlay h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-overlay p {
  color: var(--gray-light);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.projects-cta { text-align: center; margin-top: 40px; }
.projects-cta p { color: var(--gray-light); font-size: 16px; }
.projects-cta a { color: var(--yellow); font-weight: 600; text-decoration: none; transition: var(--transition); }
.projects-cta a:hover { text-decoration: underline; }

/* ─── Testimonios ─── */
.testimonios { background: var(--black-2); }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonio-card {
  background: var(--black-3);
  border: 1px solid rgba(255,215,0,0.08);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.testimonio-card:hover { border-color: rgba(255,215,0,0.2); transform: translateY(-4px); }
.stars { color: var(--yellow); font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonio-card > p { color: var(--gray-light); font-size: 15px; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonio-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.av1 { background: linear-gradient(135deg, #FFD700, #CC9900); color: var(--black); }
.av2 { background: linear-gradient(135deg, #00cc66, #004422); color: var(--white); }
.av3 { background: linear-gradient(135deg, #4488ff, #001166); color: var(--white); }
.testimonio-author strong { display: block; font-size: 15px; }
.testimonio-author span { color: var(--gray-light); font-size: 13px; }

/* ─── Sitios en producción ─── */
.sitios { background: var(--black-2); }
.sitios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sitio-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 22px;
  background: var(--black-3);
  border: 1px solid rgba(255,215,0,0.08);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.sitio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), transparent);
  opacity: 0;
  transition: var(--transition);
}
.sitio-card:hover {
  border-color: rgba(255,215,0,0.28);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.sitio-card:hover::before { opacity: 1; }
.sitio-card:hover .sitio-ext { color: var(--yellow); transform: translate(2px, -2px); }

.sitio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sitio-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.18);
  padding: 3px 10px;
  border-radius: 100px;
}
.sitio-ext {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.3);
  transition: var(--transition);
  flex-shrink: 0;
}

.sitio-browser {
  background: var(--black-4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.browser-bar span:nth-child(1) { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-url {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sitio-card:hover .browser-url { color: rgba(255,215,0,0.6); }

.sitio-domain {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.sitio-desc {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.6;
  flex: 1;
}
.sitio-visit {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  margin-top: 4px;
}

/* ─── CTA banda amarilla ─── */
.cta-banda { background: linear-gradient(135deg, var(--yellow) 0%, #ffcf1f 100%); padding: 56px 0; }
.cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.cta-photo img {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.cta-text h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--black); line-height: 1.25; margin-bottom: 10px; }
.cta-text p { color: rgba(10,10,10,0.75); font-size: 15px; max-width: 440px; }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-trust { display: flex; align-items: center; gap: 10px; }
.trust-avatars { display: flex; }
.trust-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
  margin-left: -10px;
  background: var(--black-3);
}
.trust-avatars img:first-child { margin-left: 0; }
.cta-trust span { font-size: 13px; font-weight: 700; color: rgba(10,10,10,0.8); }

/* ─── Contacto ─── */
.contacto { background: var(--black); }
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contacto-text h2 { font-size: clamp(26px, 3.5vw, 44px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.contacto-text > p { color: var(--gray-light); font-size: 16px; line-height: 1.7; margin-bottom: 36px; }

.contacto-form {
  background: var(--black-3);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.8); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  width: 100%;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  background: rgba(255,215,0,0.04);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.08);
}
.form-group select option { background: var(--black-3); }
.form-note { font-size: 13px; color: var(--gray-light); text-align: center; }

/* ─── Footer ─── */
.footer { background: var(--black-2); border-top: 1px solid rgba(255,215,0,0.08); padding: 60px 0 32px; }
.footer-inner { display: flex; gap: 60px; margin-bottom: 48px; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-line1 { font-size: 18px; }
.footer-brand > p { color: var(--gray-light); font-size: 15px; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; flex: 2; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 160px; }
.footer-col h5 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.footer-col a { color: var(--gray-light); text-decoration: none; font-size: 15px; transition: var(--transition); }
.footer-col a:hover { color: var(--yellow); }
.footer-col--contact { min-width: 220px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; color: var(--gray-light); font-size: 14px; }
.footer-contact-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 16px;
  border: 1.5px solid #25D366;
  color: #25D366;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: var(--transition);
}
.footer-wa-btn svg { width: 16px; height: 16px; }
.footer-wa-btn:hover { background: #25D366; color: var(--black); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  color: var(--gray-light);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  background: var(--black-3);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { border-color: var(--yellow); background: rgba(255,215,0,0.08); transform: translateY(-2px); }

/* ─── Language toggle ─── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 7px 14px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.lang-toggle:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255,215,0,0.06);
}

/* ─── Floating WhatsApp button ─── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waPulse 2.8s ease-in-out infinite;
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  flex-shrink: 0;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.65);
  animation: none;
}
.wa-tooltip {
  position: absolute;
  right: 74px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #fff;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ─── Form success state ─── */
.form-success {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.form-success .check-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.form-success h3 { font-size: 22px; font-weight: 700; }
.form-success p { color: var(--gray-light); }

/* ─── Responsive ─── */

/* Large desktop → 4 services per row */
@media (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet landscape — 1024px */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-features { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: 80%; max-width: 420px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sitios-grid { grid-template-columns: repeat(2, 1fr); }
  .porque-inner { grid-template-columns: 1fr; gap: 40px; }
  .contacto-inner { grid-template-columns: 1fr; gap: 40px; }
  .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { justify-content: center; text-align: center; }
  .stats-text { max-width: 100%; }
  .stats-grid { justify-content: center; width: 100%; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta-action { align-items: center; }
  .nav-links { gap: 0; }
}

/* Tablet portrait / mobile — 768px */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 26px; }
  .section-header p { font-size: 15px; }

  /* Navbar */
  .nav-inner { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,215,0,0.1);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; border-radius: 8px; width: 100%; font-size: 15px; }
  .nav-toggle { display: flex; }
  .lang-toggle { padding: 6px 12px; font-size: 12px; }
  .btn-nav span { display: none; }
  .btn-nav { padding: 10px; }

  /* Hero */
  .hero { padding: 100px 0 52px; }
  .hero-title { font-size: clamp(28px, 7vw, 44px); }
  .hero-sub { font-size: 16px; }
  .hero-badge { font-size: 11px; }
  .hero-features { gap: 18px; }
  .hero-feature { width: 78px; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .sitios-grid { grid-template-columns: 1fr; gap: 14px; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; }
  .project--large { grid-row: auto; }
  .project-image { height: auto; aspect-ratio: 4 / 3; }
  .stats-grid { gap: 28px; }
  .stat-icon { width: 30px; height: 30px; }
  .stat-value, .stat-fixed { font-size: 26px; }

  /* Sitios */
  .sitio-card { padding: 20px; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .sitio-header { width: 100%; }
  .sitio-browser { width: 100%; }
  .sitio-domain { font-size: 15px; }
  .sitio-desc { width: 100%; }
  .sitio-visit { margin-top: 0; }

  /* Por qué */
  .process-card { padding: 20px; }
  .process-step { padding: 12px; }

  /* CTA banda */
  .cta-banda { padding: 40px 0; }
  .cta-photo img { width: 100px; height: 130px; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contacto-form { padding: 24px 18px; }
  .contacto-text h2 { font-size: 26px; }

  /* Footer */
  .footer { padding: 48px 0 28px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; font-size: 13px; }
  .footer-col a { font-size: 14px; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  /* Navbar */
  .logo-line1 { font-size: 15px; }
  .logo-line2 { font-size: 9px; }
  .nav-inner { padding: 0 16px; }
  .lang-toggle { padding: 5px 10px; }

  /* Hero */
  .hero { padding: 92px 0 48px; }
  .hero-title { font-size: 26px; }
  .hero-badge { padding: 6px 0; }
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; font-size: 15px; }
  .hero-features { gap: 12px; }
  .hero-feature { width: 68px; }
  .hf-icon { width: 32px; height: 32px; }
  .hero-feature p { font-size: 10.5px; }

  /* Servicios */
  .service-card h3 { font-size: 14.5px; }

  /* Sitios */
  .sitio-card { flex-direction: column; padding: 18px 16px; }
  .browser-url { font-size: 10px; }
  .sitio-domain { font-size: 15px; }

  /* Process */
  .process-card { padding: 16px; }
  .step-num { font-size: 18px; }

  /* Testimonios */
  .testimonio-card { padding: 24px 18px; }

  /* CTA banda */
  .cta-text p { font-size: 14px; }

  /* Contact */
  .contacto-form { padding: 18px 14px; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; } /* evita zoom en iOS */

  /* Footer */
  .footer-links { flex-direction: column; gap: 24px; }

  /* WA float */
  .whatsapp-float { bottom: 18px; right: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .wa-tooltip { display: none; } /* tooltip hidden on mobile, no hover */
}

/* Very small screens — 360px */
@media (max-width: 360px) {
  .hero-title { font-size: 24px; }
  .logo-text { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .stats-grid { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .stat-block { min-width: 80px; }
}
