/* =========================================
   VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
  --color-primario: #cb2390;
  --color-secundario: #475a8b;
  --color-fondo-claro: #fafafa;
  --color-fondo-somos: #faecfa;
  --color-texto-oscuro: #3f3f3f;
  --color-texto-gris: #5f5f5f;
  --color-texto-parrafo: #6d6e71;

  --font-barlow: "Barlow", sans-serif;
  --font-size-base: 16px;
  --transition-speed: 0.3s;
}

@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-fondo-claro);
  font-family: var(--font-barlow);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-barlow);
  font-weight: 700;
  color: var(--color-texto-oscuro);
  text-align: center;
}

button,
input,
select,
textarea {
  font-family: var(--font-barlow);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: #414042;
}

p {
  color: var(--color-texto-parrafo);
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: 400;
}

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

/* Base Fade In Animation Class (Transition based) */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes for CSS Animations */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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


/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background-color: #fff !important;
  padding: 0.5rem 2rem;
  /* Reduced padding */
  z-index: 1000;
}

.navbar-brand img {
  height: 50px;
  /* Reduced from 80px */
  width: auto;
  transition: transform var(--transition-speed);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--color-texto-gris) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-primario);
  transition: all var(--transition-speed) ease-in-out;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--color-primario) !important;
}


/* =========================================
   HERO / CARRUSEL
   ========================================= */
.seccion_carrusel {
  padding: 0;
  width: 100%;
}

.hero-video-slide {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}



.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Deep Tech Gradient - SUBTLE Version */
  /* Reduced opacity: 0.9->0.5, 0.7->0.3, 0.2->0.1 */
  background: linear-gradient(90deg, rgba(5, 12, 30, 0.6) 0%, rgba(10, 24, 60, 0.4) 40%, rgba(203, 35, 144, 0.1) 100%);
  z-index: 2;
}

.hero-overlay-ultra-light {
  /* Almost transparent, just a tiny hint for text contrast */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0) 100%) !important;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  /* Left aligned */
  transform: translateY(-50%);
  /* Only vertical center */
  z-index: 3;
  color: #fff;
  width: 85%;
  max-width: 800px;
  text-align: left;
  /* Alignment left */

  /* Tech Accent Border */
  border-left: 6px solid #00f260;
  /* Neon Green Accent */
  padding-left: 30px;
}

/* Dynamic Border Color per Slide */
.carousel-item:nth-of-type(1) .hero-content {
  border-left-color: #ff00cc;
}

.carousel-item:nth-of-type(2) .hero-content {
  border-left-color: #00acc1;
}

.carousel-item:nth-of-type(3) .hero-content {
  border-left-color: #e91e63;
}

.hero-content h1 {
  font-size: 5rem;
  /* Massive */
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
  letter-spacing: -1px;
  text-align: left;
  /* Explicitly left aligned */
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 400;
  color: #e0e0e0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  max-width: 600px;
  margin: 0 0 30px 0;
  /* Left align margin */
  text-align: left;
}

/* CTA Button Styling */
.btn-hero {
  display: inline-block;
  padding: 16px 40px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background: var(--color-primario);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(203, 35, 144, 0.4);
}





/* =========================================
   SECCION INFO (NUESTROS SERVICIOS) - UPDATED
   ========================================= */
.seccion_info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 5%;
  padding: 60px 20px;
  background-color: #fafafa;
  /* Slightly grey background often looks better with white cards */
}

.seccion_info .titulo_info {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  /* Darker title */
  margin-bottom: 60px;
  text-align: center;
}

.industrias {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
}

/* Card Container */
.industria-card {
  flex: 1;
  min-width: 300px;
  /* Wider cards */
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 30px;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* Subtle border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  animation: fade-in-up 0.8s ease-out forwards;
}

/* Animation Delays */
.industria-card:nth-child(1) {
  animation-delay: 0.2s;
}

.industria-card:nth-child(2) {
  animation-delay: 0.4s;
}

.industria-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* Hover Effect */
.industria-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

/* Icon Container (Blue Circle) */
.icon-circle {
  width: 90px;
  height: 90px;
  background-color: #e3f2fd;
  /* Light Blue */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  transition: transform 0.4s ease;
}

.industria-card:hover .icon-circle {
  transform: scale(1.1);
  background-color: #bbdefb;
  /* Slightly darker on hover */
}

