:root {
  /* Fondos */
  --bg-primary: #000000;
  --bg-secondary: #09090b;
  --bg-tertiary: #18181b;

  /* Escala de cian #06B6D4 */
  --primary-50: #e0faff;
  --primary-100: #b3f2ff;
  --primary-200: #80e5ff;
  --primary-300: #4dd7f6;
  --primary-400: #25c8eb;
  --primary-500: #06b6d4;
  --primary-600: #0493ac;
  --primary-700: #047489;
  --primary-800: #05586a;
  --primary-900: #053f4c;

  /* Textos */
  --text-primary: #ffffff;
  --text-secondary: #e4e4e7;
  --text-tertiary: #a1a1aa;
  --text-quaternary: #71717a;

  /* Acentos secundarios */
  --success: #22c55e;
  --info: #3b82f6;
  --warning: #f59e0b;

  /* Otros */
  --border-radius-lg: 24px;
  --primary-rgb: 6, 182, 212;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%), var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Layout genérico */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Partículas */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.9) 0%, rgba(var(--primary-rgb), 0) 70%);
  opacity: 0.4;
  animation: float-particle 20s infinite ease-in-out;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  padding: 24px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  height: 44px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.nav-link:hover {
  color: var(--text-primary);
}

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

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 112px;
  padding-bottom: 96px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--primary-100);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 1rem 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 34rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

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

.metric-value {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-200);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Hero visual sphere */
.hero-visual-wrapper {
  display: flex;
  justify-content: center;
}

.sphere {
  width: 400px;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.sphere-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
  border-radius: 50%;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.4), 0 0 120px rgba(var(--primary-rgb), 0.3), inset 0 0 60px rgba(var(--primary-rgb), 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  max-width: 70%;
  height: auto;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 30%, var(--primary-400) 60%, var(--primary-500) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  color: #ffffff;
  font-weight: 600;
  padding: 0.9rem 1.9rem;
  border-radius: 12px;
  border: none;
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 4px 24px rgba(var(--primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.8), 0 8px 40px rgba(var(--primary-rgb), 0.6);
}

.btn-secondary {
  padding: 0.9rem 1.7rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  background: rgba(24, 24, 27, 0.9);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(24, 24, 27, 1);
  color: var(--text-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.btn-text {
  color: var(--primary-200);
  text-decoration: none;
  font-weight: 500;
}

.btn-text:hover {
  text-decoration: underline;
}

/* Glow */
.glow-primary {
  filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.6)) drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.4)) drop-shadow(0 0 60px rgba(var(--primary-rgb), 0.3));
}

.glow-text {
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8), 0 0 20px rgba(var(--primary-rgb), 0.6), 0 0 40px rgba(var(--primary-rgb), 0.4);
}

/* Glassmorphism */
.glass-card {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.04) 50%, rgba(var(--primary-rgb), 0.08) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.35);
  transform: translateY(-4px);
}

/* Secciones genéricas */
section {
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 32rem;
}

/* Social proof */
.social-proof-section {
  padding: 2.5rem 0 2rem;
}

.social-proof-text {
  text-align: center;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.social-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-logo {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  filter: grayscale(1);
  opacity: 0.7;
  text-align: center;
}

.social-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Servicios */
.services-section {
  padding: 4.5rem 0;
}

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

/* Flip cards */
.service-card-flip {
  perspective: 1100px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-flip:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
}

.service-card-front {
  background: #000;
}

.service-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-front:hover .service-image {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.4rem 1.3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.service-title-front {
  font-size: 1.05rem;
  font-weight: 600;
}

.service-title-back {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.service-features {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature-tag {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: rgba(var(--primary-rgb), 0.14);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
}

/* Showcase */
.showcase-section {
  padding: 4.5rem 0;
}

.showcase-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.showcase-card {
  padding: 0;
  overflow: hidden;
}

.showcase-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.showcase-content {
  padding: 1.6rem 1.8rem 1.7rem;
}

.showcase-content h3 {
  margin: 0 0 0.6rem;
}

.showcase-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.showcase-stats {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stat-pill {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

/* Testimonios */
.testimonials-section {
  padding: 4.5rem 0;
}

.testimonials-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.testimonial-card {
  position: relative;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--primary-400);
  margin-bottom: 0.4rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.testimonial-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar-border {
  padding: 2px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, var(--primary-500), transparent, var(--primary-200), var(--primary-500));
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #27272f, #09090b);
}

.testimonial-name {
  font-weight: 500;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.testimonial-rating {
  font-size: 0.85rem;
  color: var(--warning);
}

/* Sobre mí */
.about-section {
  padding: 4.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.about-image-circle {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.5), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(var(--primary-rgb), 0.6);
}

.about-image {
  width: 74%;
  height: auto;
  border-radius: 999px;
  object-fit: cover;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.about-content p + p {
  margin-top: 0.9rem;
}

.about-links {
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* CTA final */
.cta-final-section {
  padding: 4.5rem 0;
}

.cta-final-inner {
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.2) 0%, rgba(0, 0, 0, 0.95) 55%);
}

.cta-final-title {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.cta-final-subtitle {
  color: var(--text-secondary);
  max-width: 30rem;
  margin: 0 auto 1.8rem;
}

.cta-final-button {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Contacto */
.contact-section {
  padding: 4.5rem 0 5.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 0.5rem;
}

.contact-label {
  font-weight: 500;
  color: var(--text-primary);
}

.contact-list a {
  color: var(--primary-200);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  padding: 2.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-quaternary);
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid #27272f;
  background: rgba(0, 0, 0, 0.85);
  padding: 0.7rem 0.85rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

input:focus,
textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.8);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.7), 0 0 18px rgba(var(--primary-rgb), 0.5);
}

/* Footer */
.footer {
  padding-top: 3rem;
  background: #020617;
  border-top: 1px solid #111827;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  max-width: 260px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-logo {
  height: 40px;
  margin-bottom: 0.8rem;
}

.footer-columns {
  display: flex;
  gap: 2.5rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.footer-column h4 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
}

.footer-column a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid #111827;
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Animaciones clave */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
  75% {
    transform: translateY(-30px) rotate(1deg);
  }
}

@keyframes float-particle {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.4;
  }
  25% {
    transform: translate(100px, -100px);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50px, -200px);
    opacity: 0.6;
  }
  75% {
    transform: translate(-100px, -100px);
    opacity: 0.8;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.5), 0 4px 24px rgba(var(--primary-rgb), 0.4), 0 0 60px rgba(var(--primary-rgb), 0.3);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.8), 0 8px 40px rgba(var(--primary-rgb), 0.6), 0 0 80px rgba(var(--primary-rgb), 0.5);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Animaciones de aparición */
.animated-element {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.animate-in {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 4.8rem;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .hero-title {
    font-size: 3.9rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section {
    padding-top: 104px;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }

  .hero-section {
    padding-top: 96px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .sphere {
    width: 220px;
    height: 220px;
  }

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

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-columns {
    flex-direction: column;
  }

  .service-card-inner {
    height: 300px;
  }
}

/* Reducir partículas en mobile */
@media (max-width: 768px) {
  .particle:nth-child(n + 20) {
    display: none;
  }
}
