/* =============================================
   CORPORACIÓN NIVARIA - Design System v2
   ============================================= */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --secondary: #4ade80;
  --secondary-dark: #22c55e;
  --accent: #8b5cf6;
  --white: #ffffff;
  --bg-light: #f9fafb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 32px;
  --radius-sm: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: "Sora", sans-serif;
  --dark: #111827;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 2vw, 16px);
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--bg-light);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Prevenir scroll horizontal en todas las secciones */
* {
  box-sizing: border-box;
}

section, .hero-image, .about-editorial, .contact-grid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Corregir elementos que pueden causar overflow horizontal */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Prevenir overflow en grids */
.services-grid, .our-projects-grid, .industry-grid {
  overflow: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Outfit", sans-serif;
  line-height: 1.15;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 60px;
  }
}

.section-gap {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .section-gap {
    padding: 100px 0;
  }
}

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

.max-600 {
  max-width: 600px;
  margin-inline: auto;
}

/* ---- Section Typography ---- */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  /* Darker color for legibility */
  background: rgba(14, 165, 233, 0.1);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.light-tag {
  color: var(--secondary);
  background: rgba(74, 222, 128, 0.15);
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Crucial for Windows Chrome sharpness */
}

.section-heading.white {
  color: var(--white);
}

.highlight {
  color: var(--secondary);
  /* Using solid color to avoid text-clip blur issues */
  font-weight: 800;
}

.highlight-light {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-body {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.light-body {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid var(--primary);
  margin-top: 15px;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.35);
}

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--border);
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

#header.scrolled .logo-img {
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 100px;
  transition: var(--transition);
}

#header.scrolled .nav-link {
  color: var(--text);
}

.nav-link:hover {
  background: rgba(0, 48, 87, 0.07);
  color: var(--primary);
}

#header.scrolled .nav-link:hover {
  background: rgba(0, 48, 87, 0.07);
  color: var(--primary);
}

.nav-cta {
  text-decoration: none;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 100px;
  transition: var(--transition);
  border: 2px solid var(--primary);
  margin-left: 8px;
}

#header.scrolled .nav-cta {
  background: var(--primary);
  border-color: var(--primary);
}

.nav-cta:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 4px;
  transition: var(--transition);
}

/* Mejorar contraste y accesibilidad */
.nav-link:focus, 
.btn-primary:focus, 
.nav-cta:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
    background: var(--white);
    outline: none;
}

/* =============================================
   HERO - MEJORAS RESPONSIVE
   ============================================= */

