/* ==========================================================================
   CSS PRINCIPAL - MarcosLunaDev LANDING PAGE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-primary: #080b11;
  --bg-secondary: #0f1420;
  --bg-tertiary: #171e2e;

  --text-main: #94a3b8;
  --text-light: #cbd5e1;
  --text-white: #ffffff;

  --accent-cyan: #06b6d4;
  --accent-cyan-hover: #0891b2;
  --accent-cyan-rgb: 6, 182, 212;

  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-emerald-rgb: 16, 185, 129;

  --color-angular: #e0234e;
  --color-react: #61dafb;
  --color-next: #ffffff;
  --color-node: #339933;
  --color-bun: #facc15;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(6, 182, 212, 0.5);

  /* Fonts */
  --font-family-headings: 'Outfit', 'Inter', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  --font-family-mono: 'Courier New', Courier, monospace;

  /* Layout */
  --header-height: 80px;
  --container-max-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  accent-color: var(--accent-cyan);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 10px;
  transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-white);
  font-family: var(--font-family-headings);
  font-weight: 700;
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. UTILITIES & HELPER CLASSES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.tag-pill {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0.5rem 1.25rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 100px;
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-headings);
}

.tag-pill.tag-emerald {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.glassmorphism {
  background: rgba(15, 20, 32, 0.65);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.flex-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.flex-btn i {
  transition: transform var(--transition-fast);
}

.flex-btn:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-normal);
  background: transparent;
}

