/* ===================================
   BENTO BOX SECTION
   =================================== */
.bento-section {
  padding: var(--spacing-xl) 0;
  /* background: var(--white); */
  background:
    linear-gradient(
      90deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.95) 40%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("bg-sol.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .bento-section {
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 350px;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.bento-item {
  background: linear-gradient(145deg, var(--white), #f8faff);
  border: 1px solid rgba(18, 65, 133, 0.08);
  /* Glass-like subtle border similar to brand color */
  border-radius: 5px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* More dynamic transition */
  display: flex;
  flex-direction: column;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.02),
    0 10px 15px -3px rgba(18, 65, 133, 0.03);
  /* Subtle corporate ambient shadow */
}

.bento-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-deep), var(--blue-accent));
  opacity: 0;
  /* Hidden by default for cleaner look */
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.bento-item:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.bento-item:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 144, 226, 0.3);
  box-shadow:
    0 20px 25px -5px rgba(18, 65, 133, 0.08),
    0 8px 10px -6px rgba(18, 65, 133, 0.05);
  /* Deep enriched shadow on hover */
  background: linear-gradient(145deg, #ffffff, #ffffff);
  /* Brighten on hover */
}

/* Bento Grid Sizes */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-full {
  grid-column: span 4;
  grid-row: span 1;
}

/* Bento Content */
.bento-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.bento-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-icon img {
  width: 100%;
  height: 100%;
  /* animacion para que roten 3d siempre de manera lenta */
  animation: rotate3d 5s linear infinite;
}

@keyframes rotate3d {
  0% {
    transform: rotateY(0)
  }
  100% {
    transform: rotateY(360deg)
  }
}

.bento-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0;
  margin-top: 0.5rem;
  /* Optical alignment */
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.bento-item p {
  color: var(--slate-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.bento-features {
  list-style: none;
  /* margin-top: auto; */
  padding-top: 0.75rem;
}

.bento-features li {
  color: var(--slate-light);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.4;
}

.bento-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-accent);
  font-weight: 700;
}

/* Visual filler for tall cards to avoid hard white gaps */
.bento-item.bento-tall .bento-design-filler {
  /* margin-top: auto; */
  position: relative;
  height: 100%;
  opacity: 0.65;
  background: radial-gradient(
    circle at center,
    rgba(55, 120, 219, 0.22) 0%,
    rgba(18, 65, 133, 0.16) 0%,
    rgba(55, 120, 219, 0.08) 25%,
    rgba(18, 65, 133, 0) 50%
  );
  transition: opacity 0.4s ease;
}

.bento-item.bento-tall .bento-design-filler::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(18, 65, 133, 0) 0%,
    rgba(18, 65, 133, 0.14) 50%,
    rgba(18, 65, 133, 0) 100%
  );
}

.bento-item.bento-tall .bento-design-filler::after {
  content: "";
  position: absolute;
  inset: -8px 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.bento-item.bento-tall:hover .bento-design-filler {
  opacity: 0.0;
  background: radial-gradient(
    circle at center,
    rgba(55, 120, 219, 0.22) 0%,
    rgba(18, 65, 133, 0.16) 0%,
    rgba(55, 120, 219, 0.08) 25%,
    rgba(18, 65, 133, 0) 50%
  );
}

/* ===================================
   STRATEGIC PARTNERS SECTION
   =================================== */
.corporate-slider {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--navy-deep) 0%,
    var(--blue-accent) 100%
  );
  overflow: hidden;
  position: relative;
}

.corporate-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.corporate-slider .section-title {
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.corporate-slider .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Partner Card */
.partner-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Top accent line (hidden, appears on hover — same pattern as bento cards) */
.partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a961, #e0c885);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.partner-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(55, 120, 219, 0.1);
}

.partner-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Partner Logo */
.partner-logo-wrapper {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.partner-logo-wrapper img {
  max-width: 160px;
  max-height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.partner-card:hover .partner-logo-wrapper img {
  filter: none;
  opacity: 1;
}

/* Partner Text */
.partner-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.partner-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .corporate-slider {
    padding: 3.5rem 0;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ===================================
   UNIQUE STYLING UPDATES
   =================================== */

/* Diagonal accent lines */
.services::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(18, 65, 133, 0.03) 100%
  );
  border-radius: 50%;
  pointer-events: none;
}

.services {
  position: relative;
}

/* Enhanced section transitions */
section {
  position: relative;
}

/* Unique card hover effects */
.service-card,
.bento-item {
  cursor: pointer;
}

.service-card:hover .service-icon-wrapper svg,
.bento-item:hover .bento-icon {
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Subtle background patterns */
/* .bento-section {
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(18, 65, 133, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(74, 144, 226, 0.02) 0%,
      transparent 50%
    );
} */

/* Enhanced typography hierarchy */
.section-title {
  position: relative;
  display: inline-block;
}

/* Subtle Section Transitions */
section {
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(18, 65, 133, 0.02) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Remove transition from last section and specific sections */
.contact::after,
.footer::after,
.corporate-slider::after {
  display: none;
}

/* Diagonal accent separator */
.services::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gray-200) 50%,
    transparent 100%
  );
  opacity: 0.5;
}