/* Hero fluido y adaptable */
.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .hero-actions a {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* Hero image responsive */
.hero-image {
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* =============================================
   SECCIONES FLUIDAS
   ============================================= */

/* Stats band fluida */
.stats-band {
    overflow-x: auto;
    padding: 56px 20px;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-divider {
        display: none;
    }
}

/* About section responsive */
.about-editorial {
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .about-editorial {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }
    
    .about-header {
        margin-bottom: 30px;
    }
    
    .about-details {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-editorial {
        gap: 30px;
        padding: 0 15px;
    }
    
    .about-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .about-header p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .since-badge {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        margin: 20px auto 0;
        max-width: 280px;
    }
    
    .since-badge .year {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .since-badge .text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .mission-vision-tabs {
        justify-content: center;
        margin-bottom: 25px;
    }
    
    .tab-btn {
        flex: 1;
        max-width: 120px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .about-pills {
        gap: 15px;
        margin: 25px 0;
    }
    
    .pill {
        padding: 12px 16px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px;
        margin: 30px auto 0;
        display: block;
    }
}

/* Contact form responsive */
.contact-grid {
    gap: 60px;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Footer responsive mejorado */
.footer-grid {
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-col {
        margin-bottom: 20px;
    }
    
    .footer-col h4 {
        margin-bottom: 15px;
    }
    
    .footer-col ul {
        justify-content: center;
    }
}

/* Timeline responsive */
.timeline {
    padding-left: 30px;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }
    
    .tl-item {
        margin-bottom: 24px;
    }
    
    .tl-card {
        padding: 16px;
    }
    
    .tl-card h3 {
        font-size: 1rem;
    }
    
    .tl-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
  .hero-grid-new {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-slogan-clean {
    margin-inline: auto;
  }
  .hero-actions-clean {
    justify-content: center;
  }
  .badge-top-right,
  .badge-bottom-left {
    right: 0;
    left: 0;
    margin: 0 auto;
    width: fit-content;
  }
  .badge-top-right {
    top: -20px;
  }
  .badge-bottom-left {
    bottom: -20px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  background: #000a1a;
  padding: 56px 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-unit {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--white);
}

.about-editorial {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: flex-start;
}

.since-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 32px;
  padding: 12px 20px;
  background: #f8fafc;
  border-radius: 12px;
  width: fit-content;
  border-left: 4px solid var(--secondary);
}

.since-badge .year {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.since-badge .text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.about-details {
  padding-top: 10px;
}

.about-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pill-icon.green {
  background: rgba(57, 181, 74, 0.15);
  color: var(--green);
}

.pill-icon.blue {
  background: rgba(0, 174, 239, 0.12);
  color: var(--secondary);
}

.pill-icon.yellow {
  background: rgba(245, 196, 0, 0.15);
  color: #c8900a;
}

/* ---- Mission / Vision Tabs ---- */
.mission-vision-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 22px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tab-btn:hover:not(.active) {
  border-color: var(--secondary);
  color: var(--secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ---- Select Input ---- */
.form-field select {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-field select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
  background-color: var(--white);
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  position: relative;
  background: var(--bg);
}

/* Mejoras de adaptabilidad para servicios */
.service-card-v2 {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card-v2 .p-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-v2 img {
  height: 160px;
  object-fit: cover;
}

/* Mejoras para proyectos */
.project-card-v2 {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card-v2 .p-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Alinear botones y métricas al mismo nivel */
.project-card-v2 h3 {
  min-height: 3.2rem; /* Espacio para 2 líneas de título */
  display: flex;
  align-items: center;
}

.project-card-v2 .p-6 > p {
  min-height: 5rem; /* Espacio para 3 líneas de descripción */
  margin-bottom: 1rem;
}

.project-card-v2 .flex-wrap {
  min-height: 2.5rem; /* Espacio para etiquetas tecnológicas */
  align-content: flex-start;
}

.project-card-v2 .border-t {
  margin-top: auto !important;
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.project-card-v2 .p-6 button,
.service-card-v2 .p-6 button {
  margin-top: 0;
  width: 100%;
}

.project-card-v2 .relative {
  height: 192px;
}

.project-card-v2 img {
  height: 100%;
  object-fit: cover;
}

.services-bg-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, var(--white), transparent);
  pointer-events: none;
}

.section-intro {
  margin-bottom: 60px;
  /* Removed animation to prevent blurriness during transition */
}

.tech-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #fdfdfd;
}

.grid-line-h,
.grid-line-v {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.grid-line-h {
  background-image: linear-gradient(
    to bottom,
    rgba(0, 48, 87, 0.05) 1px,
    transparent 1px
  );
  background-size: 100% 40px;
}

.grid-line-v {
  background-image: linear-gradient(
    to right,
    rgba(0, 48, 87, 0.05) 1px,
    transparent 1px
  );
  background-size: 40px 100%;
}

.scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 174, 239, 0.03) 50%,
    rgba(0, 174, 239, 0.08) 50.5%,
    rgba(0, 174, 239, 0.03) 51%,
    transparent 100%
  );
  animation: scanMove 8s infinite linear;
}

@keyframes scanMove {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s var(--delay, 0s) ease both;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 48, 87, 0.1);
  border-color: var(--secondary);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--green));
  opacity: 0;
  transition: var(--transition);
}

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

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: 0.5s;
  border: 1px solid transparent;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  transition: 0.5s;
}

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

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.service-link:hover {
  color: var(--primary);
  gap: 12px;
}

.why-us {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

/* =============================================
   BENTO GRID (WHY US)
   ============================================= */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 30px;
  align-items: center;
}

.bento-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.bento-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.bento-item.main-text {
  background: transparent;
  border: none;
  padding: 0 32px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-item.card-bento {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.bento-item.card-bento:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-8px);
  border-color: var(--secondary);
}

.bento-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.bento-item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.why-icon {
  width: 40px;
  height: 40px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .bento-cards-container {
    grid-template-columns: 1fr;
  }
}

.metric-val {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.metric-key {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline-section {
  background: var(--bg);
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 40px auto 0;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: rgba(0, 48, 87, 0.1);
  /* Base line color */
  border-radius: 4px;
}

/* Flowing Pulse Animation on the line */
.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--secondary),
    transparent
  );
  animation: flowLine 4s infinite linear;
  z-index: 0;
}

@keyframes flowLine {
  0% {
    top: 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.tl-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 32px;
}

.tl-item:last-child {
  margin-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -49px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--secondary);
  z-index: 1;
  transition: var(--transition);
  animation: pulseDot 3s infinite ease-in-out;
}

.tl-dot.dot-active {
  background: var(--secondary);
  box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.2);
  animation: pulseDotActive 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 174, 239, 0);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(0, 174, 239, 0.05);
  }
}

