/* ============================================================
   Fuxor TI - Complete Stylesheet
   ============================================================ */

/* ===== CSS Custom Properties ===== */
:root {
  /* Brand colors — never change */
  --primary: #23447d;
  --accent: #ffeb62;
  --secondary: #51c3eb;
  --black: #000000;

  /* Typography & layout — never change */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;

  /* Theme tokens — dark defaults */
  --dark: #080e1d;
  --dark-2: #0d1830;
  --dark-3: #111c35;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --border-color: rgba(81, 195, 235, 0.15);
  --card-bg: rgba(13, 24, 48, 0.8);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  --navbar-bg-scrolled: rgba(8, 14, 29, 0.9);
  --service-num-color: rgba(255, 255, 255, 0.04);
  --stat-pill-bg: rgba(13, 24, 48, 0.8);
  --contact-form-bg: rgba(13, 24, 48, 0.6);
  --ghost-btn-border: rgba(255, 255, 255, 0.2);
  --scroll-line-bg: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(8, 14, 29, 0.7);
  --input-bg-focus: rgba(8, 14, 29, 0.9);
  --nav-link-color: rgba(255, 255, 255, 0.8);
}

/* ===== Light Theme Overrides ===== */
[data-theme="light"] {
  --dark: #f0f5fc;
  --dark-2: #e3ecf8;
  --dark-3: #d5e3f2;
  --white: #0d1830;
  --text-muted: rgba(13, 24, 48, 0.55);
  --border-color: rgba(35, 68, 125, 0.12);
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 4px 30px rgba(13, 24, 48, 0.12);
  --navbar-bg-scrolled: rgba(240, 245, 252, 0.94);
  --service-num-color: rgba(13, 24, 48, 0.04);
  --stat-pill-bg: rgba(255, 255, 255, 0.9);
  --contact-form-bg: rgba(255, 255, 255, 0.78);
  --ghost-btn-border: rgba(13, 24, 48, 0.18);
  --scroll-line-bg: rgba(13, 24, 48, 0.1);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-bg-focus: rgba(255, 255, 255, 1);
  --nav-link-color: rgba(13, 24, 48, 0.72);
  --navbar-bg-scrolled: rgba(222, 234, 252, 0.96);
}

/* Navbar always visible in light mode — no waiting for scroll */
[data-theme="light"] #navbar {
  background: rgba(230, 240, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(35, 68, 125, 0.1);
  box-shadow: 0 2px 16px rgba(13, 24, 48, 0.07);
}

/* Always-dark sections: restore dark tokens locally so text stays readable */
[data-theme="light"] #hero,
[data-theme="light"] #enfoque,
[data-theme="light"] #footer {
  --dark: #080e1d;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --border-color: rgba(81, 195, 235, 0.15);
  --stat-pill-bg: rgba(13, 24, 48, 0.8);
  --ghost-btn-border: rgba(255, 255, 255, 0.2);
  --scroll-line-bg: rgba(255, 255, 255, 0.1);
}

/* Enfoque and footer don't need the hero-specific bg tokens */
[data-theme="light"] #enfoque,
[data-theme="light"] #footer {
  --border-color: rgba(255, 255, 255, 0.08);
}

/* Logo: no filter/blend needed on a light navbar */
[data-theme="light"] #navbar .logo-img {
  filter: none;
  mix-blend-mode: normal;
}

/* Toggler icon: dark strokes on light navbar */
[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%2813%2C24%2C48%2C0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero orbs: same intensity as dark mode (hero is always dark) */
[data-theme="light"] .hero-orb-1 {
  background: radial-gradient(circle, rgba(35, 68, 125, 0.55) 0%, transparent 70%);
}
[data-theme="light"] .hero-orb-2 {
  background: radial-gradient(circle, rgba(81, 195, 235, 0.2) 0%, transparent 70%);
}
[data-theme="light"] .hero-orb-3 {
  background: radial-gradient(circle, rgba(81, 195, 235, 0.06) 0%, transparent 70%);
}

/* Placeholder text on light inputs */
[data-theme="light"] .form-control::placeholder {
  color: rgba(13, 24, 48, 0.35) !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
}

::selection {
  background-color: var(--accent);
  color: var(--black);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-2);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ===== Typography Utilities ===== */
.accent-text {
  color: var(--secondary);
}

.secondary-text {
  color: var(--secondary);
}

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

.section-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(81, 195, 235, 0.1);
  border: 1px solid rgba(81, 195, 235, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.section-pretitle .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.mega-section {
  padding: 80px 0;
}

/* ===== Animations ===== */
@keyframes orb-float-1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-float-2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-50px, 30px) scale(1.08); }
  75%  { transform: translate(30px, -40px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-float-3 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(25px, 50px) scale(1.04); }
  80%  { transform: translate(-35px, -20px) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes rotate-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes rotate-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes scroll-line {
  0%   { transform: translateY(-100%); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(81, 195, 235, 0.4); opacity: 1; }
  50%       { box-shadow: 0 0 0 6px rgba(81, 195, 235, 0); opacity: 0.7; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

@keyframes grid-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== Navigation ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--navbar-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

/* PNG logo: make white background transparent on dark theme */
.logo-img {
  filter: invert(1) hue-rotate(180deg) saturate(1.1);
  mix-blend-mode: screen;
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--nav-link-color);
  padding: 6px 16px !important;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}


.navbar-toggler {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255,255,255,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===== Hero Section ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding: 90px 0 50px;
}

/* Hero background grid */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(81, 195, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 195, 235, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-fade 1s ease forwards;
  pointer-events: none;
}

/* Gradient mask over grid */
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, var(--dark) 100%);
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(35, 68, 125, 0.55) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: orb-float-1 18s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(81, 195, 235, 0.2) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
  animation: orb-float-2 22s ease-in-out infinite;
}

.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(81, 195, 235, 0.06) 0%, transparent 70%);
  top: 40%;
  left: 35%;
  animation: orb-float-3 26s ease-in-out infinite;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(81, 195, 235, 0.1);
  border: 1px solid rgba(81, 195, 235, 0.25);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.hero-h1 .accent {
  color: var(--secondary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid var(--secondary);
}

.btn-primary-cta:hover {
  background: transparent;
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(81, 195, 235, 0.3);
}

.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid var(--ghost-btn-border);
  transition: var(--transition);
}

