/* ============================================================
   EMM SOLUCIONES — Hoja de estilos
   Tema: tecnológico, oscuro, profesional
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-2: #0e1626;
  --panel: #111b2e;
  --panel-2: #16233a;
  --border: #2a3b55;
  --border-light: #dce3ea;
  --teal: #0f9e8c;
  --teal-bright: #17c4ae;
  --teal-dark: #0a6e62;
  --orange: #c97a2b;
  --white: #ffffff;
  --text: #c7d2e0;
  --text-strong: #e8eef7;
  --muted: #8ca0bf;
  --dark-text: #1a2433;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 16px;
  --container: 1160px;
  --nav-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--teal);
  color: var(--bg);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-2);
}

.text-gradient {
  background: linear-gradient(120deg, var(--teal-bright), var(--teal) 55%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Canvas de fondo ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  border-radius: 3px;
  animation: load-slide 1.1s ease-in-out infinite;
}

.loader-text {
  font-family: var(--font-mono);
  color: var(--teal-bright);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

@keyframes load-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

/* ---------- Navegación ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-mark {
  font-family: var(--font-mono);
  color: var(--teal-bright);
  font-size: 1.15rem;
  line-height: 1;
}

.brand-name {
  color: var(--white);
  font-size: 1.05rem;
}

.brand-name span {
  color: var(--teal-bright);
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal-bright);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(15, 158, 140, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 158, 140, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-bright);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 59, 85, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 85, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--teal-bright);
  margin-bottom: 22px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 196, 174, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(23, 196, 174, 0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-type {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--text-strong);
  min-height: 2.2em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.type-prefix {
  color: var(--orange);
  margin-right: 6px;
}

.cursor {
  color: var(--teal-bright);
  animation: blink 0.85s step-end infinite;
  font-weight: 400;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-desc strong {
  color: var(--teal-bright);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Tarjeta código */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.hero-card {
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover .hero-card {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dots i:nth-child(1) { background: #e45c5c; }
.window-dots i:nth-child(2) { background: var(--orange); }
.window-dots i:nth-child(3) { background: var(--teal); }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-card-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 2;
}

.code-kw { color: #c792ea; }
.code-var { color: #82aaff; }
.code-str { color: #c3e88d; }
.code-fn { color: #ffcb6b; }
.code-num { color: #f78c6c; }
.indent-1 { padding-left: 1.4em; }
.indent-2 { padding-left: 2.8em; }

.code-cursor {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--teal-bright);
}

.blink {
  animation: blink 0.85s step-end infinite;
}

/* Flyer */
.hero-flyer {
  width: 190px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.hero-flyer:hover {
  transform: scale(1.06) rotate(2deg);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-hint:hover {
  opacity: 1;
}

.mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid var(--text);
  border-radius: 14px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--teal-bright);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.accent::before {
  background: linear-gradient(90deg, var(--orange), transparent);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 158, 140, 0.12);
  color: var(--teal-bright);
  margin-bottom: 22px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card.accent .service-icon {
  background: rgba(201, 122, 43, 0.14);
  color: var(--orange);
}

.service-num {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--border);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.service-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text);
}

.service-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}

.service-link:hover {
  gap: 12px;
}

/* ---------- Sobre mí ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-width: 420px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--teal);
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.badge-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-bright);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.about-content p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.about-content strong {
  color: var(--text-strong);
}

.about-list {
  margin: 26px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(15, 158, 140, 0.16);
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* ---------- Planes ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.plan-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border-color: var(--teal);
  background: linear-gradient(180deg, rgba(15, 158, 140, 0.08), var(--panel) 60%);
}

.plan-card.featured::after {
  content: "MÁS SOLICITADO";
  position: absolute;
  top: -13px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: var(--white);
  padding: 5px 14px;
  border-radius: 30px;
}

.plan-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.plan-card.featured .plan-label {
  color: var(--orange);
}

.plan-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 12px;
}

.plan-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  min-height: 48px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--border);
}

.plan-price .amount {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.plan-price .currency {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal-bright);
}

.plan-price .per {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.plan-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.plan-features li::before {
  content: "→";
  color: var(--teal-bright);
  font-family: var(--font-mono);
}

/* Mini planes */
.mini-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mini-plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mini-plan:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.mini-plan h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
}

.mini-plan p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.mini-price {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 14px;
}

.mini-price .currency {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  margin-right: 4px;
}

/* ---------- Contacto ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p:not(.section-tag) {
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

a.contact-item:hover {
  border-color: var(--teal);
  transform: translateX(4px);
}

.contact-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(15, 158, 140, 0.12);
  color: var(--teal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item strong {
  color: var(--white);
  font-size: 0.92rem;
}

.contact-item span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Formulario */
.contact-form-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 158, 140, 0.18);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238ca0bf' stroke-width='2'%3E%3Cpath d='M2 4l5 6 5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--panel-2);
}

.form-note {
  font-size: 0.88rem;
  margin-bottom: 14px;
  min-height: 1.4em;
}

.form-note.success {
  color: var(--teal-bright);
}

.form-note.error {
  color: #e45c5c;
}

.form-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-row a:hover {
  color: var(--teal-bright);
  border-color: var(--teal);
  transform: translateY(-3px);
}

.social-row svg {
  width: 20px;
  height: 20px;
}

.footer h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--teal-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-mono {
  font-family: var(--font-mono);
  color: var(--teal) !important;
}

/* ---------- Botones flotantes ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.whatsapp-float.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

.back-to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--teal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--teal);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Animaciones de scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Proyectos ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.project-captures {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6px;
  padding: 12px;
}

.project-captures img:first-child {
  grid-row: span 2;
}

.project-captures--single {
  grid-template-columns: 1fr;
}

.project-captures--single img:first-child {
  grid-row: auto;
}

.project-captures img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  display: block;
  aspect-ratio: 4 / 3;
  transition: opacity 0.2s ease;
}

.project-captures img:hover {
  opacity: 0.85;
}

.project-info {
  padding: 8px 20px 24px;
}

.project-info h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px;
}

.project-info p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--teal-bright);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 30px;
}

.projects-cta {
  text-align: center;
  margin-top: 52px;
  color: var(--muted);
  font-size: 1.05rem;
}

.projects-cta a {
  color: var(--teal-bright);
  font-weight: 600;
  transition: gap 0.25s ease;
}

.projects-cta a:hover {
  text-decoration: underline;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background 0.25s ease;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    transform: none;
    max-width: 520px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 24px);
  }

  .about-photo {
    max-width: 340px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: rgba(11, 18, 32, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    padding: 40px 30px;
    z-index: 1000;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-cta {
    margin-top: 10px;
  }

  .services-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .mini-plans {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom .container {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
