
/* =======================
   TITULARES RESPONSIVE
   ======================= */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  text-wrap: balance;
}

/* Tamaños fluidos */
h1 {
  font-size: clamp(3rem, 7vw, 5rem);   /* 48px → 80px */
}

h2 {
  font-size: clamp(3.5rem, 8vw, 6.5rem); /* 56px → 104px */
}

h3 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);   /* 40px → 67px */
}

/* Subtítulos */
h4 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
h5 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
h6 {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

/* Forzar textos comunes más grandes */
p, span, li, small, a {
  font-size: 1.5rem !important; /* ≈ 24px */
  line-height: 1.8 !important;
  font-weight: 400 !important;
}

/* Enlaces más notorios */
a {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.8;
}

/* Casos especiales */
.hero h1, .jumbotron-custom h1, .header-slider h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
}

/* Texto grande manual */
.large {
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 500;
}

/* Títulos con la clase text-5xl → responsivos */
h3.text-5xl {
  font-size: clamp(3rem, 7vw, 5rem) !important; /* 48px → 80px */
  line-height: 1.1 !important;
  text-align: center !important;
  word-break: break-word !important;
  white-space: normal !important; /* Evita desbordes */
}



    :root {
      --primary-blue: #003b8b;
      --primary-red: #e60026;
      --accent-yellow: #ffe600;
      --gradient-blue-red: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
      --gradient-red-blue: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background: #f5f7fa;
}


    /* ===== NAVBAR ===== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: var(--gradient-blue-red);
      padding: 15px 0;
      z-index: 1000;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transition: all 0.3s ease;
    }

  .navbar.scrolled {
  padding: 10px 0;
  background: linear-gradient(90deg, #e01809 0%, #1765d1 100%, #0ec1e0 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}


  .navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Esto alinea bien logo y menú */
}


.navbar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 150px; /* Esto asegura que no se encoja más de esto */
}


    .navbar-logo img {
      height: 85px;
      border: 3px solid rgba(255, 255, 255, 0.9);
      border-radius: 8px;
      background-color: rgba(255, 255, 255, 0.85);
      padding: 5px;
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
      transition: all 0.3s ease;
    }
    .navbar-logo img:hover {
      transform: scale(1.08) rotate(-2deg);
      box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }

.navbar-nav {
  display: flex;
  gap: 20px; /* antes era 40px */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  text-transform: capitalize; /* Solo la primera letra en mayúscula */
}


.navbar-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
  padding: 10px 15px;
  display: inline-block;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-transform: capitalize; /* Solo primera letra de cada palabra */
}


.navbar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-yellow);
}


    .navbar-nav a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 3px;
      bottom: 0;
      left: 0;
      background-color: var(--accent-yellow);
      transition: width 0.3s ease, opacity 0.3s ease;
      opacity: 0;
    }

    .navbar-nav a:hover::after {
      width: 100%;
      opacity: 1;
    }

    /* ===== MENÚ MÓVIL ===== */
    .navbar-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px;
      z-index: 1001;
      position: relative;
    }
    .hamburger-icon {
      font-size: 28px;
      color: #fff;
      transition: all 0.3s ease;
    }
    .navbar-toggle:hover .hamburger-icon {
      color: var(--accent-yellow);
      transform: rotate(90deg);
    }
    .navbar-toggle.active .hamburger-icon {
      transform: rotate(180deg);
    }

    @media (max-width: 991px) {
      .navbar {
        padding: 12px 0;
      }
      .navbar-logo img {
        height: 60px;
      }
      .navbar-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 30, 64, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px;
        gap: 30px;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.8s ease-in-out;
        pointer-events: none;
        z-index: 999;
      }
      .open .navbar-nav {
        clip-path: circle(1500px at 90% -10%);
        -webkit-clip-path: circle(1500px at 90% -10%);
        pointer-events: all;
      }

