/* ========================================
   SITEAR — Dark Premium Apple-Style CSS
   ======================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Palette */
  --bg-primary: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-subtle: #0d0d0d;
  --surface: #161616;
  --surface-hover: #1c1c1c;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --text-muted: #48484a;

  /* Accent */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-glow: rgba(0, 113, 227, 0.15);
  --violet: #5e5ce6;
  --violet-glow: rgba(94, 92, 230, 0.12);
  --green: #30d158;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Spacing */
  --section-py: clamp(80px, 12vw, 160px);
  --container-px: clamp(20px, 5vw, 80px);
  --max-w: 1080px;

  /* Transitions */
  --ease: cubic-bezier(.25, .1, .25, 1);
  --duration: 0.6s;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---------- Section Shared ---------- */
.section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.section-label {
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.section-desc {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  font-weight: var(--fw-light);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.5;
}



/* ---------- Section Glow Backgrounds ---------- */
.section-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.section-glow--right {
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.section-glow--left {
  top: -100px;
  left: -250px;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
}

.section-glow--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  width: 800px;
  height: 800px;
}

.section .container {
  position: relative;
  z-index: 1;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.9);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 80px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.glitch-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  position: relative;
  letter-spacing: -0.5px;
}

.glitch-title::before {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  text-shadow: -2px 0 #ff003c;
  top: 0;
  background: transparent;
  /* transparent since it's on navbar */
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 15px, 0);
  }

  20% {
    clip: rect(25px, 9999px, 30px, 0);
  }

  40% {
    clip: rect(5px, 9999px, 12px, 0);
  }

  60% {
    clip: rect(18px, 9999px, 22px, 0);
  }

  80% {
    clip: rect(3px, 9999px, 8px, 0);
  }

  100% {
    clip: rect(20px, 9999px, 28px, 0);
  }
}

.nav-right {
  display: flex;
  align-items: center;
}

/* Language Switch Button UI */
.lang-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flag-icon {
  font-size: 18px;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}

.flag-icon.active {
  opacity: 1;
  transform: scale(1.15);
}

.lang-toggle-btn {
  width: 44px;
  height: 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease);
}

.lang-thumb {
  width: 18px;
  height: 18px;
  background: var(--text-primary);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.lang-toggle-btn.en-active .lang-thumb {
  transform: translateX(18px);
}

.reveal,
.reveal.active {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ---------- Hero — Spotlight Reveal ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--container-px) 80px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  cursor: none;
  /* Hide default cursor in hero */
}

/* Background container */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Dual image layers */
.hero-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-layer--base {
  z-index: 1;
}

.hero-layer--base img {
  opacity: 0.45;
  filter: saturate(0.3) brightness(0.8);
}

.hero-layer--reveal {
  z-index: 2;
  clip-path: circle(0px at -100px -100px);
  -webkit-clip-path: circle(0px at -100px -100px);
  will-change: clip-path;
}

.hero-layer--reveal img {
  opacity: 0.9;
  filter: saturate(1.2) brightness(1.05);
}

/* Echo canvas */
.hero-echoes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Spotlight cursor */
.spotlight-cursor {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1.5px solid rgba(94, 92, 230, 0.25);
  box-shadow:
    0 0 40px rgba(94, 92, 230, 0.08),
    inset 0 0 40px rgba(94, 92, 230, 0.03);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
  backdrop-filter: brightness(1.05);
  -webkit-backdrop-filter: brightness(1.05);
}

/* Glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

.hero-glow--1 {
  width: 700px;
  height: 700px;
  top: -20%;
  left: 50%;
  transform: translateX(-70%);
  background: radial-gradient(circle, rgba(94, 92, 230, 0.18) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

.hero-glow--2 {
  width: 600px;
  height: 600px;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.14) 0%, transparent 70%);
  animation: glowPulse 10s ease-in-out 2s infinite alternate;
}

/* Reactive grid */
.hero-grid {
  position: absolute;
  inset: -20px;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 10%, transparent 70%);
  transition: transform 0.3s ease-out;
}

@keyframes glowPulse {
  0% {
    opacity: 0.6;
    transform: translateX(-70%) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateX(-70%) scale(1.15);
  }
}

/* Hero content (above all layers) */
.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 5;
  transition: transform 0.15s ease-out;
}