@keyframes pulseDotActive {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.2);
  }

  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 12px rgba(0, 174, 239, 0.1);
  }
}

.tl-year {
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.tl-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.tl-card.card-active {
  border-color: var(--secondary);
  border-left: 4px solid var(--secondary);
}

.tl-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.tl-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: linear-gradient(135deg, var(--primary) 0%, #00447a 100%);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-detail-item strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-detail-item span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--bg);
  outline: none;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
  background: var(--white);
}

.btn-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.35);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =============================================
   MODALES
   ============================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    margin: auto;
}

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

.modal-large {
    width: 90vw;
    max-width: 1100px;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f3f4f6;
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

/* Grid de proyectos relacionados */
.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.related-project-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.related-project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.related-project-client {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.related-project-description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-project-status {
    display: inline-block;
    padding: 6px 12px;
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal de detalles de proyecto */
.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.project-image-container {
    position: sticky;
    top: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.project-detail-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.project-image-container:hover .project-detail-image {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    padding-right: 8px;
}

.project-info::-webkit-scrollbar {
    width: 6px;
}

.project-info::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.project-info::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.project-info::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.project-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.project-detail-description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.project-tech-stack h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

.project-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 8px;
}

.metric-item {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-actions {
    margin-top: 10px;
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 15px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px 20px 16px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-height: 50vh;
    }
    
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-detail-title {
        font-size: 1.5rem;
    }
    
    .project-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 60px 0 40px;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 18px;
  background: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: block;
}

.brand-col p {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 280px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--secondary);
  color: var(--white);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--secondary);
}

/* Typing Effect */
.typing-text {
  border-right: 3px solid var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  width: 0;
  /* Adjusted to 67.5ch for a tighter fit to the dots */
  animation:
    typing 3s steps(68, end) forwards,
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 49ch;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
    filter: none;
  }

  50% {
    border-color: var(--secondary);
  }
}

/* =============================================
   CLIENTS SECTION (PREMIUM STYLE)
   ============================================= */
.clients-section {
  position: relative;
  background: #fff;
  overflow: hidden;
  padding-top: 100px;
}

/* Floating Tech Elements */
.tech-shape {
  position: absolute;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  color: rgba(0, 174, 239, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: 0.5s;
}

.shape-1 {
  top: 10%;
  left: 5%;
  font-size: 8rem;
  animation: float 12s infinite linear;
}

.shape-2 {
  top: 40%;
  right: 5%;
  font-size: 6rem;
  animation: float 15s infinite linear reverse;
}

.shape-3 {
  bottom: 15%;
  left: 8%;
  font-size: 5rem;
  animation: float 10s infinite ease-in-out;
}

.shape-4 {
  top: 15%;
  right: 15%;
  font-size: 4rem;
  animation: float 18s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-40px) rotate(10deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Decorative Background Elements */
.clients-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 174, 239, 0.05) 0%,
    transparent 70%
  );
  z-index: 0;
}

.clients-section::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(57, 181, 74, 0.03) 0%,
    transparent 70%
  );
  z-index: 0;
}

.piny-header {
  position: relative;
  padding-left: 35px;
  margin-bottom: 70px;
  z-index: 1;
}

.header-line {
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 8px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.3);
}

.industry-group {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-bottom: 40px;
  margin-bottom: -40px;
}

.industry-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.industry-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
}

.industry-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  min-height: 400px;
  width: 100%;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 30, 57, 0.12);
  border-color: var(--secondary);
}

.card-logo-wrap {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
  z-index: 1;
}

.industry-card:hover .card-logo-wrap {
  height: 80px;
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.05);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
  padding: 18px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.industry-card:hover .card-content {
  transform: translateY(0);
  opacity: 1;
}

.card-logo-wrap img {
  max-height: 60px;
  max-width: 80%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatLogo 4s infinite ease-in-out;
}

