/* ═══════════════════════════════════════════════════════════════════
   NodoTek — Custom Styles
   Stack: Bootstrap 5 + Custom CSS
   Themes: Dark (default) / Light
═══════════════════════════════════════════════════════════════════ */

/* ── 1. CSS Variables (Dark theme default) ──────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:    #0d0d14;
  --bg-secondary:  #13131e;
  --bg-card:       #1a1a28;
  --bg-card-hover: #1f1f32;
  --bg-input:      #151522;

  /* Accents */
  --accent-1:      #7c6fff;
  --accent-2:      #00d4ff;
  --accent-gradient: linear-gradient(135deg, #7c6fff 0%, #00d4ff 100%);
  --accent-glow:   rgba(124, 111, 255, 0.25);

  /* Text */
  --text-primary:  #eeeef5;
  --text-secondary:#9999b5;
  --text-muted:    #555570;

  /* Borders */
  --border-color:  rgba(124, 111, 255, 0.18);
  --border-hover:  rgba(124, 111, 255, 0.45);

  /* Navbar */
  --navbar-bg: rgba(13, 13, 20, 0.0);
  --navbar-bg-scrolled: rgba(13, 13, 20, 0.96);

  /* Hero hex */
  --hex-stroke: rgba(124, 111, 255, 0.14);

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.35);
  --shadow-hover:  0 8px 40px rgba(124, 111, 255, 0.2);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

[data-theme="light"] {
  --bg-primary:    #f2f2fb;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8f8ff;
  --bg-input:      #ffffff;

  --accent-1:      #5850e8;
  --accent-2:      #0099cc;
  --accent-gradient: linear-gradient(135deg, #5850e8 0%, #0099cc 100%);
  --accent-glow:   rgba(88, 80, 232, 0.15);

  --text-primary:  #1a1a2e;
  --text-secondary:#4a4a6a;
  --text-muted:    #9090b0;

  --border-color:  rgba(88, 80, 232, 0.15);
  --border-hover:  rgba(88, 80, 232, 0.4);

  --navbar-bg: rgba(242, 242, 251, 0.0);
  --navbar-bg-scrolled: rgba(242, 242, 251, 0.96);

  --hex-stroke: rgba(88, 80, 232, 0.1);

  --shadow-card:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover:  0 8px 40px rgba(88, 80, 232, 0.15);
}

/* ── 2. Base & Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

a { text-decoration: none; transition: color var(--transition-fast); }

::selection {
  background: var(--accent-1);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

/* ── 3. Utility classes ──────────────────────────────────────────── */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent-1) !important; }

/* ── 4. Navbar ───────────────────────────────────────────────────── */
#mainNav {
  background: var(--navbar-bg);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), backdrop-filter var(--transition),
              border-color var(--transition);
  padding: 1rem 0;
}

#mainNav.scrolled {
  background: var(--navbar-bg-scrolled);
  backdrop-filter: blur(16px);
  border-color: var(--border-color);
  padding: 0.6rem 0;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary) !important;
}

.logo-svg {
  display: block;
  height: 36px;
  width: auto;
}

/* Nav links */
.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--text-primary) !important;
  background: var(--accent-glow);
}

/* Utility nav buttons (lang + theme) */
.btn-nav-util {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast),
              background var(--transition-fast);
}

.btn-nav-util:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: var(--accent-glow);
}

/* Mobile toggler */
.navbar-toggler {
  border-color: var(--border-color);
  color: var(--text-secondary);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%239999b5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── 5. Buttons ──────────────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: var(--accent-gradient);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition),
              box-shadow var(--transition);
  box-shadow: 0 0 0 rgba(124,111,255,0);
}

.btn-primary-custom:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--text-primary) !important;
  border: 1.5px solid var(--border-hover);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
              transform var(--transition);
}

.btn-outline-custom:hover {
  border-color: var(--accent-1);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ── 6. Hero ─────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-primary);
  padding-top: 5rem;
}

/* Canvas hexagons */
.hex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Gradient overlay fading hexagons into bg at bottom */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 6rem;
}

