/* =========================================================
   SIVKORA — CSS Corporativo
   Soluciones Tecnológicas | Azul Corporativo Moderno
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --blue-primary:  #1A44FF;
  --blue-dark:     #0F172A;
  --blue-deeper:   #FFFFFF;
  --blue-mid:      #0A2EF7;
  --blue-light:    #0066FF;
  --blue-glow:     rgba(26, 68, 255, 0.08);
  --blue-subtle:   rgba(26, 68, 255, 0.04);
  --white:         #FFFFFF;
  --grey-100:      #F1F5F9;
  --grey-200:      #E2E8F0;
  --grey-500:      #64748B;
  --grey-700:      #334155;
  --success:       #00C896;
  --warning:       #FFB020;
  --danger:        #FF4D4F;
  --critical:      #FF1744;

  --shadow-sm:  0 2px 8px rgba(15,23,42,.04);
  --shadow-md:  0 4px 20px rgba(15,23,42,.06);
  --shadow-lg:  0 8px 40px rgba(15,23,42,.08);
  --shadow-glow:0 0 30px rgba(26,68,255,.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition: all .25s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--blue-deeper);
  color: var(--grey-700);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--blue-deeper); }
::-webkit-scrollbar-thumb { background: var(--blue-primary); border-radius: 3px; }

/* ── Typography ────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--blue-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { color: var(--grey-700); }

/* ── Gradient Text ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
  color: var(--white);
  box-shadow: 0 4px 15px var(--blue-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--blue-glow);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--blue-light);
  border: 2px solid var(--blue-primary);
}
.btn-outline:hover {
  background: var(--blue-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.05);
  color: var(--blue-dark);
  border: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { background: #e03030; transform: translateY(-2px); }

.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}
.card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-glass {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: .5rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  color: var(--blue-dark);
  font-family: var(--font);
  font-size: .95rem;
  transition: var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--grey-500); }
.form-control:focus {
  border-color: var(--blue-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(26,68,255,.08);
}
select.form-control option { background: #FFFFFF; color: var(--blue-dark); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-error { color: var(--danger); font-size: .8rem; margin-top: .35rem; display: block; }

/* ── Alerts / Notifications ────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .92rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.alert-success { background: rgba(0,200,150,.15); border: 1px solid rgba(0,200,150,.4); color: #00e6aa; }
.alert-error   { background: rgba(255,77,79,.15);  border: 1px solid rgba(255,77,79,.4);  color: #ff8080; }
.alert-warning { background: rgba(255,176,32,.15); border: 1px solid rgba(255,176,32,.4); color: #ffcc60; }
.alert-info    { background: rgba(77,166,255,.15); border: 1px solid rgba(77,166,255,.4); color: #80ccff; }

/* ── Status & Priority badges ──────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-open        { background: rgba(77,166,255,.2);  color: var(--blue-light); border: 1px solid rgba(77,166,255,.4); }
.status-in-progress { background: rgba(255,176,32,.2);  color: #ffcc60;           border: 1px solid rgba(255,176,32,.4); }
.status-resolved    { background: rgba(0,200,150,.2);   color: #00e6aa;           border: 1px solid rgba(0,200,150,.4); }
.status-closed      { background: rgba(148,163,184,.2); color: #94a3b8;           border: 1px solid rgba(148,163,184,.3); }

.priority-low      { background: rgba(0,200,150,.15);   color: #00e6aa;  border: 1px solid rgba(0,200,150,.3); }
.priority-medium   { background: rgba(255,176,32,.15);  color: #ffcc60;  border: 1px solid rgba(255,176,32,.3); }
.priority-high     { background: rgba(255,100,50,.15);  color: #ff9966;  border: 1px solid rgba(255,100,50,.3); }
.priority-critical { background: rgba(255,23,68,.15);   color: #ff5577;  border: 1px solid rgba(255,23,68,.3); }

/* ── Tables ────────────────────────────────────────────── */
.table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #FFFFFF;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: .85rem 1.1rem;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-primary);
  background: rgba(26,68,255,.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}
tbody td {
  padding: .9rem 1.1rem;
  font-size: .9rem;
  color: var(--grey-700);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(26,68,255,.03); }

/* ── Pagination ────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--grey-700);
  transition: var(--transition);
}
.pagination a:hover { background: var(--blue-primary); color: #FFFFFF; border-color: var(--blue-primary); }
.pagination .active { background: var(--blue-primary); color: #FFFFFF; border-color: var(--blue-primary); }

/* ── Divider ───────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,166,255,.3), transparent);
  margin: 2rem 0;
}

/* ── Section ───────────────────────────────────────────── */
.section {
  padding: 5rem 0;
  position: relative;
  background: #FFFFFF;
}
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