.navbar-menu {
  margin-left: auto;
}


      .navbar-toggle {
        display: block;
      }
      .navbar-nav a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1);
      }
      .navbar-menu.open .navbar-nav a {
        opacity: 1;
        transform: translateY(0);
      }
      .navbar-menu.open .navbar-nav li:nth-child(1) a { transition-delay: 0.1s; }
      .navbar-menu.open .navbar-nav li:nth-child(2) a { transition-delay: 0.2s; }
      .navbar-menu.open .navbar-nav li:nth-child(3) a { transition-delay: 0.3s; }
      .navbar-menu.open .navbar-nav li:nth-child(4) a { transition-delay: 0.4s; }
      .navbar-menu.open .navbar-nav li:nth-child(5) a { transition-delay: 0.5s; }
      .navbar-menu.open .navbar-nav li:nth-child(6) a { transition-delay: 0.6s; }
      .navbar-menu.open .navbar-nav li:nth-child(7) a { transition-delay: 0.7s; }
    }

    /* ===== CARRUSEL SUPER CREATIVO ===== */
    .header-slider {
      position: relative;
      width: 100%;
      height: 100vh;
      min-height: 700px;
      overflow: hidden;
      background-color: #000;
    }
    .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 0;
      transition: opacity 1.2s ease-in-out, transform 8s linear;
      z-index: 1;
      transform: scale(1);
    }
    .slide.active {
      opacity: 1;
      z-index: 2;
      transform: scale(1.05);
    }
    .slide::before {
      background: none;
    }
 
    /* Controles del carrusel */
    .slider-controls {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 15px;
      z-index: 10;
    }
    
    .slider-dot {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid transparent;
    }
    
    .slider-dot:hover {
      background: rgba(255, 255, 255, 0.8);
    }
    
    .slider-dot.active {
      background: var(--accent-yellow);
      transform: scale(1.3);
      box-shadow: 0 0 10px rgba(255, 230, 0, 0.7);
    }
    
    .slider-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 50px;
      height: 50px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 24px;
      cursor: pointer;
      z-index: 10;
      transition: all 0.3s ease;
      border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .slider-arrow:hover {
      background: rgba(0, 0, 0, 0.7);
      color: var(--accent-yellow);
      transform: translateY(-50%) scale(1.1);
    }
    
    .slider-arrow.prev {
      left: 30px;
    }
    
    .slider-arrow.next {
      right: 30px;
    }
    
    /* ===== JUMBOTRON MEJORADO ===== */
    .jumbotron-custom {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      z-index: 5;
      padding-top: 80px;
    }
    
    .jumbotron-content {
      width: 100%;
      max-width: 1200px;
      padding: 0 30px;
      margin: 0 auto;
      animation: fadeInUp 1s ease-out;
    }
   
.jumbotron-inner {
  background: none; /* Quita el fondo negro translúcido */
  backdrop-filter: none; /* Quita el blur */
  padding: 0;
  border-radius: 0;
  max-width: none;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  transform: none;
  transition: none;
}

.jumbotron-inner:hover {
  transform: none;
  box-shadow: none;
}


    .jumbotron-custom h1 {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #fff;
  text-shadow: none;
}