.btn-ghost-cta:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

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

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--stat-pill-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 18px;
  backdrop-filter: blur(10px);
}

.stat-pill .stat-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-pill .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg-wrap {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}

.ring-outer {
  animation: rotate-cw 25s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.ring-middle {
  animation: rotate-ccw 18s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.ring-inner {
  animation: rotate-cw 12s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.node-pulse {
  animation: ring-pulse 3s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line-wrap {
  width: 1px;
  height: 36px;
  background: var(--scroll-line-bg);
  overflow: hidden;
  border-radius: 1px;
}

.scroll-line-inner {
  width: 100%;
  height: 50%;
  background: var(--secondary);
  animation: scroll-line 1.8s ease-in-out infinite;
}

/* ===== Services Section ===== */
#servicios {
  background: var(--dark-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35, 68, 125, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--secondary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(81, 195, 235, 0.12);
}

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

.service-card-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--service-num-color);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(81, 195, 235, 0.1);
  border: 1px solid rgba(81, 195, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: var(--secondary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(81, 195, 235, 0.18);
  border-color: rgba(81, 195, 235, 0.4);
  color: var(--secondary);
}

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--white);
  gap: 10px;
}

/* ===== Approach / Philosophy Section ===== */
#enfoque {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.approach-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.approach-header {
  margin-bottom: 60px;
}

.approach-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}

.approach-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  margin: 0;
  max-width: 700px;
}

.approach-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Horizontal connector line behind the dots */
.approach-pillars::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(28px + 2.5%);
  right: calc(28px + 2.5%);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(81,195,235,0.15) 0%,
    rgba(81,195,235,0.5) 25%,
    rgba(81,195,235,0.5) 75%,
    rgba(81,195,235,0.15) 100%);
}

.approach-pillar {
  padding: 0 32px 0 0;
  position: relative;
}

.approach-pillar:last-child {
  padding-right: 0;
}

.pillar-top {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.pillar-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--secondary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.approach-pillar:hover .pillar-icon-wrap {
  background: var(--secondary);
  color: var(--dark);
  box-shadow: 0 0 24px rgba(81,195,235,0.35);
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ===== About Section ===== */
#nosotros {
  background: var(--dark);
}

/* Capability Grid */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 420px;
  width: 100%;
}

.cap-cell {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 100px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cap-cell:hover {
  border-color: rgba(81, 195, 235, 0.4);
  transform: scale(1.03);
}

.cap-cell.accent-cell {
  background: rgba(81, 195, 235, 0.1);
  border-color: rgba(81, 195, 235, 0.3);
}

.cap-cell.accent-cell i,
.cap-cell.accent-cell span {
  color: var(--secondary);
}

.cap-cell.center-cell {
  background: var(--primary);
  border-color: rgba(81, 195, 235, 0.5);
  border-radius: 50%;
  aspect-ratio: 1;
  width: 100%;
  min-height: unset;
}

.cap-cell i {
  font-size: 1.4rem;
  color: var(--secondary);
  line-height: 1;
}

.cap-cell span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.cap-cell.center-cell span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
}

.cap-cell.center-cell .center-logo-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-align: center;
}

/* About text column */
.about-features {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(81, 195, 235, 0.12);
  border: 1px solid rgba(81, 195, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--secondary);
  flex-shrink: 0;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background: rgba(81, 195, 235, 0.2);
  transform: scale(1.05);
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== Technologies Section ===== */
#tecnologias {
  background: var(--dark-3);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 3.5rem;
}

.tech-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.tech-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: 0 0 0 0 rgba(81, 195, 235, 0);
  transition: box-shadow 0.3s ease;
}

.tech-card:hover {
  border-color: rgba(81, 195, 235, 0.3);
  transform: translateY(-4px);
}

