/* inicio.css - Custom styling for new Inicio layout based on template */
:root {
  --primary: #040253;
  --primary-dark: #020130;
  --secondary: #fe7f00;
  --dark: #2c2c2c;
  --darker: #1a1a1a;
  --white: #ffffff;
  --bg-light: #f4f4f4;
  --font-main: 'Poppins', system-ui, sans-serif;
}

body {

  color: var(--dark);
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--dark);
  margin-top: 0;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Background Colors */
.bg-gray-800 {
  background-color: var(--darker) !important;
  color: var(--white) !important;
}

.bg-gray-800 h2,
.bg-gray-800 h3,
.bg-gray-800 h4,
.bg-gray-800 h6 {
  color: var(--white);
}

.bg-gray-800 p {
  color: rgba(255, 255, 255, 0.7);
}

.bg-primary-dark {
  background-color: var(--primary-dark) !important;
  color: var(--white) !important;
}

.bg-primary-dark h2,
.bg-primary-dark h3,
.bg-primary-dark h4,
.bg-primary-dark h6 {
  color: var(--white);
}

.bg-primary-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.fw-light {
  font-weight: 300;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}


/* Buttons */

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid var(--secondary);
  background-color: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #d96d00;
  border-color: #d96d00;
}

/* Section Headers */
.section-header {
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header h6 {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Primera Sección */
.inicio-header-section {
  margin-top: 0;
}

.header-image-full {
  width: 100%;
}

.header-image-full img {
  width: 100%;
  height: auto;
  display: block;
}

.header-columns {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 0;
  padding: 0;
  background: var(--darker);
  min-height: 400px;
}

.column-30 {
  display: flex;
  align-items: center;
  padding: 60px 40px;
  background: var(--primary-dark);
}

.aia-consultores-box h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.aia-consultores-box p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}

.column-70 {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Carrusel de proyectos */
.proyectos-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.proyectos-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.proyecto-slide {
  min-width: 100%;
  height: 100%;
}

.proyecto-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proyectos-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.proyecto-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  border: none;
  padding: 0;
}

.proyecto-dot.active,
.proyecto-dot:hover {
  background: var(--secondary);
}

/* ============================================
   NUEVA SECCIÓN: ARQUITECTURA QUE INSPIRA
   Con fondo animado flotante (similar a contactos)
   ============================================ */

.arquitectura-inspira-section {
  position: relative;
  padding: 20px 0;
  background: #ffffff;
  overflow: hidden;
}

/* Fondo animado con efecto flotante (similar a sección contacto) */
.arquitectura-bg-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bg-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('../img/fondo/fondo-3-1047x531.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.bg-layer-1 {
  animation: floatBg 20s ease-in-out infinite;
}

.bg-layer-2 {
  animation: floatBgReverse 25s ease-in-out infinite;
  opacity: 0.05;
  transform: scale(1.1);
}

@keyframes floatBg {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-2%, -2%) scale(1.02);
  }

  66% {
    transform: translate(2%, 1%) scale(0.98);
  }
}

@keyframes floatBgReverse {

  0%,
  100% {
    transform: translate(0, 0) scale(1.1);
  }

  33% {
    transform: translate(2%, 1%) scale(1.12);
  }

  66% {
    transform: translate(-1%, -2%) scale(1.08);
  }
}

.arquitectura-inspira-section .container {
  position: relative;
  z-index: 2;
}

.arquitectura-inspira-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* CONTENIDO TEXTO */
.arquitectura-inspira-content {
  animation: fadeInUp 0.8s ease-out;
}

.arquitectura-badge {
  margin-bottom: 20px;
}

.arquitectura-badge span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fe7f00;
  background: rgba(254, 127, 0, 0.1);
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-block;
}

.arquitectura-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.arquitectura-title .highlight {
  color: #fe7f00;
  position: relative;
  display: inline-block;
}

.arquitectura-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(254, 127, 0, 0.2);
  z-index: -1;
}

.arquitectura-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 35px;
}

.arquitectura-description strong {
  color: #040253;
  font-weight: 700;
}