.large {
  color: #fff;
  text-shadow: none;
}

    
    .btn-primary {
      display: inline-block;
      padding: 15px 40px;
      background: var(--gradient-blue-red);
      color: white;
      text-decoration: none;
      border-radius: 50px;
      font-weight: 700;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
      border: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 1.1rem;
    }
    
    .btn-primary::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: var(--gradient-red-blue);
      transition: all 0.6s ease;
      z-index: -1;
    }
    
    .btn-primary:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    
    .btn-primary:hover::before {
      left: 0;
    }
    
    /* Efecto de partículas */
    .particles {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 3;
      pointer-events: none;
    }
    
    .particle {
      position: absolute;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 50%;
      animation: float 15s infinite linear;
    }
    
    @keyframes float {
      0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
      }
      100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
      }
    }
    
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* ===== RESPONSIVE ===== */
    @media (max-width: 1200px) {
      .navbar-container {
        padding: 0 25px;
      }
    }
    
    @media (max-width: 991px) {
      .header-slider {
        min-height: 600px;
      }
      
      .jumbotron-inner {
        padding: 40px 30px;
      }
      
      .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
      }
    }
    
    @media (max-width: 768px) {
      .header-slider {
        min-height: 500px;
        height: 80vh;
      }
      
      .jumbotron-inner {
        padding: 30px 20px;
        border-radius: 15px;
      }
      
      .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
      }
      
      .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
      }
      
      .slider-arrow.prev {
        left: 15px;
      }
      
      .slider-arrow.next {
        right: 15px;
      }
      
      .slider-controls {
        bottom: 30px;
      }
    }
    
    @media (max-width: 480px) {
      .header-slider {
        min-height: 450px;
        height: 70vh;
      }
      
      .jumbotron-inner {
        padding: 25px 15px;
        border-radius: 12px;
      }
      
      .jumbotron-custom h1 {
        margin-bottom: 15px;
      }
      
      .large {
        margin-bottom: 25px;
      }
      
      .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
      }
      
      .navbar-container {
        padding: 0 15px;
      }
      
     @media (max-width: 991px) {
  .navbar-logo img {
    height: 60px;
    width: auto; /* Esto mantiene el aspecto proporcional */
  }
}
@media (max-width: 480px) {
  .navbar-logo img {
    height: 50px;
    width: auto;
  }
}

    }

    .navbar {
  transform: translateY(0);
  transition: transform 0.5s ease, background 0.5s ease;
}


    /* === RESET & BASE STYLES === */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      line-height: 1.6;
      color: #fff;
    }

    /* === SECTION STYLES === */
    .section-xl {
      padding: 80px 0;
      background: linear-gradient(135deg, #4872F0 10%, #6a8df7 30%, #b3c6fa 50%, #f72585 100%);
      background-size: 200% 200%;
      animation: gradientShift 15s ease infinite;
      position: relative;
      overflow: hidden;
    }

    .shell-fluid {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .range {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      align-items: center;
      justify-content: space-between;
    }

    .cell-md-5, .cell-md-7 {
      flex: 1;
      min-width: 300px;
    }

    .inset-1 {
      padding: 40px;
    }

    /* === TEXT STYLES === */
    h2 {
      font-size: 2.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 20px;
      color: #fff;
      text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out, text-shadow 0.3s ease;
    }

    h2.visible {
      opacity: 1;
      transform: translateY(0);
    }

    h2:hover {
      text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    }

    .big {
      font-size: 1.2rem;
      line-height: 1.8;
      color: #f0f0f0;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
    }

    .big.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* === BUTTON STYLES === */
    .btn {
      display: inline-block;
      padding: 12px 30px;
      background: linear-gradient(45deg, #f72585, #4872F0);
      color: #fff;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
      letter-spacing: 0.5px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      opacity: 0;
      transform: scale(0.95);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    }

    .btn.visible {
      opacity: 1;
      transform: scale(1);
    }

    .btn:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      background: linear-gradient(45deg, #ff4b9b, #5a7df7);
    }

    /* === IMAGE STYLES === */
    .row {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .col-xs-4 {
      flex: 1;
      min-width: 200px;
      max-width: 300px;
    }

    .figure-fullwidth {
      position: relative;
      overflow: hidden;
      border-radius: 16px;
      transform: translateX(-50px) rotate(-3deg);
      opacity: 0;
      transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .figure-fullwidth.visible {
      opacity: 1;
      transform: translateX(0) rotate(0);
    }

    .figure-fullwidth img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 16px;
      transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
    }

    .figure-fullwidth:hover img {
      transform: perspective(1000px) rotateY(10deg) scale(1.05);
      filter: brightness(1.1) saturate(1.2);
    }

    .figure-fullwidth::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg, rgba(72, 114, 240, 0.15), rgba(247, 37, 133, 0.15));
      opacity: 0;
      transition: opacity 0.4s ease;
      z-index: 1;
      border-radius: 16px;
    }

    .figure-fullwidth:hover::before {
      opacity: 1;
    }

    /* === ANIMATIONS === */
    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* === RESPONSIVE DESIGN === */
    @media (max-width: 768px) {
      .section-xl {
        padding: 40px 0;
      }

      .inset-1 {
        padding: 20px;
      }

      h2 {
        font-size: 2rem;
      }

      .big {
        font-size: 1rem;
      }

      .row {
        flex-direction: column;
        align-items: center;
      }

      .col-xs-4 {
        max-width: 100%;
      }
    }

.servicios-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.cell-md-6 {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 20px;
}

.image-wrap-left,
.image-wrap-right {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.image-wrap-inner {
  max-width: 680px;
  width: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.texto-service {
  width: 100%;
  margin-left: 0 !important;
}

/* GRID de servicios */
.cruz-servicio {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
}

/* Cajones sin contorno blanco */
.cruz-servicio-item {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 14px;
  padding: 18px;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
}

/* Hover con profundidad sin desbordar */
.cruz-servicio-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 1;
}

/* Iconos centrados encima del texto */
.box-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.box-icon-image {
  margin-bottom: 10px;
}

.box-icon-image img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.box-icon:hover .box-icon-image img {
  transform: scale(1.05);
}

/* Textos con sombra estilizada */
.box-icon-header a,
.box-icon-text {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.box-icon-header a:hover {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.box-icon-text {
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
  max-width: 260px;
}

/* Subrayado animado del link */
.link-underlined {
  position: relative;
  color: #fff;
  text-decoration: none;
}

.link-underlined:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

.hover-animate:hover .link-underlined:after {
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .cell-md-6 {
    flex: 1 1 100%;
    padding: 30px 15px;
  }

  .cruz-servicio {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
  }

  .cruz-servicio-item {
    min-height: 200px;
    max-height: 200px;
  }
}

@media (max-width: 600px) {
  .cruz-servicio {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 420px;
  }

  .cruz-servicio-item {
    min-height: 180px;
    max-height: 180px;
  }

  .image-wrap-inner {
    padding: 20px;
  }
}

    :root {
      --color-primary: #4361ee;
      --color-secondary: #3a0ca3;
      --color-accent: #f72585;
      --color-light: #f8f9fa;
      --color-dark: #212529;
      --rect-width: 320px;
      --rect-height: 420px;
      --rect-depth: 180px;
      --transition-speed: 0.15s;
    }

    #valores-3d {
      overflow: hidden;
      min-height: 100vh;
      padding: 40px 20px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    #vanta-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      will-change: transform, opacity;
    }

    .container-3d {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 20px;
      max-width: 600px;
      margin: 0 auto;
      padding: 20px;
      width: 100%;
    }

    .scene-container {
      width: var(--rect-width);
      min-height: 60vh;
      display: flex;
      justify-content: center;
      align-items: center;
      perspective: 2000px;
      cursor: default;
      touch-action: auto;
      -webkit-tap-highlight-color: transparent;
      -webkit-user-select: none;
      user-select: none;
      will-change: transform;
    }

    .scene-container.rotation-enabled {
      cursor: grab;
    }

    .scene-container.rotation-enabled:active {
      cursor: grabbing;
    }

    .rect-3d {
      position: relative;
      width: var(--rect-width);
      height: var(--rect-height);
      transform-style: preserve-3d;
      transition: transform var(--transition-speed) linear;
      will-change: transform;
    }

    .rect-face {
      position: absolute;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      transform-style: preserve-3d;
      text-align: center;
      overflow: hidden;
      backface-visibility: hidden;
      will-change: transform, opacity;
      -webkit-user-select: none;
      user-select: none;
    }

    .rect-face::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
      z-index: -1;
    }

    #mision-face {
      background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(67, 97, 238, 0.4));
      transform: rotateY(0deg) translateZ(calc(var(--rect-depth)/2));
      width: var(--rect-width);
      height: var(--rect-height);
    }

    #vision-face {
      background: linear-gradient(135deg, rgba(247, 37, 133, 0.2), rgba(247, 37, 133, 0.4));
      transform: rotateY(90deg) translateZ(calc(var(--rect-width)/2 + var(--rect-depth)/2));
      width: var(--rect-depth);
      height: var(--rect-height);
      left: calc((var(--rect-width) - var(--rect-depth))/2);
    }

    #valores-face {
      background: linear-gradient(135deg, rgba(58, 12, 163, 0.2), rgba(58, 12, 163, 0.4));
      transform: rotateY(-90deg) translateZ(calc(var(--rect-width)/2 + var(--rect-depth)/2));
      width: var(--rect-depth);
      height: var(--rect-height);
      left: calc((var(--rect-width) - var(--rect-depth))/2);
    }

    .rect-face h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 20px;
      background: linear-gradient(90deg, #ffffff, #e0e0e0);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      position: relative;
    }

    .rect-face h2::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 3px;
      background: white;
      border-radius: 3px;
      opacity: 0.7;
    }

    .rect-content {
      font-size: 1rem;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 20px;
      max-width: 100%;
    }

    .rect-face ul {
      list-style-type: none;
      text-align: center;
      width: 100%;
      padding-left: 0;
    }

    .rect-face li {
      position: relative;
      padding-left: 0;
      margin-bottom: 8px;
    }

    .rect-icon {
      font-size: 3rem;
      opacity: 0.2;
      margin-bottom: 20px;
      will-change: transform;
    }

    .face-nav-buttons {
      display: flex;
      flex-direction: row;
      gap: 10px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
    }

    .face-nav-btn {
      padding: 8px 16px;
      border: none;
      border-radius: 8px;
      color: white;
      font-weight: 600;
      font-size: 0.9rem;
      cursor: pointer;
      transition: transform 0.2s, opacity 0.2s;
      -webkit-user-select: none;
      user-select: none;
      min-width: 80px;
      text-align: center;
    }

    .face-nav-btn:hover {
      transform: scale(1.05);
      opacity: 0.9;
    }

    .face-nav-btn:active {
      transform: scale(0.95);
    }

    /* Botones específicos */
    .face-nav-btn[data-face="mision"] {
      background: linear-gradient(135deg, rgba(67, 97, 238, 0.6), rgba(67, 97, 238, 0.8));
    }

    .face-nav-btn[data-face="vision"] {
      background: linear-gradient(135deg, rgba(247, 37, 133, 0.6), rgba(247, 37, 133, 0.8));
    }

    .face-nav-btn[data-face="valores"] {
      background: linear-gradient(135deg, rgba(58, 12, 163, 0.6), rgba(58, 12, 163, 0.8));
    }

    /* Optimizaciones para touch */
    @media (hover: none) {
      .scene-container {
        cursor: default;
      }

      .scene-container.rotation-enabled {
        cursor: default;
      }
    }

    /* Responsive */
    @media (max-width: 768px) {
      :root {
        --rect-width: 300px;
        --rect-height: 400px;
        --rect-depth: 160px;
        --transition-speed: 0.1s;
      }

      .container-3d {
        gap: 15px;
        max-width: 340px;
      }

      .scene-container {
        min-height: 50vh;
        perspective: 1500px;
      }

      .rect-face {
        padding: 20px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
      }

      .rect-face h2 {
        font-size: 1.5rem;
      }

      .rect-content {
        font-size: 0.9rem;
      }

      .face-nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 70px;
      }
    }

    @media (max-width: 480px) {
      :root {
        --rect-width: 260px;
        --rect-height: 360px;
        --rect-depth: 140px;
      }

      .container-3d {
        max-width: 300px;
      }

      .scene-container {
        min-height: 45vh;
      }

      .rect-icon {
        font-size: 2.5rem;
      }

      .rect-face {
        padding: 15px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
      }

      .face-nav-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 60px;
      }
    }