/* ── Container ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.section-title .label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(77,166,255,.12);
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(77,166,255,.25);
  margin-bottom: 1rem;
}

/* ── Container ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Grid Utilities ────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeInUp    { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn      { from { opacity:0; } to { opacity:1; } }
@keyframes pulse-glow  { 0%,100% { box-shadow: 0 0 20px var(--blue-glow); } 50% { box-shadow: 0 0 40px rgba(26,68,255,.6); } }
@keyframes float       { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shimmer     { from { background-position: -200% center; } to { background-position: 200% center; } }

.animate-fade-up { animation: fadeInUp .6s ease forwards; }
.animate-fade    { animation: fadeIn .5s ease forwards; }

/* ── Glow Ring ─────────────────────────────────────────── */
.glow-ring {
  animation: pulse-glow 3s ease-in-out infinite;
  border-radius: var(--radius-lg);
}

/* ── PUBLIC NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: #FFFFFF;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.02);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: .65rem 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .05em;
}
.navbar-brand .brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--blue-glow);
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-primary);
  transition: var(--transition);
  border-radius: 1px;
}
.nav-link:hover { color: var(--blue-primary); }
.nav-link:hover::after { width: 100%; }
.navbar-actions { display: flex; align-items: center; gap: .75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 1px; transition: var(--transition); }

@media (max-width: 768px) {
  .navbar-nav   { display: none; }
  .hamburger    { display: flex; }
  .navbar-actions .btn:not(.btn-primary) { display: none; }
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(26,68,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(77,166,255,0.04) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, var(--blue-deeper) 100%);
}
.hero-grid {
  display: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(77,166,255,.1);
  border: 1px solid rgba(77,166,255,.2);
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-title span { display: block; }
.hero-desc { font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-light);
}
.hero-stat-label { font-size: .82rem; color: var(--grey-500); }
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  opacity: .55;
  animation: float 6s ease-in-out infinite;
}
@media (max-width: 900px) { .hero-visual { display: none; } }

/* ── SERVICES SECTION ──────────────────────────────────── */
.service-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: rgba(26,68,255,.5);
  background: rgba(26,68,255,.08);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(26,68,255,.3), rgba(77,166,255,.2));
  border: 1px solid rgba(77,166,255,.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--blue-light);
  margin-bottom: 1.1rem;
}
.service-name { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.service-desc { font-size: .875rem; color: var(--grey-500); line-height: 1.55; }

/* ── WHY US ────────────────────────────────────────────── */
.why-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.why-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px var(--blue-glow);
}

/* ── CONTACT SECTION ───────────────────────────────────── */
.contact-section {
  background: linear-gradient(135deg, rgba(26,68,255,.1), rgba(77,166,255,.05));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-xl);
  padding: 4rem;
}
@media (max-width: 768px) { .contact-section { padding: 2.5rem 1.5rem; } }

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3.5rem 0 1.5rem;
}
.footer-brand { font-size: 1.3rem; font-weight: 900; margin-bottom: .75rem; }
.footer-tagline { font-size: .85rem; color: var(--grey-500); letter-spacing: .1em; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-link { font-size: .875rem; color: var(--grey-500); transition: var(--transition); }
.footer-link:hover { color: var(--blue-light); }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--grey-500);
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
  font-size: .82rem;
  color: var(--grey-700);
}

/* ── SIDEBAR LAYOUT (Portal + Admin) ───────────────────── */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--blue-dark) 0%, rgba(3,15,79,.97) 100%);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: var(--transition);
}
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  box-shadow: 0 4px 12px var(--blue-glow);
}
.sidebar-area-badge {
  margin-top: .4rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.sidebar-nav { flex: 1; padding: 1.25rem 0; overflow-y: auto; }
.nav-section-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-700);
  padding: .5rem 1.5rem;
  margin-top: .5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.05);
}
.sidebar-link.active {
  color: var(--blue-light);
  background: rgba(26,68,255,.15);
  border-left-color: var(--blue-primary);
  font-weight: 600;
}
.sidebar-link .icon { width: 20px; text-align: center; font-size: .95rem; }
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--blue-primary);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
}
.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.user-info { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.user-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  font-weight: 700;
}
.user-name  { font-size: .875rem; font-weight: 600; }
.user-role  { font-size: .75rem; color: var(--grey-500); }