.hero-title {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 24px;
  color: var(--text-primary);
  min-height: 200px;
  /* Previene saltos de layout cuando escribe múltiples líneas */
}

.hero-sub {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: var(--fw-light);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-bullets {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 32px 0;
  color: var(--text-tertiary);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.hero-bullets li {
  padding-left: 0;
}

.hero-bullets li::before {
  display: none;
}


.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 12px 22px;
  border-radius: 999px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #0b0b0b;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: var(--fw-semibold);
  font-size: 15px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-whatsapp:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.35);
}

/* Primary Button */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: var(--fw-medium);
  padding: 14px 32px;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-cta-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Value ---------- */
.value {
  background: var(--bg-subtle);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.value-item:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 28px;
  margin-bottom: 18px;
  opacity: 0.7;
}

.value-item h3 {
  font-size: 20px;
  font-weight: var(--fw-semibold);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.value-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Showcase ---------- */
.showcase {
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding-bottom: var(--section-py);
}

.showcase .section-label {
  color: var(--accent);
}

.showcase .section-desc {
  color: var(--text-secondary);
}

.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--container-px);
}

/* First card spans full width for visual hierarchy */
.showcase-item:first-child {
  grid-column: 1 / -1;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  background: #0d0d16;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.showcase-item:hover {
  border-color: var(--border-light);
  box-shadow: 0 0 40px rgba(0, 113, 227, 0.08);
}

/* Image area: fixed height, centered, no stretching */
.showcase-item .img-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d16;
}

.showcase-item:first-child .img-wrap {
  height: 380px;
}

.showcase-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
  opacity: 0.92;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.showcase-item:hover .img-wrap img {
  transform: scale(1.03);
  opacity: 1;
}

/* Caption as a static bottom bar (not overlay) */
.showcase-caption {
  padding: 20px 24px 22px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.showcase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}

.showcase-caption h3 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-card p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-card .price {
  display: block;
  font-size: 22px;
  font-weight: var(--fw-semibold);
  margin-bottom: 16px;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.pricing-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pricing-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 113, 227, 0.12);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-subtle);
}

.contact-form {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row .form-group {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  transition: border-color 0.3s var(--ease);
  outline: none;
  resize: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
}

.contact-form .btn-primary {
  margin-top: 8px;
}

.contact-whatsapp {
  margin-top: 20px;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-tertiary);
  min-height: 18px;
}

.captcha-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.captcha-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-grid .footer-links,
.footer-grid .footer-social {
  display: block;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ---------- Showcase Enhancements ---------- */
.showcase-item {
  cursor: pointer;
}

.showcase-num {
  position: absolute;
  top: 28px;
  right: clamp(20px, 5vw, 80px);
  font-size: 72px;
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  transition: color 0.4s var(--ease);
}

.showcase-item:hover .showcase-num {
  color: rgba(255, 255, 255, 0.12);
}

.showcase-caption-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 16px;
  line-height: 1.5;
  max-width: 480px;
}