.header.scrolled {
  background: rgba(8, 11, 17, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: var(--container-max-width);
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.logo-text {
  font-family: var(--font-family-headings);
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: none;
  /* Mobile hidden */
}

.nav-link {
  color: var(--text-light);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-fast);
}

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

.btn-nav {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.mobile-toggle {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.75rem;
  cursor: pointer;
  display: block;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .mobile-toggle {
    display: none;
  }
}

/* Mobile Menu Open */
@media (max-width: 991px) {
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .btn-nav {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-h-screen: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-promise-wrapper {
  width: 100%;
  margin-top: -0.5rem;
  padding-left: 0.25rem;
}

.hero-promise {
  font-size: 0.875rem;
  color: var(--accent-emerald);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

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

.stat-num {
  font-family: var(--font-family-headings);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-color);
  display: none;
}

@media (min-width: 480px) {
  .stat-divider {
    display: block;
  }
}

.hero-visual {
  position: relative;
  display: none;
  /* Hide on mobile to keep focus */
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-visual {
    display: flex;
  }
}

.glow-effect {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.code-editor-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.editor-header {
  background-color: rgba(15, 20, 32, 0.95);
  padding: 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ef4444;
}

.dot.yellow {
  background-color: #f59e0b;
}

.dot.green {
  background-color: #10b981;
}

.editor-tab {
  margin-left: 1.5rem;
  color: var(--text-light);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-family-mono);
  background: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.editor-body {
  background-color: rgba(8, 11, 17, 0.95);
  padding: 1.5rem;
  overflow-x: auto;
}

.editor-body pre {
  margin: 0;
}

.editor-body code {
  font-family: var(--font-family-mono);
  font-size: 0.875rem;
  color: var(--text-light);
  white-space: pre-wrap;
}

/* Syntax highlight simulation */
.keyword {
  color: #c084fc;
}

.function {
  color: #34d399;
}

.property {
  color: #22d3ee;
}

.string {
  color: #fb923c;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-cyan);
  font-size: 1.75rem;
  animation: bounce 2s infinite;
  z-index: 5;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, -10px);
  }

  60% {
    transform: translate(-50%, -5px);
  }
}

/* --------------------------------------------------------------------------
   6. SECTIONS COMMON
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-main);
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   7. SERVICIOS SECTION
   -------------------------------------------------------------------------- */
.servicios {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

.service-card {
  position: relative;
  border-radius: 20px;
  padding: 2.5rem;
  overflow: hidden;
  transition: var(--transition-normal);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.service-card-text {
  color: var(--text-main);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.service-list li i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card:nth-child(even) .service-list li i {
  color: var(--accent-emerald);
}

.card-bg-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 0 0 0 100%;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.service-card:hover .card-bg-gradient {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. TECNOLOGIAS SECTION
   -------------------------------------------------------------------------- */
.tecnologias {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  background-color: #0b0f19;
}

.tecnologias-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(6, 182, 212, 0.05) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
}

.tech-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lg-col-span-2 {
    grid-column: span 2;
  }
}

.tech-card-wrapper {
  padding: 3px;
  border-radius: 24px;
  background: transparent;
  transition: var(--transition-normal);
}

.tech-card {
  background-color: var(--bg-primary);
  border-radius: 21px;
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tech-icon-bg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-normal);
}

.tech-icon-svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.tech-card:hover .tech-icon-bg {
  transform: rotate(6deg);
}

.bg-red {
  background: linear-gradient(135deg, #f43f5e, var(--color-angular));
}

.bg-cyan {
  background: linear-gradient(135deg, #38bdf8, var(--color-react));
}

.bg-gray {
  background: linear-gradient(135deg, #64748b, #1e293b);
}

.bg-green {
  background: linear-gradient(135deg, #4ade80, var(--color-node));
}

.bg-yellow {
  background: linear-gradient(135deg, #fef08a, var(--color-bun));
}

.bg-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.bg-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-white);
}

.badge-red {
  background-color: var(--color-angular);
}

.badge-cyan {
  background-color: var(--color-react);
}

.badge-gray {
  background-color: #334155;
}

.badge-green {
  background-color: var(--color-node);
}

.badge-yellow {
  background-color: #ca8a04;
}

.badge-orange {
  background-color: #ea580c;
}

.badge-blue {
  background-color: #2563eb;
}

.tech-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.tech-desc {
  font-size: 0.9375rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: auto;
}

.tech-tags span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-indicator.bg-red {
  background-color: var(--color-angular);
}

.dot-indicator.bg-cyan {
  background-color: var(--color-react);
}

.dot-indicator.bg-gray {
  background-color: #64748b;
}

.dot-indicator.bg-green {
  background-color: var(--color-node);
}

.dot-indicator.bg-yellow {
  background-color: var(--color-bun);
}

.dot-indicator.bg-orange {
  background-color: #ea580c;
}

.dot-indicator.bg-blue {
  background-color: #2563eb;
}

/* Glow hovers */
.tech-card-wrapper.border-red:hover {
  background: linear-gradient(135deg, #f43f5e, var(--color-angular));
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(224, 35, 78, 0.25);
}

.tech-card-wrapper.border-cyan:hover {
  background: linear-gradient(135deg, #38bdf8, var(--color-react));
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(97, 218, 251, 0.25);
}

.tech-card-wrapper.border-gray:hover {
  background: linear-gradient(135deg, #64748b, #1e293b);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.tech-card-wrapper.border-green:hover {
  background: linear-gradient(135deg, #4ade80, var(--color-node));
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(51, 153, 51, 0.25);
}

.tech-card-wrapper.border-yellow:hover {
  background: linear-gradient(135deg, #fef08a, var(--color-bun));
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.25);
}

.tech-card-wrapper.border-orange:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.25);
}

.tech-card-wrapper.border-blue:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.tech-secondary {
  margin-top: 4.5rem;
  text-align: center;
}

.secondary-title {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.secondary-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.sec-badge {
  padding: 0.625rem 1.5rem;
  background-color: rgba(15, 20, 32, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sec-badge:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  background-color: rgba(6, 182, 212, 0.05);
}

/* --------------------------------------------------------------------------
   9. PORTAFOLIO SECTION
   -------------------------------------------------------------------------- */
.portafolio {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.filter-btn {
  padding: 0.625rem 1.75rem;
  border-radius: 100px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--text-white);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.portfolio-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  background-color: rgba(15, 20, 32, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15);
}

.card-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  opacity: 0.7;
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 1rem;
  background: rgba(16, 185, 129, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

.card-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}

.portfolio-card:hover .card-title {
  color: var(--accent-cyan);
}

.card-text {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.card-tags .tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  padding: 0.25rem 0.75rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
}

.details-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.details-link i {
  transition: transform var(--transition-fast);
}

.details-link:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. EQUIPO SECTION
   -------------------------------------------------------------------------- */
.equipo {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

.equipo-glow-1 {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.equipo-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.developer-profile-wrapper {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.developer-profile-card {
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .developer-profile-card {
    flex-direction: row;
  }
}

.developer-visual {
  position: relative;
  width: 100%;
  height: 360px;
  flex-shrink: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .developer-visual {
    width: 320px;
    height: auto;
  }
}

.developer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.developer-profile-card:hover .developer-img {
  transform: scale(1.03);
}

.developer-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 50%);
}

@media (min-width: 768px) {
  .developer-image-overlay {
    background: linear-gradient(to right, transparent 50%, rgba(15, 20, 32, 0.9) 100%);
  }
}

.developer-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .developer-info {
    padding: 3.5rem;
  }
}

.dev-role {
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.dev-name {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.dev-bio {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.dev-bio-extra {
  color: var(--text-main);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.developer-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.dev-badge {
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.developer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.social-link:hover {
  background-color: var(--accent-cyan);
  color: var(--text-white);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   11. CONTACTO SECTION
   -------------------------------------------------------------------------- */
.contacto {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.contacto-glow-1 {
  position: absolute;
  top: 25%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 75%);
  pointer-events: none;
}

.contacto-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 75%);
  pointer-events: none;
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

@media (min-width: 992px) {
  .contacto-wrapper {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.contacto-info-card {
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.info-card-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bg-cyan-alpha {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.bg-emerald-alpha {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

.info-details h4 {
  font-size: 0.9375rem;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.info-details p {
  font-size: 0.875rem;
  color: var(--text-main);
}

.info-details a:hover {
  color: var(--accent-cyan);
}

.contact-phone-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.contact-phone-link {
  transition: var(--transition-fast);
}

.contact-phone-link:hover {
  color: var(--accent-cyan);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald) !important;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: var(--accent-emerald);
  color: var(--text-white) !important;
  border-color: var(--accent-emerald);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.info-socials-wrapper {
  margin-top: auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.info-socials-wrapper h4 {
  font-size: 0.9375rem;
  color: var(--text-white);
  margin-bottom: 1rem;
}

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

.info-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-socials a:hover {
  background-color: var(--accent-cyan);
  color: var(--text-white);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.contacto-form-card {
  border-radius: 20px;
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-white);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #576375;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 16L6 10H18L12 16Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

.form-textarea {
  resize: none;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: #576375;
  margin-top: 0.25rem;
}

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(6, 182, 212, 0.55);
  border-radius: 4px;
  background-color: var(--bg-primary);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: var(--transition-fast);
}

.form-checkbox:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

.form-checkbox:checked {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.form-checkbox:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.checkbox-label a {
  color: var(--accent-cyan);
  transition: var(--transition-fast);
}

.checkbox-label a:hover {
  color: var(--accent-cyan-hover);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 1.125rem;
  font-size: 1rem;
}

/* Spinner */
.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-white);
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-feedback {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1rem;
}

.form-feedback.success {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.form-feedback.error {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Modern accessibility classes */
.form-input:user-invalid,
.form-select:user-invalid,
.form-textarea:user-invalid {
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: #030508;
  padding-top: 6rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-radius: 40px 40px 0 0;
}

.footer-bottom-decor {
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(5rem, 10vw, 15rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.relative-z {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  margin-bottom: 4.5rem;
}

@media (min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

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

.flex-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-logo-text {
  font-family: var(--font-family-headings);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-white);
}

.footer-desc {
  color: var(--text-main);
  font-size: 0.875rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

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

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-socials a:hover {
  background-color: var(--accent-cyan);
  color: var(--text-white);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-main);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  position: relative;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem 3.5rem 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.875rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.btn-newsletter-submit {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  width: 40px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  color: var(--text-white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-newsletter-submit:hover {
  opacity: 0.9;
}

.newsletter-feedback {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.newsletter-feedback.success {
  color: var(--accent-emerald);
}

.newsletter-feedback.error {
  color: #f87171;
}

.footer-bottom {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright {
  font-size: 0.8125rem;
  color: #576375;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: #576375;
}

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

/* --------------------------------------------------------------------------
   15. LANGUAGE SWITCHER
   -------------------------------------------------------------------------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.4rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-switch:hover {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--text-white);
}

.lang-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
}

.lang-separator {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.6875rem;
  pointer-events: none;
  font-weight: 400;
}

@media (max-width: 767px) {
  .lang-switch {
    margin: 0.5rem 0;
    padding: 0.3rem 0.6rem;
  }

  .lang-btn {
    font-size: 0.8125rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ==========================================================================
   PÁGINA DE PRIVACIDAD
   ========================================================================== */
.privacy-main {
  padding-top: 8rem;
  padding-bottom: 6rem;
  position: relative;
  min-height: 80vh;
  overflow: hidden;
}

.privacy-glow-1 {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-card {
  padding: 3rem;
  border-radius: 24px;
}

.privacy-card h1.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.privacy-card .last-updated {
  font-size: 0.875rem;
  color: var(--text-main);
  opacity: 0.7;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.privacy-section h2 {
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 1rem;
  font-family: var(--font-family-headings);
  font-weight: 600;
}

.privacy-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.privacy-section p strong {
  color: var(--text-white);
}

.privacy-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.privacy-section a {
  color: var(--accent-cyan);
  transition: var(--transition-fast);
}

.privacy-section a:hover {
  color: var(--accent-cyan-hover);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .privacy-card {
    padding: 1.75rem;
    border-radius: 16px;
  }

  .privacy-card h1.section-title {
    font-size: 2rem;
  }
}

/* --------------------------------------------------------------------------
   14. METODOLOGIA / COMO TRABAJO SECTION
   -------------------------------------------------------------------------- */
.metodologia {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.metodologia-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.metodologia-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 2;
}

@media (min-width: 576px) {
  .metodologia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .metodologia-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.metodologia-card {
  position: relative;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.metodologia-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

.metodologia-step-num {
  font-family: var(--font-family-headings);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.metodologia-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.metodologia-card-text {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   15. AI & AGENTIC STACK SECTION
   -------------------------------------------------------------------------- */
.ai-stack-section {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid var(--border-color);
}

.ai-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.ai-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}

@media (min-width: 576px) {
  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ai-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ai-card.hidden {
  display: none;
}

.ai-card {
  border-radius: 16px;
  padding: 1.75rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.08);
}

.ai-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ai-logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.logo-bg-white {
  background-color: #ffffff !important;
}

.ai-logo-wrapper svg,
.ai-logo-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.ai-card:hover .ai-logo-wrapper svg,
.ai-card:hover .ai-logo-wrapper img {
  transform: scale(1.1);
}

.ai-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ai-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
}

.tag-category {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.tag-deploy {
  color: #ffffff;
}

.tag-local {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.tag-cloud {
  background-color: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.tag-hybrid {
  background-color: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.ai-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.ai-desc {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   LOGO LIGHTBOX MODAL (VENTANA FLOTANTE CENTRADA)
   -------------------------------------------------------------------------- */
.logo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.logo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.logo-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-modal-overlay.active .logo-modal-content {
  transform: scale(1);
}

.logo-modal-content img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(6, 182, 212, 0.3);
  background: var(--bg-card);
}

.logo-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.logo-modal-close:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: scale(1.1);
}