/* Icons */
.icon_service {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: hue-rotate(200deg) brightness(1.2);
  /* Attempt to shift existing icons to blueish if they aren't already, or just leave as is. Since existing icons are likely colorful/dark, providing a tint might help or just let them be. Let's try a filter to make them blue-ish if possible, specifically filter: invert(33%) sepia(85%) saturate(3065%) hue-rotate(202deg) brightness(101%) contrast(106%); matches a specific blue. But simpler is just hue-rotate if they are colored. Let's assume standard svg/png. */
  /* For now, just ensuring size. If they are black/white pngs, we might need filter to colorize them blue. */
  /* If original icons are colored, this filter might make them weird. Let's try to just size them first. */
  transition: all 0.3s ease;
}


/* Titles */
.titulo_service {
  margin-bottom: 16px;
  color: #333;
  /* Dark Grey/Black */
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

/* Texts */
.texto_service {
  color: #666;
  /* Grey text */
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 300px;
  /* limit width for readability */
}




/* =========================================
   HOME: SERVICES GRID (Numbered Colorful Cards)
   ========================================= */
.seccion_servicios_grid {
  padding: 100px 20px;
  background-color: #f4f4f4;
  /* Subtle background to make white cards pop */
  text-align: center;
}

.services-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Variants Colors */
.service-card.variant-1 {
  --card-color: #7b1fa2;
}

/* Purple */
.service-card.variant-2 {
  --card-color: #00acc1;
}

/* Cyan */
.service-card.variant-3 {
  --card-color: #ff5722;
}

/* Deep Orange */
.service-card.variant-4 {
  --card-color: #2979ff;
}

/* Blue */
.service-card.variant-5 {
  --card-color: #e91e63;
}

/* Pink */

.service-card {
  background-color: #fff;
  border: 2px solid var(--card-color);
  border-radius: 4px;
  /* Slightly squared for modern grid look */
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  min-height: 280px;
  /* Ensure uniform height perception */
  cursor: default;
}

.service-card:hover {
  background-color: var(--card-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card .card-number {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--card-color);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: left;
  transition: color 0.3s ease;
}

.service-card p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.6;
  text-align: left;
  transition: color 0.3s ease;
}

/* Hover States for Children */
.service-card:hover .card-number,
.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}

/* Special handling for the 5th item to center it if it's alone on the last row */
/* Special handling for the 5th item to center it if it's alone on the last row */
/* .services-grid-container .service-card:last-child:nth-child(odd) {
     This works if total is odd (5) and cols are 2, but grid-template takes care of wrapping. 
     Manual centering usually requires knowing items per row. 
     We'll leave it to natural grid flow for now. 
} */


/* =========================================
   SECCION SOMOS POPIT (Modernized)
   ========================================= */
.somos_popit {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fdfbfd 0%, #f4eff4 100%);
  margin-top: 80px;
  padding: 100px 0;
  gap: 80px;
  position: relative;
  overflow: hidden;
}

.somos_popit::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: rgba(203, 35, 144, 0.05);
  border-radius: 50%;
  z-index: 0;
  animation: pulseBlob 10s infinite alternate;
  /* Breathing background */
}

/* Keyframes for new animations */
@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

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

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

@keyframes pulseBlob {
  0% {
    transform: scale(1);
    opacity: 0.05;
  }

  100% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}

.textos_somos_popit {
  flex: 1;
  max-width: 550px;
  padding: 0 40px;
  text-align: left;
  z-index: 1;
}

.textos_somos_popit h2 {
  text-align: left;
  font-size: 3rem;
  font-weight: 800;
  background: -webkit-linear-gradient(45deg, var(--color-texto-gris), var(--color-primario));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.textos_somos_popit h3 {
  text-align: left;
  font-size: 1.5rem;
  color: var(--color-primario);
  margin-bottom: 30px;
  font-weight: 500;
  line-height: 1.4;
}

.textos_somos_popit p {
  text-align: left;
  font-size: 1.15rem;
  color: var(--color-texto-parrafo);
  line-height: 1.8;
}

.imagen_somos {
  flex: 1;
  max-width: 550px;
  height: auto;
  /* Removed border-radius and box-shadow for cleaner look */
  /* border-radius: 20px; */
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); */
  z-index: 1;
  transition: transform 0.1s linear;
  mix-blend-mode: multiply;
  /* Make white background transparent */
}




/* =========================================
   CONTACT PAGE (Glassmorphism)
   ========================================= */