.industry-card:nth-child(even) .card-logo-wrap img {
  animation-delay: -2s;
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.logo-boost {
  transform: scale(1.18);
}

.industry-card:hover .card-logo-wrap img {
  max-height: 45px;
  animation-play-state: paused;
  transform: translateY(0) scale(1) !important;
}

.industry-card:hover .card-logo-wrap img.logo-boost {
  max-height: 55px;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 0.1em;
  background: rgba(0, 174, 239, 0.08);
  padding: 4px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 12px;
}

.industry-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  overflow: visible;
}

.card-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  70% {
    transform: scale(2.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.cta-card {
  background: linear-gradient(135deg, var(--primary), #003a6b);
  border: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0;
}

.cta-card .card-content {
  position: relative;
  height: 100%;
  transform: translateY(0);
  opacity: 1;
  background: transparent;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  bottom: auto;
  left: auto;
  width: 100%;
}

.cta-card h4 {
  color: #fff;
  font-size: 1.25rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-card::after {
  display: none;
}

@media (max-width: 768px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   VALUES SECTION
   ============================================= */
.values-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.section-intro {
    margin-bottom: 60px;
    /* Removed animation to prevent blurriness during transition */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive para Values Section */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 0 20px;
    }
    
    .section-intro {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .section-intro {
        padding: 0 15px;
        margin-bottom: 40px;
    }
    
    .section-intro h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }
    
    .section-intro {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .section-intro h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
}

.value-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 40px 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition);
  animation: fadeUp 0.8s var(--delay, 0s) ease both;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.value-card:hover {
  transform: translateY(-10px);
  background: var(--white);
  box-shadow: 0 30px 60px rgba(0, 48, 87, 0.1);
  border-color: var(--secondary);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 48, 87, 0.04);
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.value-icon svg {
    width: 22px;
    height: 22px;
}

/* Responsive para tarjetas de valores */
@media (max-width: 768px) {
    .value-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 16px;
    }
    
    .value-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 600px) {
    .value-icon {
        width: 36px;
        height: 36px;
        margin: 0 auto 14px;
    }
    
    .value-icon svg {
        width: 16px;
        height: 16px;
    }
}

.value-card:hover .value-icon svg {
  fill: var(--white);
}

.value-card:nth-child(1) .value-icon {
  color: var(--primary);
  background: rgba(0, 48, 87, 0.08);
}

.value-card:nth-child(2) .value-icon {
  color: var(--secondary);
  background: rgba(0, 174, 239, 0.1);
}

.value-card:nth-child(3) .value-icon {
  color: var(--green);
  background: rgba(57, 181, 74, 0.1);
}

.value-card:nth-child(4) .value-icon {
  color: var(--yellow);
  background: rgba(245, 196, 0, 0.1);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: var(--white) !important;
}

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  position: relative;
  background: var(--primary);
  padding: 72px 0;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(0, 174, 239, 0.2) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(57, 181, 74, 0.1) 0%,
      transparent 55%
    );
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  max-width: 580px;
}

.cta-banner-text p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}

.cta-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-cta-primary {
  background: var(--secondary);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta-primary:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(57, 181, 74, 0.4);
}