.bento-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gray-200) 50%,
    transparent 100%
  );
  opacity: 0.6;
}

/* Responsive Bento Grid */
@media (max-width: 968px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 230px;
  }

  .bento-large,
  .bento-wide,
  .bento-full {
    grid-column: span 2;
  }

  .bento-medium,
  .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-item.bento-tall .bento-design-filler {
    display: none;
  }

  .bento-large,
  .bento-medium,
  .bento-wide,
  .bento-tall,
  .bento-full {
    grid-column: span 1;
    grid-row: span 1;
  }

  .slider-item {
    width: 200px;
    /* Smallen for mobile */
    height: 100px;
  }

  @keyframes slideInfinite {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-200px * 4 - 2rem * 4));
    }
  }
}

/* ===================================
   STRATEGIC BRIDGE SECTION
   =================================== */
.strategic-bridge {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
}

.strategic-bridge .section-subtitle {
  color: var(--slate-gray);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 4rem;
}

.methodology-process {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Connecting Line */
.process-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gray-200) 20%,
    var(--gray-200) 80%,
    transparent 100%
  );
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(18, 65, 133, 0.08);
  transition: var(--transition-smooth);
}

.process-step:hover .process-icon {
  border-color: var(--blue-accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(18, 65, 133, 0.15);
  color: var(--blue-accent);
}

.process-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
}

.process-desc {
  font-size: 0.95rem;
  color: var(--slate-gray);
  line-height: 1.5;
  max-width: 250px;
}

/* Responsive Bridge */
@media (max-width: 768px) {
  .methodology-process {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }

  .process-line {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      transparent 0%,
      var(--gray-200) 10%,
      var(--gray-200) 90%,
      transparent 100%
    );
  }

  .process-desc {
    max-width: 100%;
  }
}

/* Highlight Text Feature */
.text-highlight {
  color: var(--blue-accent);
  font-weight: 600;
}

/* Featured Item Styling */
.featured-item {
  border: 1px solid rgba(201, 169, 97, 0.4); /* Gold soft border */
  background: linear-gradient(145deg, #ffffff, #fffdf8); /* Warmer tint */
  box-shadow: 0 10px 25px -5px rgba(201, 169, 97, 0.15);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #c9a961, #e0c885);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
}

/* ===================================
   GLOBAL CONNECTIONS MAP
   =================================== */
.global-map-section {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.global-map-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.global-map-section .section-subtitle {
  color: var(--slate-gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.map-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.map-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-grid-line {
  stroke: rgba(18, 65, 133, 0.08);
  stroke-width: 0.6;
  stroke-dasharray: 8 6;
}

/* Continent fills */
.continent-path {
  fill: rgba(18, 65, 133, 0.06);
  stroke: rgba(18, 65, 133, 0.15);
  stroke-width: 0.5;
  transition: fill 0.3s ease;
}

/* Connection lines */
.connection-line {
  fill: none;
  stroke: var(--blue-accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  opacity: 0.5;
  animation: dashFlow 20s linear infinite;
}

@keyframes dashFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -200;
  }
}

/* Location dots */
.map-dot-group {
  cursor: pointer;
}

.map-dot-outer {
  fill: var(--blue-accent);
  opacity: 0.2;
  animation: dotPulse 2.5s ease-in-out infinite;
}

.map-dot-mid {
  fill: var(--blue-accent);
  opacity: 0.35;
  animation: dotPulse 2.5s ease-in-out infinite 0.3s;
}

.map-dot-inner {
  fill: var(--white);
  stroke: var(--blue-accent);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px rgba(55, 120, 219, 0.6));
}

@keyframes dotPulse {
  0%,
  100% {
    r: 8;
    opacity: 0.15;
  }
  50% {
    r: 14;
    opacity: 0.05;
  }
}

/* Location labels */
.map-label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  fill: var(--navy-deep);
  text-anchor: middle;
  pointer-events: none;
}

.map-label-bg {
  fill: var(--white);
  rx: 10;
  ry: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Legend dots at bottom */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-accent);
  box-shadow: 0 0 6px rgba(55, 120, 219, 0.4);
}

.legend-label {
  font-size: 0.85rem;
  color: var(--slate-gray);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .global-map-section {
    padding: 3rem 0 2.5rem;
  }

  .map-label {
    font-size: 9px;
  }

  .map-legend {
    gap: 1rem;
  }

  .legend-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .map-label {
    font-size: 8px;
  }
}