/* ── MAIN CONTENT ──────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  background: var(--blue-deeper);
  min-width: 0; /* Evita el desbordamiento de elementos Flexbox */
  overflow-x: hidden;
  transition: var(--transition);
}
.topbar {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.page-content { padding: 2rem; }
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 1.5rem; font-weight: 700; }
.page-subtitle { font-size: .9rem; color: var(--grey-500); margin-top: .3rem; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

/* Reglas de Colapso del Sidebar para Escritorio */
@media (min-width: 769px) {
  .app-layout.collapsed .sidebar {
    width: 70px;
  }
  .app-layout.collapsed .main-content {
    margin-left: 70px;
  }
  /* Ocultar elementos de texto cuando está colapsado */
  .app-layout.collapsed .sidebar .sidebar-logo span,
  .app-layout.collapsed .sidebar .sidebar-logo .brand-text-img,
  .app-layout.collapsed .sidebar .sidebar-area-badge,
  .app-layout.collapsed .sidebar .nav-section-label,
  .app-layout.collapsed .sidebar .sidebar-link span:not(.badge-count),
  .app-layout.collapsed .sidebar .user-info div,
  .app-layout.collapsed .sidebar .sidebar-footer form button span {
    display: none !important;
  }
  .app-layout.collapsed .sidebar .sidebar-logo {
    justify-content: center;
    padding: 1.5rem 0;
  }
  .app-layout.collapsed .sidebar .sidebar-logo .logo-icon {
    margin: 0;
  }
  .app-layout.collapsed .sidebar .sidebar-link {
    justify-content: center;
    padding: 0.8rem 0;
    border-left-width: 3px;
  }
  .app-layout.collapsed .sidebar .sidebar-link .icon {
    margin: 0;
    font-size: 1.15rem;
  }
  .app-layout.collapsed .sidebar .sidebar-link .badge-count {
    position: absolute;
    top: 4px;
    right: 12px;
    margin-left: 0;
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
  }
  .app-layout.collapsed .sidebar .user-info {
    justify-content: center;
    margin-bottom: 0.75rem;
  }
  .app-layout.collapsed .sidebar .sidebar-footer form button {
    padding: 0.5rem 0;
  }
}

/* ── STAT CARDS ────────────────────────────────────────── */
.stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.stat-card:hover { 
  border-color: rgba(26,68,255,.4); 
  transform: translateY(-3px); 
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.blue    { background: rgba(26,68,255,.2);  color: var(--blue-light); }
.stat-icon.green   { background: rgba(0,200,150,.2);  color: var(--success); }
.stat-icon.yellow  { background: rgba(255,176,32,.2); color: var(--warning); }
.stat-icon.red     { background: rgba(255,77,79,.2);  color: var(--danger); }
.stat-icon.purple  { background: rgba(139,92,246,.2); color: #a78bfa; }
.stat-num  { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label{ font-size: .8rem; color: var(--grey-500); margin-top: .2rem; }

/* ── AUTH PAGES ────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(26,68,255,.2) 0%, transparent 60%),
    linear-gradient(180deg, var(--blue-deeper), var(--blue-dark));
  padding: 2rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-icon-lg {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto .75rem;
  box-shadow: var(--shadow-glow);
}
.auth-title { font-size: 1.35rem; font-weight: 700; }
.auth-subtitle { font-size: .875rem; color: var(--grey-500); margin-top: .3rem; }

/* ── NEW LOGO STYLES ──────────────────────────────────── */
.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.brand-text-img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

/* ── NEW HERO GRID LAYOUT ────────────────────────────── */
.hero-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
    padding-top: 2rem;
  }
  .hero-content {
    margin: 0 auto;
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* ── NEW HERO STATS BADGES ────────────────────────────── */
.hero-stats-new {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  align-items: center;
}
.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  transition: var(--transition);
  flex: 0 1 auto;
}
.stat-badge:hover {
  transform: translateY(-2px);
}
.stat-badge-icon {
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border: 1.5px solid rgba(26, 68, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--blue-primary);
  flex-shrink: 0;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.03),
    inset 0 0 10px rgba(26, 68, 255, 0.05);
}
/* Specifically for the Microsoft badge, the icon has NO squircle */
.stat-badge.ms-badge .stat-badge-icon {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.stat-badge-text {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: left;
}
.stat-badge-text strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-dark);
}
.stat-badge-text span {
  color: var(--grey-500);
  font-weight: 500;
  font-size: 0.82rem;
}

@media (max-width: 992px) {
  .hero-stats-new {
    justify-content: center;
    gap: 2rem;
  }
}

/* ── MICROSOFT BADGE CUSTOM LOGO ───────────────────────── */
.ms-logo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 24px;
  height: 24px;
}
.ms-sq {
  width: 10.5px;
  height: 10.5px;
  display: block;
}
.ms-red { background-color: #F25022; }
.ms-green { background-color: #7FBA00; }
.ms-blue { background-color: #00A4EF; }
.ms-yellow { background-color: #FFB900; }

/* ── 3D GLOWING PEDESTAL & ORBIT RINGS ─────────────────── */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transform-origin: center center;
}

.visual-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(26,68,255,0.4) 0%, transparent 70%);
  filter: blur(35px);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pedestal-container {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 120px;
  perspective: 1000px;
  z-index: 2;
  pointer-events: none;
}

.pedestal-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotateX(70deg);
  border-radius: 50%;
  border: 2px solid var(--blue-light);
  box-shadow: 0 0 20px rgba(77, 166, 255, 0.4);
  transform-style: preserve-3d;
}

.pedestal-bottom {
  bottom: 0px;
  width: 320px;
  height: 320px;
  border-width: 4px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 
    0 0 50px rgba(26, 68, 255, 0.15),
    inset 0 0 30px rgba(26, 68, 255, 0.05);
  border-color: var(--blue-primary);
}

.pedestal-mid {
  bottom: 12px;
  width: 250px;
  height: 250px;
  border-width: 3px;
  background: rgba(26, 68, 255, 0.04);
  box-shadow: 
    0 0 35px rgba(26, 68, 255, 0.1),
    inset 0 0 20px rgba(26, 68, 255, 0.03);
  border-color: rgba(26, 68, 255, 0.2);
}

.pedestal-top {
  bottom: 24px;
  width: 180px;
  height: 180px;
  border-width: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 40px rgba(26, 68, 255, 0.25);
  border-color: var(--blue-primary);
}

.pedestal-glow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scaleY(0.35);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(77,166,255,0.85) 0%, transparent 70%);
  filter: blur(12px);
  z-index: 1;
}