.showcase-metrics {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-cta {
  text-align: center;
  margin-bottom: 48px;
}

.footer-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  line-height: 1.15;
  background: linear-gradient(to bottom, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-large {
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 50px;
}

.magnetic-btn {
  display: inline-block;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.footer-brand img {
  margin-bottom: 12px;
  max-width: 72px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.footer-links ul,
.footer-social ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a,
.footer-social a {
  color: var(--text-primary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 768px) {

  .nav-inner {
    height: 80px;
  }

  .nav-logo img {
    height: 56px;
  }

  .glitch-title {
    font-size: 20px;
  }

  .lang-switch-wrapper {
    gap: 6px;
    padding: 4px 8px;
  }

  .flag-icon {
    font-size: 14px;
  }


  .value-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-item {
    flex-direction: column;
    gap: 6px;
  }

  .service-detail {
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    gap: 20px;
  }

  .step-number {
    font-size: 32px;
    min-width: 42px;
  }

  /* Reduce glow sizes on mobile */
  .hero-glow--1,
  .hero-glow--2 {
    width: 350px;
    height: 350px;
  }

  .section-glow {
    width: 300px;
    height: 300px;
  }

  /* Touch spotlight — keep reveal layer active, hide mouse-only cursor ring */
  .hero {
    cursor: auto;
  }

  /* Hide the circular cursor ring (mouse-only UI) */
  .spotlight-cursor {
    display: none;
  }

  /* Keep echoes canvas and reveal layer visible for touch */
  .hero-echoes {
    display: block;
  }

  .hero-layer--base img {
    opacity: 0.35;
  }

  .hero-layer--reveal {
    display: block;
    /* Start hidden until finger touches */
    clip-path: circle(0px at 50% 50%);
    -webkit-clip-path: circle(0px at 50% 50%);
  }

  /* Modal mobile */
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-panel {
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
  }

  .modal-body {
    padding: 24px 20px 32px;
  }

  .modal-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .modal-highlight {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }

  .modal-highlight-value {
    font-size: 20px;
  }

  .showcase-num {
    display: none;
  }

  /* Services mobile (Horizontal Carousel) */
  .services-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 24px;
    /* Space for scrollbar/touch */
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    /* Bleed to edges */
    padding-left: 20px;
    padding-right: 20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    min-width: 90%;
    /* Show next card peek */
    scroll-snap-align: center;
  }

  .service-img {
    height: 200px;
  }

  /* Footer Responsive */
  .footer {
    padding: 80px 0 30px;
  }

  /* Showcase Mobile Improvements (Horizontal Carousel) */
  .showcase-gallery {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .showcase-gallery::-webkit-scrollbar {
    display: none;
  }

  .showcase-item {
    min-width: 90%;
    margin-bottom: 0;
    scroll-snap-align: center;
  }

  .showcase-caption {
    padding: 0;
  }

  .showcase-tag {
    font-size: 12px;
  }

  .showcase-caption h3 {
    font-size: 24px;
    margin: 8px 0;
  }

  .showcase-num {
    display: none;
  }
}


/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 0;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-panel {
  transform: scale(1);
}

/* Modal Close Button (Refactored) */
.modal-close {
  background: rgba(255, 255, 255, 0.1);
  /* Subtle background */
  color: white;
  opacity: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: absolute;
  /* Ensure it's absolute relative to panel */
  top: 16px;
  right: 16px;
  z-index: 10;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Utility for logos that need white filter */
.invert-white {
  filter: brightness(0) invert(1);
}

/* Footer Responsive (Moved here for cleanliness) */
@media (max-width: 768px) {
  .footer-cta {
    margin-bottom: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-sub {
    font-size: 16px;
  }
}

/* ========================================
   PROJECTS CAROUSEL STYLES
   ======================================== */



/* ========================================
   PORTAFOLIO EVOLUTIVO STYLES
   ======================================== */

.portfolio-evolution {
  background: #050505;
  position: relative;
  overflow: hidden;
}

.evolution-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  transition: background 0.8s ease;
  z-index: 0;
}

.evolution-glow[data-theme="gray"] {
  background: radial-gradient(circle, rgba(100, 100, 100, 0.15) 0%, transparent 70%);
}

.evolution-glow[data-theme="blue"] {
  background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, transparent 70%);
}

.evolution-glow[data-theme="cyan"] {
  background: radial-gradient(circle, rgba(0, 210, 211, 0.2) 0%, transparent 70%);
}

.evolution-glow[data-theme="neon"] {
  background: radial-gradient(circle, rgba(138, 43, 226, 0.25) 0%, transparent 70%);
}

.evolution-glow[data-theme="fire"] {
  background: radial-gradient(circle, rgba(255, 69, 0, 0.25) 0%, transparent 70%);
}

.evolution-switcher {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .evolution-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 12px 8px;
    margin-left: -12px;
    margin-right: -12px;
    scroll-snap-type: x mandatory;
  }

  .evolution-switcher::-webkit-scrollbar {
    height: 6px;
  }

  .evolution-switcher::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
  }

  .evolution-tab {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
}

.evolution-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  min-width: 100px;
}

.evolution-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.evolution-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--text-primary);
}

.tab-icon {
  font-size: 22px;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.evolution-tab.active[data-id="enterprise"] {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}

.evolution-tab:hover .tab-icon,
.evolution-tab.active .tab-icon {
  filter: grayscale(0%);
}

/* --- Services Section --- */
.services {
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  perspective: 1000px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.03) 30%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: black;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px var(--accent-glow);
  border-color: transparent;
}

.service-icon-bg {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  filter: blur(40px);
}

.service-card:hover .service-icon-bg {
  opacity: 0.2;
}

.service-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.service-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.service-sales {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-offer {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service-tags li {
  font-size: 12px;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover .service-tags li {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
}


.tab-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: var(--fw-semibold);
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evolution-content {
  position: relative;
  z-index: 1;
}

.evolution-pricing {
  margin-bottom: 48px;
}

.evolution-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  transition: all 0.5s ease;
}

.evolution-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(0, 113, 227, 0.15);
}

.evolution-card h3 {
  font-size: 28px;
  font-weight: var(--fw-semibold);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.evolution-card .price {
  font-size: 36px;
  font-weight: var(--fw-semibold);
  margin: 16px 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  font-size: 10px;
  background: #db2777;
  color: white;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Grid Layout */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Left Column: Info */
.pricing-info {
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-info .pricing-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-info .btn-cta-full {
  margin-top: auto;
}

.plan-visual-card {
  cursor: pointer;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 180px;
  position: relative;
  background: #0e0e0e;
}

.plan-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan-visual-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.plan-visual-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  gap: 4px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.plan-visual-overlay span {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.plan-visual-card--single {
  height: 100%;
  min-height: 320px;
}

.plan-visual-card--single .plan-visual-image {
  height: 100%;
  min-height: 320px;
}

.plan-visual-card--single.project-mini-card {
  height: 100%;
  min-height: 320px;
}

.plan-visual-card--single .plan-visual-overlay .pmc-type {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .plan-visual-grid {
    grid-template-columns: 1fr;
  }

  .plan-visual-card,
  .plan-visual-image {
    min-height: 220px;
  }
}

/* Badge */
.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

/* Badge Styles */
.badge-minimal {
  background: #1f2937;
  color: #d1d5db;
}

.badge-professional {
  background: #1e3a8a;
  color: #93c5fd;
}

.badge-modern {
  background: #164e63;
  color: #67e8f9;
}

.badge-cyber {
  background: #701a75;
  color: #f0abfc;
}

.badge-infernal {
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid #ef4444;
}

/* Title & Price */
.plan-subtitle {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.1;
  color: white;
}

/* Pricing (legacy classes, keep for safety) */
.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
}

.plan-price {
  font-size: 48px;
  font-weight: 700;
  color: white;
}

.plan-currency {
  font-size: 20px;
  color: #6b7280;
}

/* Pricing (active classes) */
.pc-price {
  font-size: 46px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.pc-features li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-desc {
  font-size: 18px;
  color: #d1d5db;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.6;
}

/* Features */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: white;
}

.feature-check svg {
  width: 14px;
  height: 14px;
  color: black;
}

.feature-text {
  font-size: 18px;
  color: #e5e7eb;
}

/* Check Colors */
.check-professional {
  background: #3b82f6;
}

.check-modern {
  background: #22d3ee;
}

.check-cyber {
  background: #d946ef;
}

.check-infernal {
  background: #ef4444;
}

/* --- Methodology Section (Refined) --- */
.methodology {
  position: relative;
  z-index: 2;
  overflow: hidden;
  /* Contain overflow from glowing elements */
}

/* Timeline Container */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

/* The vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  /* Adjust based on marker size */
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

/* The filling line (animated) */
.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 0%;
  /* JS will update this */
  background: linear-gradient(to bottom, var(--accent), #a855f7);
  box-shadow: 0 0 15px var(--accent-glow);
  z-index: 1;
  transition: height 0.1s linear;
  /* Smooth fill */
}

.timeline-step {
  position: relative;
  margin-bottom: 60px;
  padding-left: 60px;
  /* Space for marker */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  z-index: 2;
}

.timeline-step.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background: #0a0a0a;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5);
  /* Fake border for spacing */
}

.timeline-step.active .timeline-marker {
  border-color: var(--accent);
  color: white;
  background: var(--accent-dark, #1a1a1a);
  box-shadow: 0 0 15px var(--accent-glow), 0 0 0 4px rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

.step-title {
  font-size: 24px;
  margin-bottom: 12px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-line-fill {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-step {
    width: 50%;
    padding-left: 0;
    margin-bottom: 80px;
  }

  /* Alternating layout */
  .timeline-step:nth-child(odd) {
    margin-right: auto;
    padding-right: 50px;
    text-align: right;
  }

  .timeline-step:nth-child(even) {
    margin-left: auto;
    padding-left: 50px;
  }

  .timeline-marker {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-step:nth-child(odd) .step-title {
    justify-content: flex-end;
  }

  .timeline-step:hover .timeline-content {
    transform: translateY(-5px);
    /* Lift up instead of right on desktop */
  }
}


/* Button */
.plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: black;
  background: white;
}

.plan-btn:hover {
  transform: scale(1.05);
}

/* Button Styles */
.btn-minimal {
  background: white;
  color: black;
}

.btn-minimal:hover {
  background: #e5e7eb;
}

.btn-professional {
  background: #2563eb;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.5);
}

.btn-professional:hover {
  background: #1d4ed8;
}

.btn-modern {
  background: #06b6d4;
  color: black;
  box-shadow: 0 10px 15px -3px rgba(22, 78, 99, 0.5);
}

.btn-modern:hover {
  background: #22d3ee;
}

.btn-cyber {
  background: #c026d3;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(112, 26, 117, 0.5);
}

.btn-cyber:hover {
  background: #a21caf;
}

.btn-infernal {
  background: linear-gradient(to right, #dc2626, #ea580c);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.5);
}

.btn-infernal:hover {
  background: linear-gradient(to right, #ef4444, #f97316);
}

/* Right Column: Visual Card */

.pricing-visual {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  height: 100%;
}

.visual-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.visual-slide {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  cursor: default;
}

.visual-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.visual-project-info {
  padding: 24px;
}

.visual-project-info h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.visual-project-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.visual-glow {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  filter: blur(60px);
  transition: background-color 0.5s ease;
}

.visual-icon {
  position: relative;
  z-index: 10;
  color: white;
  transition: transform 0.7s ease;
}

.pricing-visual:hover .visual-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* Infernal Theme Specifics */
.theme-infernal-card {
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.5), 0 0 50px rgba(220, 38, 38, 0.2);
  animation: pulse-red 3s infinite;
}

.infernal-fire-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 128px;
  background: linear-gradient(to top, rgba(220, 38, 38, 0.5), transparent);
  animation: animate-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.infernal-border-glow {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: 24px;
  transition: all 0.3s ease;
}

.pricing-visual:hover .infernal-border-glow {
  border-color: rgba(239, 68, 68, 0.5);
}

/* Animations */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.5), 0 0 50px rgba(220, 38, 38, 0.2);
  }

  50% {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.8), 0 0 80px rgba(220, 38, 38, 0.4);
  }

  100% {
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.5), 0 0 50px rgba(220, 38, 38, 0.2);
  }
}

@keyframes animate-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* Text Gradients */
.text-gradient-infernal {
  background: linear-gradient(to right, #f97316, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07));
}

.text-gradient-cyber {
  background: linear-gradient(to right, #e879f9, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ========================================
   10. PRICING PROJECTS & CONTACT IMPROVEMENTS
   ======================================== */

/* --- Pricing Projects --- */
.pricing-projects-container {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 60px;
}

.pricing-projects-container:empty {
  display: none;
}

.pricing-projects-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: 40px;
}

.projects-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-mini-card {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  height: 200px;
  /* Fixed height for image display */
  padding: 0;
  /* Remove padding to let image fill */
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.project-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-mini-card[data-theme="infernal"]:hover {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.35), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* Remove old icon styles if not needed, or keep for fallback */
.project-mini-icon {
  display: none;
}


.project-mini-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.project-mini-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.project-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: white;
}

.project-mini-card:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* --- Project Modal --- */
.modal-panel--project {
  max-width: 500px;
  width: 90%;
  padding: 0;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal-content {
  /* Generated content styles */
}

.pm-header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: inline-block;
}

.pm-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.pm-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

.pm-body {
  padding: 24px;
}

.pm-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-feature svg {
  color: var(--green);
  width: 18px;
  height: 18px;
  min-width: 18px;
  /* Force size */
  flex-shrink: 0;
}

/* --- Refactored Contact Section --- */
.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 60px;
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 80px -20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .contact-card {
    padding: 32px 24px;
  }
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.contact-desc {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Floating Labels Form */
.form-group.floating-label {
  position: relative;
  margin-bottom: 24px;
}

.form-group.floating-label input,
.form-group.floating-label textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 0;
  font-size: 16px;
  color: white;
  border-radius: 0;
  transition: all 0.3s ease;
}

.form-group.floating-label input:focus,
.form-group.floating-label textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group.floating-label label {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.form-group.floating-label input:focus~label,
.form-group.floating-label input:not(:placeholder-shown)~label,
.form-group.floating-label textarea:focus~label,
.form-group.floating-label textarea:not(:placeholder-shown)~label {
  top: -12px;
  font-size: 12px;
  color: var(--accent);
}

.form-group.floating-label .focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.form-group.floating-label input:focus~.focus-border,
.form-group.floating-label textarea:focus~.focus-border {
  width: 100%;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.captcha-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
}

.captcha-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.project-mini-card[data-theme="infernal"] {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
  animation: pulse-red 3s infinite;
}

.project-mini-card[data-theme="cyber"] {
  border-color: rgba(232, 121, 249, 0.35);
  box-shadow: 0 0 26px rgba(96, 165, 250, 0.2);
}

.project-mini-card[data-theme="modern"] {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}

.project-mini-card[data-theme="professional"] {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}

.project-mini-card[data-theme="minimal"] {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.evolution-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.8;
  transition: background 0.8s ease;
}

.evolution-bg.bg-minimal {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(160, 160, 160, 0.08), transparent 60%);
}

.evolution-bg.bg-professional {
  background: radial-gradient(circle at 20% 20%, rgba(0, 113, 227, 0.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.12), transparent 60%);
}

.evolution-bg.bg-modern {
  background: radial-gradient(circle at 25% 25%, rgba(34, 211, 238, 0.2), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.12), transparent 60%);
}

.evolution-bg.bg-cyber {
  background: radial-gradient(circle at 20% 30%, rgba(232, 121, 249, 0.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(96, 165, 250, 0.16), transparent 60%);
}

.evolution-bg.bg-infernal {
  background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.28), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.22), transparent 60%);
}

.plan-visual {
  width: min(70%, 360px);
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.pricing-visual:hover .plan-visual {
  transform: translateY(-6px) scale(1.02);
  filter: saturate(1.05);
}

/* ===== MODULES SECTION ===== */
.modules {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.module-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.module-card:hover::before {
  opacity: 1;
}

.module-icon-wrapper {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.module-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.module-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ===== TYPEWRITER EFFECT ===== */
.typewriter-cursor {
  font-weight: 700;
  font-size: inherit;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  animation: blink 1s step-start infinite;
  margin-left: 4px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.text-gradient {
  background: linear-gradient(to right, var(--accent), var(--accent-glow, #60a5fa));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NEW HERO BUTTONS ===== */
.hero-cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-cta .btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.4s var(--ease);
  letter-spacing: -0.01em;
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
}

.hero-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.hero-cta .btn-secondary.hero-wsp {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.hero-cta .btn-secondary.hero-wsp:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta .btn-large {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.05rem;
  }

  .hero-title {
    min-height: 140px;
    /* Prevent layout jumps on smaller phones */
  }
}


/* ===== ENHANCED MOBILE & TABLET RESPONSIVENESS ===== */

@media (max-width: 992px) {

  /* Tablet adjustments */
  .hero-title {
    font-size: clamp(40px, 8vw, 64px);
    min-height: 160px;
  }

  .modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {

  /* Mobile adjustments */
  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
    min-height: 120px;
    margin-bottom: 1.5rem;
  }

  .typewriter-cursor {
    margin-left: 2px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .module-card {
    padding: 2rem 1.5rem;
  }

  .module-icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  .module-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .section-title {
    font-size: clamp(32px, 8vw, 40px);
  }

  .contact-title {
    font-size: clamp(28px, 8vw, 36px);
  }
}

@media (max-width: 480px) {

  /* Small Mobile adjustments */
  .hero-title {
    font-size: clamp(32px, 12vw, 40px);
    min-height: 100px;
  }

  .hero-cta {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* --- Modal Visibility & Animations --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.modal-panel {
  position: relative;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Base adjustment for project modal size */
.modal-panel--project {
  max-width: 90vw;
  width: 1200px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