.formulario-contacto {
  position: relative;
  /* Vivid mesh gradient background - Modified to be less pink, more logo based (Blue/Neutral) */
  background: radial-gradient(circle at 10% 20%, #eff6ff 0%, #fafafa 90%);
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Decorative blobs spread around */
.formulario-contacto::before,
.formulario-contacto::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  /* Balanced Blue -> Pink gradient */
  background: linear-gradient(45deg, var(--color-secundario), var(--color-primario));
  opacity: 0.1;
  z-index: 0;
  animation: floatBlobs 20s infinite alternate ease-in-out;
}

.formulario-contacto::before {
  bottom: -100px;
  left: -100px;
}

.formulario-contacto::after {
  top: -100px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes floatBlobs {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(50px, 50px) scale(1.1);
  }
}

.titulo-contacto {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-secundario);
  /* Changed to Blue */
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.subtitulo-contacto {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 60px;
  color: var(--color-texto-parrafo);
  position: relative;
  z-index: 1;
}

.formulario-1 {
  /* Glass Effect */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);

  padding: 60px 50px;
  border-radius: 30px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
  /* Deep soft shadow */
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 10;
}

.formulario-1:hover {
  transform: translateY(-5px);
}

.formulario-1 label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-secundario);
  margin-bottom: 10px;
  margin-left: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.formulario-1 input,
.formulario-1 textarea {
  width: 100%;
  padding: 20px 25px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* Semi-transparent border */
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  font-family: var(--font-barlow);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.formulario-1 input:focus,
.formulario-1 textarea:focus {
  border-color: var(--color-primario);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(203, 35, 144, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: scale(1.01);
}

.submit-button {
  margin-top: 10px;
  padding: 18px;
  /* Blue to Pink Gradient */
  background: linear-gradient(45deg, var(--color-secundario), var(--color-primario));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(203, 35, 144, 0.3);
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(203, 35, 144, 0.4);
}


/* =========================================
   PARTNERS (Paginated Grid)
   ========================================= */
.seccion_partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background-color: #fff;
}

.titulo_partner {
  font-size: 2.5rem;
  color: var(--color-primario);
  margin-bottom: 60px;
}

#partnersCarousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
  /* Space for indicators */
}

/* The Grid inside each Slide */
/* The Grid inside each Slide - Changed to Flex for better centering of 7 items */
.partners-grid-slide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  /* grid-template-columns: repeat(4, 1fr);  Removed */
  /* grid-auto-rows: 150px; Removed */
}

/* Individual Cell */
.partner-cell {
  background-color: transparent;
  /* Removed background */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Borders removed */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Approx 4 items per row accounting for gap */
  flex: 0 0 22%;
  height: 150px;
}

.partner-cell img {
  max-width: 70%;
  max-height: 60px;
  /* Grayscale removed for full color */
  /* filter: grayscale(100%); */
  opacity: 1;
  /* Full opacity */
  transition: all 0.4s ease;
  object-fit: contain;
}

/* Hover Effects */
.partner-cell:hover {
  background-color: transparent;
  /* No background on hover */
  box-shadow: none;
  /* No shadow */
  z-index: 1;
  /* Bring above borders */
  border-color: transparent;
  /* Seamless shadow look */
}

.partner-cell:hover img {
  transform: scale(1.4);
  /* Increased zoom */
}

/* Carousel Indicators (Dots) */
.partners-indicators {
  bottom: -20px;
}

.partners-indicators [data-bs-target] {
  background-color: #ccc;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  border: none;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.partners-indicators .active {
  background-color: var(--color-primario);
  transform: scale(1.2);
  opacity: 1;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .partners-grid-slide {
    grid-template-columns: repeat(2, 1fr);
    /* 2 Cols on Mobile */
  }
}


/* =========================================
   FOOTER REDESIGN (Reference Style)
   ========================================= */

.footer-wrapper {
  background-color: #f8f9fa;
  /* Light bg behind the overlapping card */
  padding-top: 60px;
  position: relative;
}

/* Floating Subscribe Card */
.subscribe-card {
  background-color: #fff;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* Soft float shadow */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  transform: translateY(50%);
  /* Overlap effect downwards */
  margin-bottom: 80px;
}

.subscribe-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  margin: 0;
}

/* =========================================
   NOSOTROS PAGE (Modern Redesign)
   ========================================= */

/* Hero Minimalist */
.nosotros-hero {
  position: relative;
  min-height: 600px;
  /* Increased from 500px */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  background-image: url('../recursos/banner nosotros.png');
  background-size: cover;
  background-position: top;
  color: #333;
  padding: 0 20px;
  margin-bottom: 60px;
  /* Added spacing to next section */
}