.floating-globe-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: floatGlobe 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.globe-element {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  filter: drop-shadow(0 0 30px rgba(26,68,255,0.75));
  user-select: none;
}

@keyframes floatGlobe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.tech-ring-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  height: 460px;
  z-index: 1;
  pointer-events: none;
}

.tech-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(77, 166, 255, 0.25);
}

.ring-outer {
  width: 440px;
  height: 440px;
  border-style: dashed;
  border-color: rgba(26, 68, 255, 0.25);
  animation: rotateClockwise 30s linear infinite;
}

.ring-mid {
  width: 360px;
  height: 360px;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(77, 166, 255, 0.15);
  border-right-color: rgba(77, 166, 255, 0.6);
  border-left-color: rgba(77, 166, 255, 0.6);
  animation: rotateCounterClockwise 18s linear infinite;
}

.ring-inner {
  width: 280px;
  height: 280px;
  border-style: dashed;
  border-color: rgba(77, 166, 255, 0.35);
  animation: rotateClockwise 12s linear infinite;
}

.ring-circuit {
  width: 400px;
  height: 400px;
  border: 1px double rgba(77, 166, 255, 0.15);
  box-shadow: inset 0 0 25px rgba(26, 68, 255, 0.2);
}

@keyframes rotateClockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* ── NEW SERVICES LAYOUT ──────────────────────────────── */
.service-card-new {
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 3rem 1.75rem 2rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 340px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.service-card-new:hover {
  border-color: var(--blue-primary);
  background: #FFFFFF;
  transform: translateY(-5px);
  box-shadow: 
    0 10px 30px rgba(26, 68, 255, 0.08),
    inset 0 0 15px rgba(77, 166, 255, 0.02);
}
.service-icon-new {
  font-size: 3rem;
  color: var(--blue-primary);
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 0 15px rgba(26, 68, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.service-card-new:hover .service-icon-new {
  transform: scale(1.08);
  filter: drop-shadow(0 0 25px rgba(26, 68, 255, 0.25));
}
.service-title-new {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.85rem;
}
.service-desc-new {
  font-size: 0.875rem;
  color: var(--grey-500);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-arrow-new {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(26, 68, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 0.85rem;
  transition: var(--transition);
  margin-top: auto;
}
.service-card-new:hover .service-arrow-new {
  transform: rotate(-45deg);
}

/* ── NOSOTROS 3-COLUMN SECTION ───────────────────────── */
.nosotros-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 3rem;
  align-items: center;
}
.nosotros-visual-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nosotros-visual-wrapper .globe-element-small {
  width: 155px;
  height: 155px;
  filter: drop-shadow(0 0 25px rgba(26,68,255,0.75));
  animation: floatGlobeSmall 4s ease-in-out infinite;
  user-select: none;
}
@keyframes floatGlobeSmall {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.nosotros-visual-wrapper .brand-text-below {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--white);
  text-shadow: 0 0 15px rgba(26,68,255,0.6);
}
.nosotros-visual-wrapper .tech-ring-small {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(77, 166, 255, 0.25);
  pointer-events: none;
}
.nosotros-visual-wrapper .ring-small-outer {
  width: 230px;
  height: 230px;
  animation: rotateClockwise 25s linear infinite;
}
.nosotros-visual-wrapper .ring-small-inner {
  width: 190px;
  height: 190px;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(77, 166, 255, 0.15);
  border-right-color: rgba(77, 166, 255, 0.6);
  border-left-color: rgba(77, 166, 255, 0.6);
  animation: rotateCounterClockwise 12s linear infinite;
}
.nosotros-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-200);
  text-align: left;
}

@media (max-width: 992px) {
  .nosotros-layout-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .nosotros-checklist {
    align-items: center;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* ── MICROSOFT 365 LIGHT SECTION ──────────────────────── */
.m365-section {
  background: linear-gradient(180deg, #F3F6FD 0%, #FFFFFF 100%);
  color: #0c183a;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
.m365-section .container {
  position: relative;
  z-index: 2;
}
.m365-bg-curves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.m365-bg-curves svg {
  width: 100%;
  height: 100%;
}
.m365-section::before {
  display: none !important;
}
.m365-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
.m365-subtitle {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: .5rem;
}
.m365-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #030F4F;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}
.m365-desc {
  font-size: 1rem;
  color: #4A5578;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.m365-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.m365-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(3, 15, 79, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  width: 105px;
  height: 105px;
  box-shadow: 0 4px 15px rgba(3, 15, 79, 0.04);
  transition: var(--transition);
}
.m365-badge-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(3, 15, 79, 0.09);
  border-color: rgba(26, 68, 255, 0.25);
}
.m365-badge-item i {
  font-size: 1.6rem;
  color: var(--blue-primary);
}
.m365-badge-item span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4A5578;
  text-align: center;
  line-height: 1.2;
}
.m365-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 120, 212, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}
.m365-visual-img {
  width: 100%;
  height: auto;
  max-width: 400px;
  mix-blend-mode: multiply;
  animation: floatM365 6s ease-in-out infinite;
  user-select: none;
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 72%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 72%);
}
@keyframes floatM365 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 992px) {
  .m365-layout-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .m365-badges {
    justify-content: center;
  }
}

/* ── REDESIGNED CASOS DE ÉXITO ─────────────────────────── */
.case-card-new {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.case-card-new:hover {
  border-color: rgba(26, 68, 255, 0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.case-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-card-new:hover .case-img-wrap img {
  transform: scale(1.06);
}
.case-content-wrap {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.case-title-new {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.85rem;
}
.case-desc-new {
  font-size: 0.875rem;
  color: var(--grey-500);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.case-link-new {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: auto;
}
.case-link-new:hover {
  color: var(--blue-dark);
}
.case-link-new i {
  transition: transform 0.25s ease;
}
.case-link-new:hover i {
  transform: translateX(4px);
}

/* ── CTA BLUE SECTION ─────────────────────────────────── */
.cta-section-new {
  background: radial-gradient(circle at 20% 30%, #1738D4 0%, #0A1C80 50%, #030B40 100%);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cta-section-new::before {
  content: '' !important;
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.cta-glow-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.55;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}
.cta-glow-left {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(77, 166, 255, 0.25) 0%, transparent 70%);
  top: -50%;
  left: -5%;
}
.cta-glow-right {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(26, 68, 255, 0.35) 0%, transparent 70%);
  bottom: -60%;
  right: -5%;
  animation-delay: -3s;
}
@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.15); opacity: 0.65; }
}
.cta-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.cta-title-new {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.85rem;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.cta-desc-new {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
.cta-actions-new {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: nowrap; /* Forces horizontal alignment on desktop viewports */
}
.btn-wpp-cta {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
  font-weight: 700;
  white-space: nowrap;
}
.btn-wpp-cta:hover {
  background: linear-gradient(135deg, #20ba59 0%, #0e7065 100%);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}
.btn-cotizacion-cta {
  background: rgba(77, 166, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(77, 166, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-cotizacion-cta:hover {
  background: rgba(77, 166, 255, 0.18);
  border-color: var(--blue-light);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 25px rgba(77, 166, 255, 0.25),
    0 0 15px rgba(77, 166, 255, 0.1);
}
.btn-cotizacion-cta i {
  transition: transform 0.25s ease;
}
.btn-cotizacion-cta:hover i {
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .cta-layout-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .cta-actions-new {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ── CONTACT MODAL OVERLAY ────────────────────────────── */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 26, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.contact-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-content {
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 700px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(26, 68, 255, 0.02);
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  max-height: 90vh;
}

.contact-modal-overlay.active .contact-modal-content {
  transform: scale(1) translateY(0);
}

.contact-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--grey-500);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  z-index: 10;
}

.contact-modal-close:hover {
  color: var(--blue-primary);
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .contact-modal-content {
    padding: 1.5rem;
  }
}

/* ── SIDEBAR OVERLAY (Portal + Admin Mobile) ──────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 26, 0.65);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
@media (max-width: 768px) {
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ── PUBLIC MOBILE NAVIGATION ──────────────────────────── */
@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0A1C80 0%, #030B40 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
    z-index: 999;
  }
  .navbar-nav.active {
    display: flex;
  }
  
  /* Hamburger Animation to X */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── LIGHT MODE OVERRIDES ─────────────────────────────── */
/* Forcing dark colors on headers with inline white style in public pages */
.section h2,
.section h3,
.section-title h2,
.section-title h3,
.nosotros-layout-grid h2,
.portfolio-hero h1,
#portfolioGrid h3 {
  color: var(--blue-dark) !important;
}

/* Modal text overrides */
.contact-modal-content h2,
.contact-modal-content h3,
.contact-modal-content label {
  color: var(--blue-dark) !important;
}
.contact-modal-content p,
.contact-modal-content li span {
  color: var(--grey-700) !important;
}

/* Service Details Modal overrides */
#serviceModalTitle {
  color: var(--blue-dark) !important;
}
#serviceModalDesc {
  color: var(--grey-500) !important;
}
#serviceModalList li span {
  color: var(--grey-700) !important;
}

/* Portfolio Hero overrides */
.portfolio-hero {
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F8FAFC 100%) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}
.portfolio-hero h1 {
  color: var(--blue-dark) !important;
}
.portfolio-hero p {
  color: var(--grey-500) !important;
}
.hero-glass-badge {
  background: rgba(26, 68, 255, 0.05) !important;
  border-color: rgba(26, 68, 255, 0.15) !important;
  color: var(--blue-primary) !important;
}
.portfolio-filter-btn {
  background: rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--grey-700) !important;
}
.portfolio-filter-btn:hover {
  border-color: rgba(26, 68, 255, 0.3) !important;
  color: var(--blue-primary) !important;
  background: rgba(26, 68, 255, 0.04) !important;
}
.portfolio-filter-btn.active {
  background: linear-gradient(135deg, #1A44FF 0%, #0066FF 100%) !important;
  border-color: transparent !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 25px rgba(26, 68, 255, 0.25) !important;
}

/* Portfolio grid container background */
#portfolioGridContainer,
.portfolio-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}
.portfolio-card:hover {
  border-color: var(--blue-primary) !important;
  background: #FFFFFF !important;
  box-shadow: 0 20px 45px rgba(26, 68, 255, 0.08) !important;
}
.portfolio-card p {
  color: var(--grey-500) !important;
}
.tech-badge {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--grey-500) !important;
}
.portfolio-card:hover .tech-badge {
  border-color: rgba(26, 68, 255, 0.2) !important;
  color: var(--blue-primary) !important;
  background: rgba(26, 68, 255, 0.04) !important;
}

/* Fix text colors inside contact forms */
.form-control {
  color: var(--blue-dark) !important;
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}
.form-control:focus {
  border-color: var(--blue-primary) !important;
  background: #FFFFFF !important;
}
select.form-control option {
  background: #FFFFFF !important;
  color: var(--blue-dark) !important;
}

/* Dashboard Topbar / Toggle buttons and titles color fix */
.topbar #sidebarToggle {
  color: var(--blue-dark) !important;
}
.topbar div[style*="color:var(--grey-500)"] {
  color: var(--grey-500) !important;
}
.topbar div[style*="font-weight:600"] {
  color: var(--blue-dark) !important;
}