:root {
  --color-blue: #3b82f6;
  --color-indigo: #6366f1;
  --color-emerald: #10b981;
  --color-teal: #14b8a6;
  --color-amber: #f59e0b;
  --color-yellow: #eab308;
}

.font-orbitron {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
}

.career-card {
  perspective: 1000px;
  height: 100%;
  width: 100%; /* Ocupa todo el ancho de la celda de la cuadrícula */
  max-width: 600px; /* Limita el ancho al contenedor de la cuadrícula */
  min-width: 0; /* Evita que la tarjeta se encoja demasiado */
  margin: 0 auto; /* Centra horizontalmente */
  position: relative; /* Asegura que el contexto de apilamiento sea correcto */
  z-index: 1; /* Controla el apilamiento para evitar superposiciones no deseadas */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-front {
  position: relative;
  backface-visibility: hidden;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-sizing: border-box;
}

.card-front img {
  width: 100%;
  height: auto;
  max-height: 20rem;
  object-fit: cover;
}

.card-front .p-8 {
  padding: 2rem;
  width: 100%;
}

.card-front h3 {
  font-size: 1.75rem;
}

.card-front p {
  font-size: 1.1rem;
}

.card-front .flex.flex-wrap {
  gap: 1rem;
}

.tech-chip, .finance-chip, .admin-chip {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 80px;
  text-align: center;
}

.finance-chip {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.admin-chip {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fcd34d;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 #00fffc, -0.05em -0.025em 0 #fc00ff;
  }
  14% {
    text-shadow: 0.05em 0 0 #00fffc, -0.05em -0.025em 0 #fc00ff;
  }
  15% {
    text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.025em 0 #fc00ff;
  }
  49% {
    text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.025em 0 #fc00ff;
  }
  50% {
    text-shadow: 0.025em 0.05em 0 #00fffc, 0.05em 0 0 #fc00ff;
  }
  99% {
    text-shadow: 0.025em 0.05em 0 #00fffc, 0.05em 0 0 #fc00ff;
  }
  100% {
    text-shadow: -0.025em 0 0 #00fffc, -0.025em -0.025em 0 #fc00ff;
  }
}

.glass-effect {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .card-front {
    padding: 1rem;
  }
  .card-front .p-8 {
    padding: 1.5rem;
  }
  .card-front h3 {
    font-size: 1.5rem;
  }
  .card-front p {
    font-size: 1rem;
  }
  .tech-chip, .finance-chip, .admin-chip {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    min-width: 70px;
  }
}

@media (max-width: 768px) {
  .modal-container {
    height: 90vh;
    width: calc(100% - 2rem);
    margin: 1rem auto;
  }
  .modal-container > div {
    width: 100% !important;
  }
  #3d-model-container {
    height: 200px !important;
  }
  .card-front {
    padding: 0.75rem;
  }
  .card-front .p-8 {
    padding: 1rem;
  }
  .card-front h3 {
    font-size: 1.25rem;
  }
  .card-front p {
    font-size: 0.9rem;
  }
  .tech-chip, .finance-chip, .admin-chip {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    min-width: 60px;
  }
}

