/* overview.css - Tarjetas interactivas futuristas */

body {
  overflow-x: hidden;
  overflow-y: auto;
}

.site-footer {
  position: relative;
}

.page-template-overview-page .hero-content {
  max-width: 90%;
}

.page-template-overview-page .hero-container {
  margin-bottom: 0px;
}

.overview-cards-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin: 64px auto 0 auto;
  max-width: 1100px;
  width: 100%;
  flex-wrap: wrap;
}

.overview-card {
  background: var(--color-bg-dark);
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(14, 177, 229, 0.10);
  /* --color-cyan */
  width: 320px;
  padding: 3% 2% 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.25s cubic-bezier(.22, .61, .36, 1), filter 0.25s, box-shadow 0.25s;
  border: 1.5px solid transparent;
  color: var(--color-white);
  perspective: 900px;
  will-change: transform, filter;
  overflow: visible;
}

.overview-card.active {
  background: var(--color-bg-gradient);
  box-shadow: 0 4px 24px 0 rgba(25, 246, 250, 0.18);
  /* --color-cyan-light */
  border: 1.5px solid var(--color-cyan);
  z-index: 2;
}

.overview-card-icon {
  background: var(--color-cyan-light);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px 0 rgba(25, 246, 250, 0.18);
}

.overview-card-icon .icon,
.overview-card-icon i {
  font-size: 2.2rem;
  color: #111;
  line-height: 1;
}

.overview-card-title {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.overview-card-dropdown {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  padding: 24px 24px 16px 24px;
  border-radius: 0 0 12px 12px;
  z-index: 10;
  animation: dropdownFadeIn 0.4s;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overview-card.active .overview-card-dropdown {
  display: flex;
}

.close-dropdown {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 20;
}

.close-dropdown:hover {
  opacity: 1;
}

.dropdown-title {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.dropdown-desc {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: left;
  font-weight: 500;
}

.dropdown-divider {
  border: none;
  border-top: 1.5px solid #37d9f2;
  width: 100%;
  margin: 0;
  opacity: 0.4;
}

@media (max-width: 900px) {
  .overview-cards-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .overview-card {
    width: 98vw;
    min-width: unset;
    max-width: 400px;
    padding: 3% 2% 7%;
  }

  .overview-card.is-touch-scaled {
    transform: scale(1.03);
    box-shadow: 0 6px 32px 0 rgba(25, 246, 250, 0.18), 0 2px 16px 0 rgba(14, 177, 229, 0.10);
    transition: transform 0.18s cubic-bezier(.22, .61, .36, 1), box-shadow 0.18s;
    z-index: 2;
  }
}

@media (max-width: 600px) {
  .overview-cards-container {
    gap: 20px;
    margin-top: 24px;
  }

  .overview-card-header {
    flex-direction: column;
    gap: 10px;
    padding: 18px 10px 12px 10px;
  }

  .overview-card-content {
    padding: 0 10px 12px 10px;
  }

  .overview-card-title {
    min-width: unset;
    font-size: 1.1rem;
  }

  .overview-card-desc {
    margin-left: 0;
    font-size: 0.97rem;
  }
}

.overview-global-dropdown {
  display: none;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 0 auto;
  max-width: 1100px;
  width: 100%;
  padding: 32px 48px 24px 48px;
  position: relative;
  z-index: 10;
  animation: dropdownFadeIn 0.4s;
}

@media (min-width: 901px) {
  .overview-global-dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-card .mobile-dropdown {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .overview-global-dropdown {
    display: none !important;
  }

  .overview-card .mobile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    width: 100%;
    padding: 24px 24px 16px 24px;
    position: static;
    z-index: 10;
    animation: dropdownFadeIn 0.4s;
  }
}

/* Ajustes para el botón de cerrar y contenido del panel global */
.overview-global-dropdown .close-dropdown {
  position: absolute;
  top: 18px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 20;
}

.overview-global-dropdown .close-dropdown:hover {
  opacity: 1;
}

#global-dropdown-title {
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

#global-dropdown-desc {
  color: #e6f7ff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: left;
}

#overview-global-dropdown .dropdown-divider {
  border: none;
  border-top: 1.5px solid #37d9f2;
  width: 100%;
  margin: 0;
  opacity: 0.4;
}

@media (max-width: 575px) {
  .overview-cards-row {
    max-width: none;
  }

  .overview-card {
    max-width: unset;
    width: 90%;
  }
}

/* Efecto 3D y luz radial */
.overview-card {
  --glow-x: 50%;
  --glow-y: 50%;
}

.overview-card::before {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(25, 246, 250, 0.18) 0%, rgba(14, 177, 229, 0.10) 60%, transparent 100%);
}

.overview-card.is-3d-hovered {
  z-index: 3;
  filter: brightness(1.08) saturate(1.1);
  transform: scale(1.03) perspective(900px);
}

.overview-card.is-3d-hovered::before {
  opacity: 1;
}

/* Eliminar ripple-effect */
.ripple-effect {
  display: none !important;
}

/* Second Cards Section Styles */
.second-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin: 64px auto 100px auto;
  max-width: 1050px;
  width: 100%;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (max-width:1200px) {
  .second-cards-container {
    max-width: 90%;
  }
}


.second-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: var(--color-dark);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(25, 246, 250, 0.15), 0 2px 8px rgba(14, 177, 229, 0.1);
  padding: 24px 32px;
  gap: 32px;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.second-card:hover {
  box-shadow: 0 6px 24px rgba(25, 246, 250, 0.2), 0 3px 12px rgba(14, 177, 229, 0.15);
  transform: translateY(-2px);
}

.second-card-icon {
  min-width: 64px;
  min-height: 64px;
  width: 64px;
  height: 64px;
  background: var(--color-cyan-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  margin-right: 0;
}

.second-card-icon i {
  font-size: 2.2rem;
  color: #111;
}

.second-card-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.second-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  width: 40%;
}

@media (max-width:768px) {
  .second-card-title {
    font-size: 1.2rem;
  }
}

.second-card-desc {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 500;
  width: 60%;
}

@media (max-width: 1024px) {}

@media (max-width: 767px) {
  .second-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    max-width: 98vw;
  }

  .second-card-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .second-card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .second-card-title {
    width: 100%;
  }

  .second-card-desc {
    width: 100%;
  }
}