/* Specific styling overrides for theme */

/* Clear style for Servicios section (reverting dark blue gradient background) */
#servicios {
  background: 
    radial-gradient(circle 600px at 50% 50%, rgba(26, 68, 255, 0.02) 0%, transparent 100%),
    linear-gradient(180deg, #FFFFFF 0%, var(--grey-100) 100%) !important;
  position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
#servicios::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(rgba(26, 68, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 68, 255, 0.02) 1px, transparent 1px) !important;
  background-size: 50px 50px !important;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 100%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
#servicios h2 {
  color: var(--blue-dark) !important;
}

/* Navbar actions button styling overrides for light background navbar */
.navbar-actions .btn-ghost {
  background: transparent !important;
  color: var(--grey-700) !important;
  border: 1.5px solid var(--grey-200) !important;
}
.navbar-actions .btn-ghost:hover {
  background: var(--grey-100) !important;
  color: var(--blue-primary) !important;
  border-color: var(--blue-primary) !important;
}

/* ── HERO SECTION (NON-SPLIT) ─────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
  background: #FFFFFF;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(26, 68, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 85% 85%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-primary);
  background: rgba(26, 68, 255, 0.05);
  border: 1px solid rgba(26, 68, 255, 0.12);
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1.15;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--grey-500);
  margin-bottom: 2.25rem;
  max-width: 540px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 4rem;
}
.hero-image-col {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: translateX(12%); /* Push it further right into the empty space */
}