#career-modal {
  z-index: 9999;
  overflow: auto;
}

.modal-container {
  position: relative;
  margin: 2rem auto;
  z-index: 10000;
  max-height: calc(100vh - 4rem);
}

#close-modal {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#close-modal svg {
  width: 24px;
  height: 24px;
}

.modal-container > div {
  height: 100%;
}

.modal-container .overflow-y-auto {
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .modal-container {
    width: calc(100% - 2rem);
    margin: 1rem auto;
  }
  #close-modal {
    top: 0.5rem;
    right: 0.5rem;
  }
}   
    

    /* ===== ESTILOS BASE ===== */
    :root {
      --primary-color: #003b8b;
      --secondary-color: #e60026;
      --accent-color: #fbb03b;
      --light-color: #ffffff;
      --dark-color: #0a192f;
    }

    /* ===== FOOTER INTEGRADO ===== */
    .super-footer {
      position: relative;
      background: linear-gradient(145deg, var(--dark-color) 0%, var(--primary-color) 100%);
      color: var(--light-color);
      padding: 60px 0 30px;
      overflow: hidden;
      font-family: 'Manrope', sans-serif;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
      /* Transición suave para el fondo */
      transition: background 2s cubic-bezier(0.4,0,0.2,1);
      will-change: background;
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1.5fr;
      gap: 30px;
    }

    /* ===== LOGO Y DESCRIPCIÓN ===== */
    .footer-brand {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .footer-logo {
      margin-bottom: 25px;
      perspective: 1000px;
    }

    .footer-logo img {
      max-width: 180px;
      height: auto;
      filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
      transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      transform-style: preserve-3d;
    }

    .footer-description {
      color: rgba(255, 255, 255, 0.85);
      line-height: 1.7;
      margin-bottom: 25px;
      font-size: 15px;
    }

    /* ===== COLUMNAS DE ENLACES ===== */
    .footer-column {
      display: flex;
      flex-direction: column;
    }

    .footer-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 25px;
      position: relative;
      color: var(--light-color);
      letter-spacing: 0.5px;
    }

    .footer-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 50px;
      height: 3px;
      background: var(--accent-color);
      transition: width 0.5s ease;
    }

    .footer-column:hover .footer-title::after {
      width: 80px;
    }

    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-links li {
      margin-bottom: 15px;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      font-size: 15px;
      transition: all 0.3s ease;
      display: inline-block;
      position: relative;
      padding-left: 15px;
    }

    .footer-links a::before {
      content: '→';
      position: absolute;
      left: 0;
      opacity: 0;
      transition: all 0.3s ease;
      color: var(--accent-color);
    }

    .footer-links a:hover {
      color: var(--light-color);
      padding-left: 20px;
      transform: translateX(5px);
    }

    .footer-links a:hover::before {
      opacity: 1;
      left: -5px;
    }

    /* ===== NEWSLETTER ===== */
    .footer-newsletter {
      position: relative;
    }

    .newsletter-text {
      color: rgba(255, 255, 255, 0.85);
      margin-bottom: 20px;
      font-size: 15px;
      line-height: 1.7;
    }

    .newsletter-form {
      display: flex;
      flex-direction: column;
    }

    .newsletter-input {
      padding: 14px 20px;
      border: none;
      border-radius: 4px;
      margin-bottom: 15px;
      background: rgba(255, 255, 255, 0.1);
      color: var(--light-color);
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
    }

    .newsletter-input:focus {
      outline: none;
      border-color: var(--accent-color);
      background: rgba(255, 255, 255, 0.15);
      box-shadow: 0 0 0 3px rgba(251, 176, 59, 0.2);
    }

    .newsletter-button {
      background: var(--accent-color);
      color: var(--dark-color);
      border: none;
      padding: 14px 20px;
      border-radius: 4px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .newsletter-button:hover {
      background: var(--light-color);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(251, 176, 59, 0.4);
    }

    .newsletter-button i {
      margin-left: 8px;
    }

    /* ===== REDES SOCIALES ===== */
    .footer-social {
      display: flex;
      gap: 15px;
      margin-top: 30px;
    }

    .social-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--light-color);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      overflow: hidden;
    }

    .social-icon::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: 0.5s;
    }

    .social-icon:hover {
      transform: translateY(-5px) scale(1.1);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .social-icon:hover::before {
      left: 100%;
    }

    /* Colores específicos para redes sociales */
    .social-icon.facebook:hover { background: #1877f2; }
    .social-icon.twitter:hover { background: #1da1f2; }
    .social-icon.instagram:hover { 
      background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    }
    .social-icon.linkedin:hover { background: #0077b5; }
    .social-icon.youtube:hover { background: #ff0000; }

    /* ===== COPYRIGHT ===== */
    .footer-bottom {
      margin-top: 60px;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      text-align: center;
      color: rgba(255, 255, 255, 0.6);
      font-size: 14px;
    }

    /* ===== EFECTOS 3D Y ANIMACIONES ===== */
    .footer-3d-effect {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
    }

    .footer-3d-layer {
      position: absolute;
      border: 1px solid rgba(255, 255, 255, 0.03);
      border-radius: 10px;
      transform-style: preserve-3d;
      transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 992px) {
      .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
      }
      
      .footer-brand {
        grid-column: span 2;
      }
    }

    @media (max-width: 768px) {
      .footer-container {
        grid-template-columns: 1fr;
      }
      
      .footer-brand {
        grid-column: span 1;
      }
      
      .footer-column {
        margin-bottom: 30px;
      }
      
      .footer-title {
        margin-bottom: 20px;
      }
    }

    @media (max-width: 480px) {
      .super-footer {
        padding: 40px 0 20px;
      }
      
  .super-footer {
    position: relative;
    overflow: hidden;
  }

  .super-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #003b8b 0%, #e60026 100%);
    z-index: 0;
    opacity: 1;
    transition: opacity 2s ease-in-out, background 2s ease-in-out;
  }

  .footer-container, .footer-bottom, .footer-3d-effect {
    position: relative;
    z-index: 1;
  }


      
      .footer-social {
        justify-content: center;
      }
      
      .newsletter-form {
        width: 100%;
      }
    }

      @media (max-width: 992px) {
        .footer-brand,
        .footer-column,
        .footer-newsletter {
          align-items: center !important;
          text-align: center !important;
        }
        .footer-social {
          justify-content: center !important;
        }
      }
      @media (max-width: 768px) {
        .footer-brand,
        .footer-column,
        .footer-newsletter {
          align-items: center !important;
          text-align: center !important;
        }
        .footer-social {
          justify-content: center !important;
        }
        .footer-bottom {
          text-align: center !important;
        }
      }
      @media (max-width: 480px) {
        .footer-brand,
        .footer-column,
        .footer-newsletter {
          align-items: center !important;
          text-align: center !important;
        }
        .footer-social {
          justify-content: center !important;
        }
        .footer-bottom {
          text-align: center !important;
        }
      }
  







/* Navbar fijo arriba */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 20px !important;
  z-index: 999 !important;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Contenedor interno del navbar: logo a la izquierda, menú a la derecha y centrado verticalmente */
.navbar-container {
  display: flex !important;
  align-items: center !important;    /* centra verticalmente */
  justify-content: space-between !important; /* logo a la izq, menú a la der */
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100%;
  max-width: 1200px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
}

/* Contenedor del menú: alineado a la derecha */
.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Lista de navegación inline y centrada verticalmente */
.navbar-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Estilo básico para los links del menú */
.navbar-nav li a {
  color: #087596;
  text-decoration: none;
  padding: 8px 10px;
  display: inline-block;
}

/* Botón hamburguesa: oculto en escritorio, visible en pantallas pequeñas */
.navbar-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

/* Responsive: mostrar hamburguesa y convertir el menú en panel vertical */
@media (max-width: 768px) {
  .navbar-toggle { display: block; }

  /* por defecto ocultamos la lista en móvil (abrirla con JS toggling añadiendo .open a .navbar) */
  .navbar-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    background: rgba(255,255,255,0.98);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(255, 255, 255);
    flex-direction: column;
    gap: 8px;
    width: auto;
    min-width: 160px;
  }

  /* clase auxiliar: cuando se abra el navbar en móvil */
  .navbar.open .navbar-nav {
    display: flex;
  }
}