/* FEATURES */
.arquitectura-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.arch-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInRight 0.5s ease-out forwards;
}

.arch-feature:nth-child(1) {
  animation-delay: 0.1s;
}

.arch-feature:nth-child(2) {
  animation-delay: 0.2s;
}

.arch-feature:nth-child(3) {
  animation-delay: 0.3s;
}

.arch-feature:hover {
  transform: translateX(5px);
}

.arch-feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fe7f00, #ff9a3c);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.arch-feature:hover .arch-feature-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 10px 25px rgba(254, 127, 0, 0.3);
}

.arch-feature-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.arch-feature-text p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* CTA Button */
.arquitectura-cta {
  margin-top: 20px;
}

.btn-arch-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #040253;
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-arch-primary:hover {
  background: #fe7f00;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(254, 127, 0, 0.25);
}

.btn-arch-primary:hover i {
  transform: translateX(5px);
}

.btn-arch-primary i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.arch-note {
  font-size: 0.75rem;
  color: #888;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arch-note::before {
  content: '✓';
  color: #22c55e;
  font-weight: bold;
}

/* VIDEO (reemplazo de imagen derecha) */
.arquitectura-inspira-video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* ── Escena (perspectiva para el efecto 3D de giro) ── */
.arch-video-scene {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ── Wrapper base ─────────────────────────────────── */
.arch-video-wrapper {
  position: relative;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  background: #000;
  transform-style: preserve-3d;
  /* Transición suave excepto durante la animación de giro */
  transition: box-shadow 0.5s ease;
  will-change: transform;
}

/* ── Dirección VERTICAL (9:16 – modo predeterminado) ── */
.arch-video-wrapper.direction-vertical {
  width: 100%;
  max-width: 310px;
  aspect-ratio: 9 / 16;
  transition: box-shadow 0.5s ease, max-width 0.5s ease, aspect-ratio 0.5s ease;
}

/* ── Dirección HORIZONTAL (16:9) ─────────────────── */
.arch-video-wrapper.direction-horizontal {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  transition: box-shadow 0.5s ease, max-width 0.5s ease, aspect-ratio 0.5s ease;
}

/* ── Animación de giro: fase SALIDA (girar a 90°, plano) ── */
.arch-video-wrapper.rotating-out {
  animation: rotateOut3D 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* ── Animación de giro: fase ENTRADA (desde 90° a 0°) ── */
.arch-video-wrapper.rotating-in {
  animation: rotateIn3D 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes rotateOut3D {
  0%   { transform: rotateY(0deg);   opacity: 1; }
  100% { transform: rotateY(90deg);  opacity: 0; }
}

@keyframes rotateIn3D {
  0%   { transform: rotateY(-90deg); opacity: 0; }
  100% { transform: rotateY(0deg);   opacity: 1; }
}

.arch-video-wrapper:hover {
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
}

.arch-video-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
}

.arch-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  object-fit: cover;
  /* Cubre todo el contenedor */
}

/* Botón de sonido */
.video-sound-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.video-sound-btn:hover {
  background: #fe7f00;
  transform: scale(1.1);
}

.video-sound-btn i {
  pointer-events: none;
}

/* Overlay de reproducción */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  border-radius: 24px;
}

.video-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(254, 127, 0, 0.9);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(254, 127, 0, 0.5);
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: #fe7f00;
}