/* Poster PNG directo */
.hero-poster-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow:
    0 30px 70px rgba(10, 28, 128, 0.30),
    0 0 0 1px rgba(26, 68, 255, 0.08);
  transition: opacity 0.8s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.hero-poster-img.poster-inactive {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
.hero-poster-img.poster-active {
  position: relative;
  opacity: 1;
  z-index: 2;
}
.hero-poster-img.poster-active:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 80px rgba(10, 28, 128, 0.40),
    0 0 0 1px rgba(26, 68, 255, 0.14);
}

/* ── HERO CAROUSEL CONTROLS ── */
.hero-carousel-container {
  position: relative;
  width: 100%;
}
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
}
.hero-carousel-container:hover .hero-carousel-btn {
  opacity: 1;
}
.hero-carousel-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.05);
}
.hero-carousel-btn.prev-btn { left: 15px; }
.hero-carousel-btn.next-btn { right: 15px; }

/* Hero carousel dot indicators */
.hero-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: #FFFFFF;
  width: 22px;
  border-radius: 4px;
}
.hero-dot:hover {
  background: rgba(255,255,255,0.8);
}

/* ── STACKED CARD DECORATIONS ── */
.carousel-stack-bg {
  position: absolute;
  right: 0;
  width: 100%;
  border: 3px solid var(--blue-primary);
  border-radius: 20px;
  pointer-events: none;
  transition: all 0.5s ease;
}
.carousel-stack-bg.stack-1 {
  right: -25px;
  top: 4%;
  bottom: 4%;
  opacity: 0.6;
  z-index: 1;
}
.carousel-stack-bg.stack-2 {
  right: -45px;
  top: 10%;
  bottom: 10%;
  opacity: 0.3;
  z-index: 0;
}
.carousel-stack-bg.stack-3 {
  right: -60px;
  top: 18%;
  bottom: 18%;
  opacity: 0.15;
  z-index: -1;
}