.tech-card:hover::after {
  box-shadow: 0 0 30px rgba(81, 195, 235, 0.08) inset;
}

.tech-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  transition: var(--transition);
  line-height: 1;
}

.tech-card:hover .tech-icon {
  color: var(--white);
}

.tech-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.tech-sublabel {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ===== Contact Section ===== */
#contacto {
  background: var(--dark-2);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.8rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(81, 195, 235, 0.1);
  border: 1px solid rgba(81, 195, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-info-item:hover .contact-icon {
  background: rgba(81, 195, 235, 0.2);
  border-color: rgba(81, 195, 235, 0.4);
  color: var(--white);
}

.contact-info-text h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(81, 195, 235, 0.15);
  border-color: rgba(81, 195, 235, 0.4);
  color: var(--secondary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
  background: var(--contact-form-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  background: var(--input-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  padding: 12px 16px !important;
  transition: var(--transition) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

.form-control:focus,
.form-select:focus {
  background: var(--input-bg-focus) !important;
  border-color: rgba(81, 195, 235, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(81, 195, 235, 0.08) !important;
  color: var(--white) !important;
  outline: none !important;
}

.form-select option {
  background: var(--dark-2);
  color: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  width: 100%;
  background: var(--secondary);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border: 2px solid var(--secondary);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  background: transparent;
  color: var(--secondary);
  box-shadow: 0 8px 30px rgba(81, 195, 235, 0.25);
}

.form-success {
  display: none;
  background: rgba(81, 195, 235, 0.1);
  border: 1px solid rgba(81, 195, 235, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  margin-top: 1.2rem;
}

.form-success.show {
  display: block;
  animation: fade-up 0.4s ease forwards;
}

.form-success i {
  font-size: 2rem;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.6rem;
}

.form-success p {
  font-size: 0.92rem;
  color: var(--white);
  margin: 0;
}

/* ===== Footer ===== */
#footer {
  background: #050a14;
  padding: 70px 0 0;
  border-top: 1px solid rgba(81, 195, 235, 0.08);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 1rem 0 1.4rem;
  max-width: 250px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(81, 195, 235, 0.1);
  border-color: rgba(81, 195, 235, 0.3);
  color: var(--secondary);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}

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

.footer-links a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width 0.25s ease;
  flex-shrink: 0;
}

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

.footer-links a:hover::before {
  width: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-contact-item i {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  margin-top: 50px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer-bottom .tagline {
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Back to Top Button ===== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  border: 1px solid rgba(81, 195, 235, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--secondary);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

#back-to-top:hover {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(81, 195, 235, 0.3);
}

/* ===== Section Divider ===== */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0 auto 1.2rem;
}

.section-divider.left {
  margin-left: 0;
}

/* ===== Utility Classes ===== */
.z-1 { position: relative; z-index: 1; }

.text-balance {
  text-wrap: balance;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism badge */
.glass-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

/* Decorative line */
.deco-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  margin-bottom: 1rem;
}

/* ===== Theme Toggle Button ===== */
.btn-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(81, 195, 235, 0.1);
  border: 1px solid rgba(81, 195, 235, 0.25);
  color: var(--secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  background: rgba(81, 195, 235, 0.22);
  border-color: rgba(81, 195, 235, 0.5);
  transform: scale(1.08);
}

/* ===== AOS Overrides ===== */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* ===== Responsive Breakpoints ===== */

/* Large Desktop */
@media (min-width: 1400px) {
  .hero-h1 {
    font-size: 4.5rem;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .mega-section {
    padding: 64px 0;
  }

  #enfoque {
    padding: 64px 0;
  }

  #hero {
    padding: 80px 0 44px;
  }

  .approach-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }

  .approach-pillars::before {
    display: none;
  }

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

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

  .hero-illustration {
    margin-top: 3rem;
    justify-content: center;
  }

  .hero-svg-wrap {
    max-width: 320px;
  }

  .capability-grid {
    max-width: 340px;
    margin: 0 auto 2.5rem;
  }

  .cap-cell {
    min-height: 85px;
    padding: 14px 10px;
  }

  .cap-cell i {
    font-size: 1.15rem;
  }

  .cap-cell span {
    font-size: 0.66rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .mega-section {
    padding: 48px 0;
  }

  #enfoque {
    padding: 48px 0;
  }

  #hero {
    padding: 80px 0 36px;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .approach-pillars {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .approach-pillar {
    padding-right: 0;
  }

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

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .section-subtitle {
    max-width: 100%;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  #footer {
    padding-top: 50px;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 6px;
  }

  .hero-illustration {
    display: none;
  }

  .capability-grid {
    margin: 0 auto 2rem;
    max-width: 300px;
  }

  .stat-item {
    padding: 10px;
  }

  .navbar-collapse {
    background: var(--navbar-bg-scrolled);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    backdrop-filter: blur(20px);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2.3rem;
  }

  .stat-pill {
    padding: 8px 14px;
  }

  .stat-pill .stat-num {
    font-size: 1.1rem;
  }

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

  .hero-stats {
    gap: 10px;
  }
}