.nosotros-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.nosotros-hero .container {
  position: relative;
  z-index: 2;
}

.nosotros-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  background: -webkit-linear-gradient(45deg, var(--color-secundario), var(--color-primario));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback for text shadow if gradient fails, but gradient usually overrides color */
  text-shadow: none;
}

/* Fix for Nosotros page image (avoid stretching + hover effect) */
.img-fix-nosotros {
  width: 100%;
  height: 400px;
  /* Consistent height */
  object-fit: cover;
  /* Ensures no stretching */
  border-radius: 20px;
  /* Matching existing radius */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.img-fix-nosotros:hover {
  transform: scale(1.02);
  /* Subtle zoom */
  box-shadow: 0 20px 40px rgba(203, 35, 144, 0.2) !important;
  /* Glow effect */
}

.nosotros-hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  color: #444;
  text-shadow: none;
  font-weight: 500;
}

/* Content Blocks (Zig-Zag) */
.content-block {
  padding: 100px 0;
  position: relative;
}

.bg-white {
  background-color: #fff;
}

.badge-custom {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(203, 35, 144, 0.1);
  color: var(--color-primario);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.text-wrapper h2 {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

.text-wrapper p {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--color-texto-parrafo);
}

/* Images with shadow */
.rounded-custom {
  border-radius: 24px;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

/* Values Grid */
.values-section {
  padding: 100px 0;
  background-color: var(--color-fondo-somos);
  /* Light hints */
}

.value-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.icon-box {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-texto-oscuro);
}

.value-card p {
  font-size: 1rem;
  margin: 0;
}

.max-w-600 {
  max-width: 600px;
}

.subscribe-title {
  margin-right: 20px;
}

.subscribe-form {
  display: flex;
  gap: 15px;
  flex: 1;
  max-width: 500px;
  justify-content: flex-end;
}

.subscribe-form input {
  padding: 12px 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
  font-size: 0.95rem;
}

.subscribe-form button {
  background-color: #007bff;
  /* Reference Blue */
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.subscribe-form button:hover {
  background-color: #0056b3;
}

/* Main Footer Area */
footer {
  background-color: #fff;
  padding-top: 100px;
  /* Space for the subscribe card overlap */
  padding-bottom: 40px;
  position: relative;
  border-top: none;
  /* Removed the previous colored border */
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-nav a {
  color: #555;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #007bff;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials img {
  width: 48px;
  height: 48px;
  opacity: 0.8;
  filter: none;
  /* Ensure color or standard black/white */
  transition: transform 0.2s;
}

.footer-socials img:hover {
  transform: scale(1.1);
  opacity: 1;
}

.footer-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 0 0 30px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright,
.legal-links a {
  color: #999;
  font-size: 0.9rem;
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 20px;
}

/* Logo Sizing */
.navbar-brand img {
  height: 80px;
  /* Increased significantly to be "visible" */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
  /* Subtle pop on hover */
}

.footer-logo img {
  height: 80px;
  /* Slightly larger in footer */
  width: auto;
  object-fit: contain;
}

/* =========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================= */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .partners-grid-slide {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-video-slide {
    height: 75vh;
  }

  .somos_popit {
    flex-direction: column-reverse;
    padding: 40px 20px;
  }

  .textos_somos_popit {
    padding: 0;
    text-align: center;
  }

  /* Footer Mobile */
  .subscribe-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .subscribe-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-form input {
    max-width: 100%;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }

  .footer-logo {
    order: -1;
    margin-bottom: 20px;
  }

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .partners-grid-slide {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   STRATEGIC PARTNERS SECTION (New)
   ========================================= */
.strategic-partners-section {
  padding: 80px 0;
  background: white;
  /* Clean background to separate from footer */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Optional: Subtle tech background pattern or gradient strip */
.strategic-partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(203, 35, 144, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.partners-title {
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.partners-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primario);
  margin: 15px auto 0;
  border-radius: 2px;
}

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

/* Special "Floating" Cards for these partners */
.special-partner-card {
  width: 180px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Soft shadow */
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 15px;
  cursor: pointer;
}

.special-partner-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: grayscale(100%) opacity(0.7);
  /* Muted by default */
}

/* Hover Effects - "Innovation" glow */
.special-partner-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(71, 90, 139, 0.2);
  /* Blueish glow matching branding */
  border-color: rgba(71, 90, 139, 0.1);
}

.special-partner-card:hover img {
  filter: grayscale(0%) opacity(1);
  /* Full color on hover */
  transform: scale(1.1);
}