/* ── HERO TEAM CARD (dark card right column) ─────────── */
.hero-team-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #1130CC 0%, #0A1C80 35%, #040D55 75%, #020940 100%);
  box-shadow:
    0 40px 80px rgba(10, 28, 128, 0.45),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 0;
}

/* Fondo con grid sutil */
.hero-card-bg {
  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: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
/* Glow azul brillante en la parte superior */
.hero-card-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(30, 90, 255, 0.35) 0%, transparent 65%);
  pointer-events: none;
}
/* Glow sutil inferior */
.hero-card-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40%;
  background: radial-gradient(ellipse at bottom, rgba(26,68,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Header con logo + tagline */
.hero-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.hero-card-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-card-tagline {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  text-align: right;
  max-width: 100px;
  line-height: 1.4;
}

/* Bloque SOMOS SIVKORA */
.hero-card-title-block {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}
.hero-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
  line-height: 1;
}
.hero-card-brand {
  font-size: 3.5rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Imagen del equipo — ocupa la parte inferior de la card */
.hero-card-team {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 65%;
}
.hero-card-team-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 -15px 35px rgba(20, 60, 255, 0.3));
}

/* ── BRANDS BAR ───────────────────────────────────────── */
.brands-bar-section {
  background: #FFFFFF;
  padding: 2rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 5;
}
.brands-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.brands-bar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--grey-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.brands-bar-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  flex-grow: 1;
}
.brand-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}
.brand-logo i {
  font-size: 1.35rem;
}
.brand-logo:hover {
  color: var(--blue-primary);
}
.brand-logo-oracle {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* ── SERVICIOS V2 ─────────────────────────────────────── */
.centered-title {
  text-align: center;
}
.centered-title .label-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-primary);
  background: rgba(26, 68, 255, 0.05);
  border: 1px solid rgba(26, 68, 255, 0.12);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.services-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.service-card-v2 {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.01);
}
.service-card-v2:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 68, 255, 0.25);
  box-shadow: 
    0 15px 30px rgba(15, 23, 42, 0.04),
    0 0 25px rgba(26, 68, 255, 0.04);
}
.service-icon-circle {
  width: 60px;
  height: 60px;
  background: rgba(26, 68, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue-primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.service-card-v2:hover .service-icon-circle {
  background: var(--blue-primary);
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(26, 68, 255, 0.2);
}
.service-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.service-card-desc {
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  transition: var(--transition);
}
.service-card-v2:hover .service-card-link {
  color: var(--blue-mid);
}
.service-card-link i {
  transition: transform 0.2s ease;
}
.service-card-v2:hover .service-card-link i {
  transform: translateX(4px);
}

/* ── STATS BANNER ─────────────────────────────────────── */
.stats-ribbon-section {
  background: linear-gradient(135deg, #0A1C80 0%, #030B40 100%);
  padding: 3rem 0;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.stats-ribbon-section::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px) !important;
  background-size: 50px 50px !important;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.stats-ribbon-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.stats-ribbon-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}
.stats-ribbon-icon {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.15rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
}
.stats-ribbon-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.stats-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.stats-label-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}
.stats-sub-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ── NUESTRO TRABAJO (PORTFOLIO V2) ───────────────────── */
.portfolio-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.portfolio-card-v2 {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.01);
}
.portfolio-card-v2:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 68, 255, 0.2);
  box-shadow: 
    0 15px 30px rgba(15, 23, 42, 0.04),
    0 0 20px rgba(26, 68, 255, 0.02);
}
.portfolio-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #F1F5F9;
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}
.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card-v2:hover .portfolio-card-image img {
  transform: scale(1.06);
}
.portfolio-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}
.portfolio-card-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: rgba(26, 68, 255, 0.05);
  border: 1px solid rgba(26, 68, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.portfolio-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.portfolio-card-desc {
  font-size: 0.82rem;
  color: var(--grey-500);
  line-height: 1.45;
}
.portfolio-more-container {
  text-align: center;
  margin-top: 3.5rem;
}

/* ── TESTIMONIAL ──────────────────────────────────────── */
.testimonial-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  padding: 6rem 0;
}
.testimonial-container {
  max-width: 900px !important;
  margin: 0 auto;
}
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.03),
    0 0 30px rgba(26, 68, 255, 0.01);
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  position: relative;
}
.testimonial-quote-icon {
  font-size: 4rem;
  color: rgba(26, 68, 255, 0.15);
  line-height: 1;
  flex-shrink: 0;
}
.testimonial-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.testimonial-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.testimonial-footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  border: 1.5px solid var(--blue-primary);
}
.testimonial-author-info {
  display: flex;
  flex-direction: column;
}
.testimonial-author-info strong {
  font-size: 0.95rem;
  color: var(--blue-dark);
  font-weight: 700;
}
.testimonial-author-info span {
  font-size: 0.82rem;
  color: var(--grey-500);
}
.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.testimonial-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-200);
  display: block;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.testimonial-dots .dot:hover {
  background: var(--blue-mid);
}
.testimonial-dots .dot.active {
  background: var(--blue-primary);
  width: 24px;
  border-radius: 4px;
}