/* Badge pill above headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gradient);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.7); }
}

/* Headline */
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}


/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

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

/* ── 7. Sections ─────────────────────────────────────────────────── */
.section-wrapper {
  padding: 6rem 0;
}

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

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── 8. Services cards ───────────────────────────────────────────── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition), background var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.service-card:hover::before { opacity: 0.04; }

.service-card > * { position: relative; z-index: 1; }

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition), border-color var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: rgba(124,111,255,0.2);
  border-color: var(--accent-1);
}

.service-icon {
  font-size: 1.4rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.service-arrow {
  color: var(--accent-1);
  font-size: 1rem;
  transform: translateX(0);
  transition: transform var(--transition);
}

.service-card:hover .service-arrow { transform: translateX(5px); }

/* ── 9. Portfolio cards ──────────────────────────────────────────── */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Mock browser preview */
.portfolio-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-preview-1 { background: linear-gradient(135deg, #1a0533 0%, #0d1a3a 100%); }
.portfolio-preview-2 { background: linear-gradient(135deg, #001a2e 0%, #0a1a0f 100%); }
.portfolio-preview-3 { background: linear-gradient(135deg, #1a0a2e 0%, #2a0a1a 100%); }

/* Browser chrome bar */
.preview-bar {
  height: 28px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
}

.preview-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.preview-bar span:nth-child(1) { background: #ff5f57; }
.preview-bar span:nth-child(2) { background: #ffbd2e; }
.preview-bar span:nth-child(3) { background: #28c840; }

.preview-content {
  padding: 12px;
}

/* Mock elements inside preview */
.preview-mock-header {
  height: 20px;
  background: rgba(124,111,255,0.25);
  border-radius: 4px;
  margin-bottom: 10px;
}

.preview-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mock-card {
  height: 50px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Calendar mock */
.preview-mock-calendar { margin-top: 4px; }

.mock-cal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.mock-cal-cell {
  height: 28px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.mock-cal-cell.active { background: rgba(124,111,255,0.4); }
.mock-cal-cell.accent { background: rgba(0,212,255,0.3); }

/* Profile mock */
.preview-mock-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.mock-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-lines { flex: 1; }

.mock-line {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-bottom: 6px;
}

.mock-line.wide   { width: 90%; }
.mock-line.medium { width: 65%; }
.mock-line.narrow { width: 45%; }

/* Portfolio card info */
.portfolio-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.portfolio-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}

.portfolio-tags {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  margin-bottom: 1rem;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-1);
  transition: gap var(--transition-fast);
}

.portfolio-link:hover { color: var(--accent-1); gap: 0.35rem; }

/* ── 10. Pricing scroll ──────────────────────────────────────────── */
.pricing-scroll-wrap {
  position: relative;
  /* Fade edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.pricing-scroll-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 4% 1.5rem;
  cursor: grab;
  /* Centra cuando entran todas; cae a flex-start si hay overflow (safe) */
  justify-content: safe center;
  /* hide scrollbar but keep functional */
  scrollbar-width: none;
}
.pricing-scroll-track::-webkit-scrollbar { display: none; }
.pricing-scroll-track:active { cursor: grabbing; }

.pricing-scroll-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
}

/* ── 10. Pricing cards ───────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.25rem;
  width: 100%;      /* Siempre llena el item, sin importar el contenido */
  height: 100%;     /* Misma altura que los demás en la fila */
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* Featured (Pro) card */
.pricing-card-featured {
  background: var(--bg-card-hover);
  border-color: var(--accent-1);
  box-shadow: 0 0 0 1px var(--accent-1), var(--shadow-hover);
  transform: none;
}

.pricing-card-featured:hover {
  transform: translateY(-9px);
  box-shadow: 0 0 0 1px var(--accent-1), 0 12px 50px var(--accent-glow);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pricing-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  /* Reserva espacio fijo = 2 líneas para alinear los precios entre cards */
  min-height: calc(0.85rem * 1.5 * 2);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 2rem;
  /* Altura fija = font-size de .price-amount (3rem) para alinear features y CTA entre cards */
  min-height: 3rem;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-1);
  line-height: 1;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 0.25rem;
}

.pricing-price-custom { align-items: baseline; }

.price-amount-custom {
  /* Un poco más chico que los números, pero manteniendo jerarquía y gradient */
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li i {
  color: var(--accent-1);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pricing-cta-wrap { margin-top: auto; }

/* ── 11. Contact ─────────────────────────────────────────────────── */
.contact-info-block {
  padding: 0 0 2rem;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-info-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-details li:last-child { border-bottom: none; }

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-1);
  flex-shrink: 0;
}

.contact-details strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-details a,
.contact-details span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-details a:hover { color: var(--accent-1); }

/* Tech stack badges */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  padding: 0.25rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

/* Contact form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-label-custom {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input-custom {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input-custom::placeholder { color: var(--text-muted); }

.form-input-custom:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select-custom {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239999b5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select-custom option {
  background: var(--bg-card);
  color: var(--text-primary);
}

textarea.form-input-custom { resize: vertical; min-height: 130px; }

.btn-submit-contact {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* Flash alerts */
.alert-success-custom {
  background: rgba(0, 212, 100, 0.1);
  border: 1px solid rgba(0, 212, 100, 0.3);
  color: #00d464;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
}

.alert-error-custom {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff5050;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
}

/* ── 12. Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-fast), border-color var(--transition-fast),
              background var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: var(--accent-glow);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--accent-1); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-made { display: flex; align-items: center; gap: 0.35rem; }

/* ── 13. Floating buttons ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 6.25rem;   /* + separación con el botón "volver al inicio" */
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition),
              color var(--transition-fast), border-color var(--transition-fast);
}

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

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

/* ── 14. Scroll Reveal animations ────────────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.reveal-up    { transform: translateY(30px); }
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── 15. Navbar utility group ────────────────────────────────────── */

/* Always keep lang + theme buttons in a horizontal row */
.nav-item-utils {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── 16. Responsive ──────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────
   TABLET LANDSCAPE  ≤ 991px
   Navbar collapses, sections get slightly shorter
───────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {

  /* ── Navbar collapse: card style ── */
  #navMenu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-top: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  }

  /* Stack nav items vertically, full width */
  .navbar-nav {
    align-items: stretch !important;
    gap: 0.1rem !important;
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0.85rem !important;
    border-radius: 8px;
  }

  /* Separator + row layout for utility buttons */
  .nav-item-utils {
    padding-top: 0.75rem;
    margin-top: 0.4rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-start;
  }

  .btn-nav-util {
    min-height: 42px;
    flex: 1;
    justify-content: center;
  }


  /* Sections */
  .section-wrapper { padding: 5rem 0; }

  /* Pricing: featured card doesn't float up (no room) */
  .pricing-card-featured {
    transform: translateY(0);
  }
  .pricing-card-featured:hover {
    transform: translateY(-3px);
  }
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE (tablet portrait + phones)  ≤ 767px
───────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

  /* ── Navbar ── */
  #mainNav        { padding: 0.65rem 0; }
  #mainNav.scrolled { padding: 0.45rem 0; }

  /* ── Hero ── */
  .hero-section {
    min-height: 100vh;
    min-height: 100svh; /* Avoids iOS browser chrome issue */
    padding-top: 4.5rem;
  }
  .hero-content { padding: 2.5rem 0 5rem; }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
  }

  .hero-headline {
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* CTAs: stacked, full width, centered */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.7rem;
    margin-bottom: 2.5rem;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }


  /* ── Sections ── */
  .section-wrapper   { padding: 3.5rem 0; }
  .section-header    { margin-bottom: 2.5rem; }
  .section-title     { letter-spacing: -0.5px; }
  .section-subtitle  { font-size: 0.92rem; }

  /* ── Service cards ── */
  .service-card { padding: 1.5rem; }

  /* ── Portfolio ── */
  .portfolio-preview  { height: 165px; }
  .portfolio-info     { padding: 1.25rem; }

  /* ── Pricing ── */
  .pricing-card        { padding: 1.75rem; }
  .price-amount        { font-size: 2.5rem; }
  .pricing-features li { font-size: 0.85rem; }

  /* ── Contact ── */
  .contact-form-wrap   { padding: 1.5rem; border-radius: 14px; }
  .contact-info-block  { padding-bottom: 0; }
  .contact-info-title  { font-size: 1.35rem; }

  /* ── Footer ── */
  .site-footer  { padding: 3rem 0 1.5rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
  .footer-socials { justify-content: center; }

  /* ── Floating buttons: reposition to avoid overlap ── */
  .whatsapp-float {
    bottom: 5.5rem;   /* + separación en mobile */
    right: 1rem;
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  /* ── Scroll indicator: hide on short viewports ── */
  @media (max-height: 700px) {
    .scroll-indicator { display: none; }
  }
}

/* ─────────────────────────────────────────────────────────────────
   SMALL PHONES  ≤ 575px
───────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {

  /* ── Hero ── */
  .hero-content { padding: 2rem 0 4rem; }

  .hero-badge {
    font-size: 0.68rem;
    letter-spacing: 0.3px;
  }

  /* ── Sections ── */
  .section-wrapper { padding: 3rem 0; }
  .section-label   { font-size: 0.7rem; letter-spacing: 1.5px; }

  /* ── Service cards ── */
  .service-icon-wrap { width: 46px; height: 46px; border-radius: 10px; }
  .service-icon      { font-size: 1.2rem; }
  .service-title     { font-size: 1rem; }

  /* ── Portfolio ── */
  .portfolio-preview { height: 148px; }

  /* ── Pricing ── */
  .pricing-card           { padding: 1.5rem; }
  .pricing-popular-badge  { font-size: 0.66rem; padding: 0.28rem 0.85rem; }
  .price-amount           { font-size: 2.2rem; }

  /* ── Contact ── */
  .contact-form-wrap  { padding: 1.25rem; }
  .tech-badge         { font-size: 0.7rem; padding: 0.2rem 0.55rem; }

  /* ── Footer ── */
  .footer-socials a { width: 34px; height: 34px; font-size: 0.88rem; }
}

/* ─────────────────────────────────────────────────────────────────
   VERY SMALL PHONES  ≤ 390px  (iPhone SE, Galaxy A series)
───────────────────────────────────────────────────────────────── */
@media (max-width: 390px) {


  /* CTAs: full width */
  .hero-ctas { max-width: 100%; }

  /* Cards: less padding */
  .contact-form-wrap { padding: 1rem; }
  .pricing-card      { padding: 1.25rem; }
  .service-card      { padding: 1.25rem; }

  /* Utility buttons: stacked if very narrow */
  .nav-item-utils   { flex-wrap: wrap; }
  .btn-nav-util     { flex: 1; min-width: 100px; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SUCCESS MODAL — usa vars del tema (dark/light)
   ═══════════════════════════════════════════════════════════════ */
.nt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 20, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
[data-theme="light"] .nt-modal-overlay {
    background: rgba(40, 40, 70, 0.45);
}
.nt-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.nt-modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.5rem 1.75rem 1.75rem;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px var(--border-hover),
        0 0 40px var(--accent-glow);
    transform: translateY(16px) scale(.96);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.nt-modal-overlay.is-open .nt-modal-card {
    transform: translateY(0) scale(1);
}

.nt-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .2s ease;
}
.nt-modal-close:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: rotate(90deg);
}

.nt-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 30px var(--accent-glow);
    animation: ntModalPop .45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ntModalPop {
    0%   { transform: scale(.2); opacity: 0; }
    70%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.nt-modal-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 .75rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nt-modal-text {
    color: var(--text-secondary);
    font-size: .98rem;
    line-height: 1.55;
    margin: 0 0 1.75rem;
}
.nt-modal-text strong { color: var(--text-primary); }

.nt-modal-btn {
    min-width: 160px;
}