/* ── Etiqueta de título del video ─────────────────── */
.arch-video-label {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.arch-video-wrapper:hover .arch-video-label,
.arch-video-label:not(:empty) {
  opacity: 1;
}

/* ── Fallback: sin videos ─────────────────────────── */
.arch-video-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(135deg, #040253 0%, #0a0a4a 100%);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease-out;
}

.arch-video-fallback i {
  font-size: 3.5rem;
  color: #fe7f00;
  opacity: 0.8;
  animation: pulseFallback 2.5s ease-in-out infinite;
}

.arch-video-fallback p {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

@keyframes pulseFallback {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%       { transform: scale(1.1); opacity: 1;   }
}

/* ── Botón "Cargar siguiente" ─────────────────────── */
/* ── Contenedor de botones de navegación (anterior / siguiente) ── */
.arch-nav-btn-wrap {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  animation: fadeInUp 0.4s ease-out;
}

/* ── Botón base compartido ─────────────────────────────────────── */
.arch-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  border-radius: 50px;
  padding: 11px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.arch-nav-btn i,
.arch-nav-btn span {
  position: relative;
  z-index: 1;
}

.arch-nav-btn i {
  font-size: 0.78rem;
}

/* ── Ver anterior: estilo secundario (azul oscuro + borde) ─────── */
.arch-prev-btn {
  background: transparent;
  color: #040253;
  border: 2px solid #040253;
  box-shadow: 0 4px 14px rgba(4, 2, 83, 0.15);
}

.arch-prev-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #040253;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.arch-prev-btn:hover::before {
  opacity: 1;
}

.arch-prev-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(4, 2, 83, 0.25);
}

/* ── Cargar siguiente: estilo primario (azul sólido → naranja) ─── */
.arch-next-btn {
  background: linear-gradient(135deg, #040253, #0d1b8e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(4, 2, 83, 0.35);
}

.arch-next-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fe7f00, #ff9a3c);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.arch-next-btn:hover::before {
  opacity: 1;
}

.arch-next-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(254, 127, 0, 0.35);
}

/* Animación suave del ícono de siguiente */
.arch-next-btn i {
  animation: pulsePlay 1.4s ease-in-out infinite;
}

@keyframes pulsePlay {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.25); }
}

/* ANIMACIONES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .arquitectura-inspira-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .arquitectura-title {
    font-size: 2.3rem;
  }

  .arquitectura-inspira-section {
    padding: 70px 0;
  }

  .arch-video-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .arquitectura-title {
    font-size: 1.8rem;
  }

  .arquitectura-inspira-section {
    padding: 50px 0;
  }

  .arch-feature {
    gap: 12px;
  }

  .arch-feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .btn-arch-primary {
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .video-sound-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    bottom: 10px;
    right: 10px;
  }

  .video-play-btn {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
}


/* --- Ajustes en Features Section (Servicios) --- */
.features-grid,
.steps-grid {
  display: grid;
  /* Forzamos 4 columnas de igual tamaño */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 40px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Para que todas midan lo mismo */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.feature-img {
  width: 100%;
  height: 160px;
  /* Altura fija para la imagen */
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card:hover .feature-img img {
  transform: scale(1.1);
}

.feature-content {
  padding: 20px;
  flex-grow: 1;
  /* El texto ocupa el resto del espacio */
}

.feature-content h3 {
  color: var(--secondary) !important;
  /* Resaltamos títulos con naranja AIA */
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* --- Ajustes en Steps Section (Pasos) --- */
.step-card {
  position: relative;
  height: 280px;
  /* Altura fija para que la fila se vea uniforme */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 2, 83, 0.75);
  /* Overlay azul AIA */
  z-index: 1;
}

.step-content {
  position: relative;
  z-index: 2;
}

.step-card:hover::before {
  background: rgba(254, 127, 0, 0.7);
  /* Cambio a naranja en hover */
}

.step-number {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.step-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.step-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   CARRUSEL 3D CINEMATICO DE PROYECTOS (inicio)
   Fondo azul conservado. Slide central grande y claro,
   laterales oscuros con sombra - igual que la imagen referencia.
   Transicion continua (loop) en ambas direcciones.
   ============================================ */

.portfolio-section {
  padding: 20px;
  overflow: hidden;
}

/* ---- Stage / escenario ---- */
.pf-stage {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

/* ---- Track: contenedor de slides ---- */
.pf-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Cada slide ---- */
.pf-slide {
  position: absolute;
  width: 54%;
  max-width: 740px;
  height: 430px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.65s ease,
    filter 0.65s ease,
    box-shadow 0.65s ease;
  will-change: transform, opacity, filter;
}

/* Imagen del slide */
.pf-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  pointer-events: none;
}

.pf-slide:hover img {
  transform: scale(1.03);
}

/* ---- Cuadro de informacion del proyecto (lado izquierdo sobre imagen central) ---- */
.pf-info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 260px;
  background: rgba(10, 10, 35, 0.88);
  backdrop-filter: blur(6px);
  padding: 22px 24px 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 5;
}

.pf-slide.is-active .pf-info-box {
  opacity: 1;
  transform: translateY(0);
}

.pf-info-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pf-info-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.pf-info-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
}

.pf-info-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fe7f00;
  text-transform: uppercase;
}