/* ── CTA BANNER ───────────────────────────────────────── */
.cta-banner-section {
  background: linear-gradient(135deg, #0A1C80 0%, #030B40 100%);
  padding: 4.5rem 0;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cta-banner-section::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px) !important;
  background-size: 50px 50px !important;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.cta-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 2;
}
.cta-banner-text {
  text-align: left;
}
.cta-banner-text h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
.cta-banner-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}
.cta-banner-action {
  flex-shrink: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* WhatsApp button */
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF !important;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1DAD55;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

/* ── RESPONSIVE RESPONSIVENESS OVERRIDES ───────────────── */
@media (max-width: 1200px) {
  .services-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .portfolio-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    padding-top: 7rem;
    text-align: center;
  }
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .brands-bar-container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 1.25rem;
  }
  .brands-bar-logos {
    justify-content: center;
    gap: 2rem;
  }
  .stats-ribbon-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .cta-banner-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .cta-banner-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .services-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-card {
    padding: 2.5rem 1.75rem;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }
  .testimonial-quote-icon {
    font-size: 3rem;
  }
  .testimonial-text {
    font-size: 1.1rem;
    text-align: center;
  }
  .testimonial-footer-layout {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .testimonial-author {
    flex-direction: column;
  }
  .testimonial-author-info {
    text-align: center;
  }
  .navbar-nav {
    background: #FFFFFF !important;
  }
}

@media (max-width: 576px) {
  .services-grid-5 {
    grid-template-columns: 1fr;
  }
  .portfolio-grid-4 {
    grid-template-columns: 1fr;
  }
  .stats-ribbon-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cta-banner-text h2 {
    font-size: 1.7rem;
  }
  .cta-banner-text p {
    font-size: 0.95rem;
  }
}

/* ── FLOATING CHATBOT WIDGET ── */
.chatbot-widget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatChatbot 4s ease-in-out infinite;
}
.chatbot-widget:hover {
  transform: scale(1.05) translateY(-5px);
  animation-play-state: paused;
}
.chatbot-img {
  width: auto;
  height: 200px; /* Much larger as requested */
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(10, 28, 128, 0.4));
}
@keyframes floatChatbot {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ── CHATBOT POPOVER (MIKE) ── */
.chat-popover {
  position: fixed;
  bottom: 250px; /* Above the chatbot widget */
  right: 40px;
  width: 340px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 10000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.chat-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.chat-popover-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: transparent;
  border: none;
  color: #1A44FF;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}
.chat-popover-header {
  background: #F4F7FB;
  padding: 30px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
}
.chat-popover-text h3 {
  color: #0A1C80;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.chat-popover-text p {
  color: #1A44FF;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}
.chat-popover-avatar img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}
.chat-popover-body {
  padding: 20px;
  background: #FFFFFF;
}
.chat-main-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  color: #475569;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.2s;
  margin-bottom: 20px;
}
.chat-main-btn:hover {
  border-color: #1A44FF;
  color: #1A44FF;
  box-shadow: 0 4px 12px rgba(26,68,255,0.08);
}
.chat-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.chat-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 5px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  color: #64748B;
  text-decoration: none;
  transition: all 0.2s;
  background: #FFFFFF;
}
.chat-option-card i {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #475569;
}
.chat-option-card span {
  font-size: 0.75rem;
  font-weight: 500;
}
.chat-option-card:hover {
  border-color: #1A44FF;
  color: #1A44FF;
}
.chat-option-card:hover i {
  color: #1A44FF;
}

@media (max-width: 768px) {
  .chatbot-widget {
    bottom: 20px;
    right: 20px;
  }
  .chatbot-img {
    height: 120px;
  }
}