.btn-cta-ghost {
  color: var(--white);
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in,
.fade-in-right {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in {
  transform: translateY(32px);
}

.fade-in-right {
  transform: translateX(40px);
}

.fade-in.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  /* Force GPU to keep it sharp */
  backface-visibility: hidden;
}

/* =============================================
   MOBILE MENU
   ============================================= */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav-link, .nav-cta {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        margin: 5px 0;
        border-radius: 12px;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 20px;
    }
    
    /* Overlay para fondo */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* =============================================
   RESPONSIVE DESIGN MEJORADO
   ============================================= */

/* Breakpoints consistentes */
/* Mobile: 320px - 767px */
/* Tablet: 768px - 1023px */
/* Desktop: 1024px+ */

/* Mobile First Approach */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .section-gap {
    padding: 40px 0;
  }
  
  .section-heading {
    font-size: 1.5rem;
  }
  
  /* Hero section */
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Botones */
  .btn-primary {
    width: 100%;
    padding: 16px 24px;
    text-align: center;
  }
  
  /* Tarjetas de servicios */
  .service-card-v2 {
    margin-bottom: 20px;
  }
  
  /* Proyectos */
  .project-card-v2 {
    margin-bottom: 20px;
  }
  
  /* Formulario */
  .contact-form-wrap {
    padding: 20px 15px;
  }
  
  /* Stats */
  .stat-item {
    min-width: 120px;
  }
  
  .stat-num {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Tablet Styles */
  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bento-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero responsive */
  .hero-grid-new {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-slogan-clean {
    margin-inline: auto;
  }
  
  .hero-actions-clean {
    justify-content: center;
  }
  
  /* Badges mobile */
  .badge-top-right, .badge-bottom-left {
    right: 0;
    left: 0;
    margin: 0 auto;
    width: fit-content;
  }
  
  .badge-top-right { top: -20px; }
  .badge-bottom-left { bottom: -20px; }
  
  /* Server showcase */
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Industry grid */
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* Timeline */
  .timeline {
    padding-left: 20px;
  }
  
  .tl-item {
    padding-left: 20px;
  }
  
  .tl-dot {
    left: -35px;
  }
}

@media (max-width: 1024px) {
  .about-grid,
  .about-editorial,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .about-header, .about-details {
    max-width: 600px;
    margin-inline: auto;
  }

  .since-badge {
    margin-inline: auto;
  }

  .mission-vision-tabs {
    justify-content: center;
  }

  .about-pills {
    align-items: center;
  }

  .why-card-stack {
    flex-direction: row;
  }

  .why-metric-card {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Optimizar grids para tablets */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .our-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* Hero adjustments */
  .hero-content {
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions a {
    width: 100%;
    max-width: 280px;
  }
}

/* Large tablets and small desktops */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-row {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .stat-divider {
    display: none;
  }
}

/* Small tablets */
@media (max-width: 768px) {
  .section-gap {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 20px;
  }
  
  /* Grid adjustments */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .our-projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .industry-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Typography adjustments */
  .section-heading {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .section-body {
    font-size: 1rem;
  }
  
  /* Form adjustments */
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contact-form-wrap {
    padding: 30px 20px;
  }
  
  /* Stats band */
  .stats-band {
    padding: 40px 0;
  }
  
  .stat-item {
    min-width: 140px;
  }
  
  .stat-num {
    font-size: 2.5rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .social-row {
    justify-content: center;
  }
}

/* =============================================
   SERVER SHOWCASE
   ============================================= */
.server-showcase {
  background: linear-gradient(135deg, #0b0f19 0%, #111827 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.server-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.s-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.s-feature-icon {
  font-size: 2rem;
  color: var(--secondary);
  background: rgba(0, 174, 239, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.s-feature h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 5px;
}

.s-feature p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.server-rack-wrap {
  position: relative;
  padding: 20px;
}

.server-rack {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-rack img {
  width: 100%;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.server-rack:hover img {
  transform: scale(1.05);
}

.rack-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--secondary),
    transparent
  );
  box-shadow: 0 0 20px var(--secondary);
  animation: scan 4s infinite linear;
}

@keyframes scan {
  0% {
    top: -5%;
  }

  100% {
    top: 105%;
  }
}

.status-leds {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.led-blue {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: blink 1.5s infinite;
}

.led-green {
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: blink 2s infinite 0.5s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.server-stats-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-bubble {
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: floatBubble 4s infinite ease-in-out;
}

.stat-bubble.delay-1 {
  animation-delay: 2s;
}

.bubble-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.bubble-val {
  font-weight: 800;
  color: var(--secondary);
}

@keyframes floatBubble {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 991px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .server-stats-float {
    left: 20px;
    bottom: 0;
  }
}

.server-showcase .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}

.server-showcase .section-body {
  color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   OUR PROJECTS
   ============================================= */
.our-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 48, 87, 0.08);
  border-color: var(--secondary);
}

.project-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.05);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

@media (max-width: 992px) {
  .our-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .our-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   DARK SKY HERO THEME
   ============================================= */
.dark-sky-hero {
  background: linear-gradient(135deg, #0b0f19 0%, #111827 100%);
  color: var(--white);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* Let clicks pass through to content */
}

.dark-sky-hero .hero-content {
  z-index: 2;
}

/* =============================================
   PARTIAL DARK MODE (POR PARTES)
   ============================================= */
body {
  /* Set the body to the dark starry background */
  background: linear-gradient(135deg, #0b0f19 0%, #111827 100%) fixed;
  /* Default text color for the light sections */
  color: var(--text);
}

.site-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* LIGHT SECTIONS (Restore their solid backgrounds to cover the stars) */
.clients-section,
.about,
.values-section,
.timeline-section {
  background: var(--white);
  /* solid background blocks the canvas */
  position: relative;
}

.clients-section,
.timeline-section {
  background: var(--bg-light);
}

/* DARK SECTIONS (Transparent to show stars) */
.stats-band,
.server-showcase,
.why-us,
.services,
.our-projects,
.cta-banner,
.contact {
  background: transparent !important;
  position: relative;
  color: #ffffff;
}

/* Ensure headings in the dark sections are white */
.server-showcase .section-heading,
.why-us .section-heading,
.services .section-heading,
.our-projects .section-heading,
.cta-banner .section-heading,
.stats-band .section-heading,
.contact .section-heading {
  color: #ffffff !important;
}

/* Ensure text is readable in dark sections */
.server-showcase .section-body,
.why-us .section-body,
.services .section-body,
.our-projects .section-body {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Glassmorphism for cards only inside dark sections */
.server-showcase .bento-item:not(.main-text),
.why-us .bento-item:not(.main-text),
.services .service-card,
.our-projects .project-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.server-showcase .bento-item h4,
.why-us .bento-item h4,
.services .service-card h3,
.our-projects .project-card h3 {
  color: #ffffff !important;
}

.server-showcase .bento-item p,
.why-us .bento-item p,
.services .service-card p,
.our-projects .project-card p {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Revert form fields for contact section if it's dark */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.contact-form-wrap .form-field label {
  color: #ffffff;
}

.contact-form-wrap .form-field input,
.contact-form-wrap .form-field textarea,
.contact-form-wrap .form-field select {
  background: #111827 !important; /* Más sólido para evitar transparencias raras */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-form-wrap .form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.2rem center !important;
  background-size: 1.2em !important;
  padding-right: 3.5rem !important;
  cursor: pointer;
  font-weight: 600; /* Letras más gruesas para mayor legibilidad */
}

.contact-form-wrap .form-field select option {
  background-color: #111827 !important;
  color: #ffffff !important;
  padding: 15px !important;
  font-size: 1rem !important;
}

.contact-form-wrap .form-field input:focus,
.contact-form-wrap .form-field textarea:focus,
.contact-form-wrap .form-field select:focus {
  background: #0f172a !important;
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

/* Revert Header to its original behavior (light when scrolled) */
#header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

#header.scrolled .nav-link {
  color: var(--text);
}

#header.scrolled .nav-link:hover {
  color: var(--primary);
}

#header.scrolled .logo-img {
  filter: none;
}

/* =============================================
   SERVICES SECTION (V2 - SOURCE FROM WEB_NIVARIA)
   ============================================= */
.service-card-v2,
.project-card-v2 {
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-v2:hover,
.project-card-v2:hover {
  transform: translateY(-5px);
}

.service-card-v2,
.project-card-v2 {
  font-size: 0.9rem;
}

.service-card-v2 h3,
.project-card-v2 h3 {
  font-size: 1.2rem !important;
}

.service-card-v2 .p-6,
.project-card-v2 .p-6 {
  padding: 1.25rem !important;
}

.service-card-v2 .h-40,
.project-card-v2 .h-48 {
  height: 120px !important;
}

.animate-spin-slow {
  animation: spin 3s linear infinite;
}

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

.group:hover .group-hover\:animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.group:hover .group-hover\:animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.service-card-v2 .no-underline {
  text-decoration: none;
}

.service-card-v2 ul {
  list-style: none;
  padding: 0;
}

/* =============================================
   HERO ANIMATIONS (Ported from web_nivaria)
   ============================================= */
.hero-content {
  animation: fadeInUp 0.9s ease-out both;
}

.hero-image {
  animation: fadeInRight 0.9s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =============================================
   FINAL RESPONSIVE FIXES
   ============================================= */
@media (max-width: 768px) {
  .about-editorial {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  
  .about-header, 
  .about-details {
    width: 100% !important;
    max-width: 100% !important;
  }

  .since-badge {
    margin: 20px auto !important;
  }

  .mission-vision-tabs {
    justify-content: center !important;
  }

  .about-pills {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .pill {
    justify-content: center !important;
  }

  .section-heading {
    font-size: 2rem !important;
  }
}


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

/* Fix for Hero Image Scrollbar */
.hero-image {
  overflow: visible !important;
}

.hero-image div {
  overflow: visible !important;
}

.hero-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 500px !important;
  object-fit: cover !important;
  border-radius: 24px !important;
}