.pf-info-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.25;
  text-transform: uppercase;
}

.pf-info-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-info-client {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pf-info-client i {
  color: #fe7f00;
  font-size: 0.65rem;
}

/* ---- Lupa / link en esquina inferior derecha ---- */
.pf-lupa {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: #fe7f00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 10;
  text-decoration: none;
}

.pf-slide.is-active .pf-lupa {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.pf-lupa:hover {
  background: #e06900;
}

/* ---- ESTADOS POSICIONALES ---- */

/* Centro: grande, claro, al frente */
.pf-slide.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  filter: none;
  z-index: 10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Inmediatos laterales: mas pequenos, oscuros */
.pf-slide.is-prev {
  transform: translateX(-66%) scale(0.72);
  opacity: 0.58;
  filter: brightness(0.42) blur(1px);
  z-index: 5;
}

.pf-slide.is-next {
  transform: translateX(66%) scale(0.72);
  opacity: 0.58;
  filter: brightness(0.42) blur(1px);
  z-index: 5;
}

/* Segundo nivel lateral: muy oscuros */
.pf-slide.is-prev2 {
  transform: translateX(-104%) scale(0.52);
  opacity: 0.2;
  filter: brightness(0.25) blur(2px);
  z-index: 2;
}

.pf-slide.is-next2 {
  transform: translateX(104%) scale(0.52);
  opacity: 0.2;
  filter: brightness(0.25) blur(2px);
  z-index: 2;
}

/* Resto oculto */
.pf-slide.is-hidden {
  transform: translateX(0) scale(0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* ---- Loading state ---- */
.pf-slide.pf-loading {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54%;
  transform: none;
  opacity: 1;
  filter: none;
  z-index: 10;
  position: relative;
}

.pf-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}

.pf-loading-inner i {
  font-size: 2rem;
  color: #fe7f00;
}

/* ---- Botones de navegacion ---- */
.pf-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  z-index: 20;
}

.pf-btn:hover {
  background: #fe7f00;
  border-color: #fe7f00;
  transform: translateY(-50%) scale(1.08);
}

.pf-btn-prev {
  left: 28px;
}

.pf-btn-next {
  right: 28px;
}

/* ---- Dots indicadores ---- */
.pf-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.pf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.pf-dot.is-active,
.pf-dot:hover {
  background: #fe7f00;
  transform: scale(1.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
  .pf-stage {
    height: 440px;
  }

  .pf-slide {
    width: 66%;
    height: 350px;
  }

  .pf-slide.is-prev {
    transform: translateX(-72%) scale(0.68);
  }

  .pf-slide.is-next {
    transform: translateX(72%) scale(0.68);
  }

  .pf-slide.is-prev2 {
    transform: translateX(-112%) scale(0.48);
  }

  .pf-slide.is-next2 {
    transform: translateX(112%) scale(0.48);
  }

  .pf-slide.pf-loading {
    width: 66%;
  }

  .pf-info-box {
    width: 220px;
    padding: 16px 18px;
  }
}

@media (max-width: 640px) {
  .pf-stage {
    height: 340px;
  }

  .pf-slide {
    width: 82%;
    height: 270px;
  }

  .pf-slide.is-prev {
    transform: translateX(-86%) scale(0.62);
  }

  .pf-slide.is-next {
    transform: translateX(86%) scale(0.62);
  }

  .pf-slide.is-prev2,
  .pf-slide.is-next2 {
    opacity: 0;
  }

  .pf-btn-prev {
    left: 6px;
  }

  .pf-btn-next {
    right: 6px;
  }

  .pf-slide.pf-loading {
    width: 82%;
  }

  .pf-info-box {
    width: 180px;
    padding: 12px 14px;
  }

  .pf-info-box h3 {
    font-size: 1rem;
  }
}


/* --- SECCIÓN EQUIPO GRID 4 --- */
.equipo-inicio-new {
  padding: 80px 0;
  background-color: var(--primary-dark);
}

/* Título estilo noticias */
.equipo-header-center {
  text-align: center;
  margin-bottom: 50px;
}

.equipo-header-center h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.equipo-header-center h2 span {
  color: var(--secondary);
}

.linea-decorativa {
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 15px auto;
}

/* Grid de 4 columnas */
.equipo-grid-cuatro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card-profesional {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: center;
}

/* Cuadro perfecto (Square) */
.card-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hover Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 2, 83, 0.85);
  /* Azul AIA */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-ver-mas-team {
  background: var(--secondary);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-profesional:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.card-profesional:hover .card-overlay {
  opacity: 1;
}

.card-profesional:hover .card-img-box img {
  transform: scale(1.1);
}

/* Información y Redes */
.card-body-team {
  padding: 20px;
}

.card-body-team h4 {
  color: white;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.card-body-team p {
  color: var(--secondary);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.social-team {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-team a {
  color: white;
  opacity: 0.7;
  font-size: 1.1rem;
  transition: 0.3s;
}

.social-team a:hover {
  color: var(--secondary);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .equipo-grid-cuatro {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .equipo-grid-cuatro {
    grid-template-columns: 1fr;
  }
}


/* Responsive */
@media (max-width: 992px) {
  .header-columns {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .column-70 {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .portfolio-item img {
    height: 300px;
  }
}

/* Sección Evento Especial - Estilo Compacto Mejorado */
.evento-especial-section {
  padding: 12px 0;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  margin-top: 95px;
  /* Altura del navbar */
  overflow: hidden;
}

.evento-mini-line1 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 2px;
  display: block;
}

.evento-mini-line2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
  padding: 0 15px;
}

.evento-mini-line2 h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.evento-mini-btn {
  padding: 5px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.evento-mini-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  filter: brightness(1.1);
}

.evento-mini-line3 {
  height: 22px;
  overflow: hidden;
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.evento-mini-description {
  display: inline-block;
  white-space: nowrap;
  padding-left: 50%;

  animation: marquee-text 60s linear infinite;

  font-size: 0.85rem;
  font-weight: 500;
}

@keyframes marquee-text {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

@media (max-width: 768px) {
  .evento-mini-line2 {
    flex-direction: column;
    gap: 10px;
  }

  .evento-mini-line2 h3 {
    font-size: 1.2rem;
  }

  .evento-especial-section {
    margin-top: 85px;
  }
}


@media (max-width: 768px) {
  .evento-mini-line2 {
    flex-direction: column;
    gap: 10px;
  }

  .evento-mini-line2 h3 {
    font-size: 1.2rem;
  }
}


/* Sección de Noticias */
.noticias-section {
  padding: 20px 0;
  background: var(--primary);
  /* Azul oscuro como proyectos */
  color: #ffffff;
}

.noticias-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.noticias-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.noticias-header.animate {
  opacity: 1;
  transform: translateY(0);
}

.noticias-header h6 {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.noticias-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.noticias-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
}

.noticias-grid.animate {
  opacity: 1;
  transform: translateY(0);
}

.noticia-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.noticia-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.noticia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-image img {
  transform: scale(1.05);
}

.noticia-content {
  padding: 24px;
}

.noticia-date {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.noticia-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.noticia-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 16px;
}

.noticia-link {
  color: var(--secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.noticia-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .noticias-section {
    padding: 60px 0;
  }

  .noticias-header h2 {
    font-size: 2rem;
  }

  .noticias-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .noticia-card {
    margin: 0 10px;
  }
}

@media (max-width: 992px) {

  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 filas de 2 en tablets */
  }
}

@media (max-width: 576px) {

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    /* 1 columna en móviles */
  }
}