
.blurb-boxed-2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: #60cd96;
}

.blurb-boxed-2 {
  position: relative;
  padding: 25px;
  color: #ffffff;
  font-size: 120%;
  height: 100%;
}

.blurb-boxed-2.blurb-boxed-green {
  background: #69d2e7;
}

.blurb-boxed-2.blurb-boxed-orange {
  background: #f98f6f;
}

.blurb-boxed-2.blurb-boxed-red {
  background: #9d87c3;
}

section {
  display: block;
}

/* Estilos para las tarjetas de talleres */
.taller-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-top: 5px solid;
}

.taller-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.taller-card.filosofia {
  border-top-color: #60cd96;
}

.taller-card.soroban {
  border-top-color: #69d2e7;
}

.taller-card.lectura {
  border-top-color: #f98f6f;
}

.taller-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: bold;
}

.taller-card .edad-badge {
  display: inline-block;
  background: #eaf4f0;
  color: #27af7d;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.taller-card .descripcion {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.taller-card .beneficios {
  list-style: none;
  padding: 0;
}

.taller-card .beneficios li {
  color: #555;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.taller-card .beneficios li:before {
  content: "✓";
  color: #27af7d;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.btn-taller {
  background: linear-gradient(45deg, #27af7d, #60cd96);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn-taller:hover {
  background: linear-gradient(45deg, #1e8a63, #4fb882);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Estilos para overlay fullscreen */
.taller-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none !important;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.taller-overlay.active {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overlay-content {
  background: white;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.overlay-header {
  background: linear-gradient(135deg, #27af7d, #60cd96);
  color: white;
  padding: 30px;
  border-radius: 15px 15px 0 0;
  position: relative;
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.overlay-close:hover {
  color: #f1f1f1;
  transform: scale(1.1);
}

.overlay-body {
  padding: 40px;
  line-height: 1.8;
}

.overlay-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.overlay-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.highlight-box {
  background: #f8f9fa;
  border-left: 4px solid #27af7d;
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
  color: #27af7d;
  margin-bottom: 15px;
  font-weight: bold;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.benefit-item {
  background: #eaf4f0;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.benefit-item h5 {
  color: #27af7d;
  margin-bottom: 10px;
  font-weight: bold;
}

.contact-cta {
  background: linear-gradient(135deg, #27af7d, #60cd96);
  color: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  margin-top: 30px;
}

.contact-cta h4 {
  margin-bottom: 10px;
  color: white;
}

.contact-cta p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Forzar ocultación de overlays por defecto */
#filosofia-overlay,
#soroban-overlay,
#lectura-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

#filosofia-overlay.active,
#soroban-overlay.active,
#lectura-overlay.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .overlay-content {
    width: 95%;
    margin: 5% auto;
  }

  .overlay-header {
    padding: 20px;
  }

  .overlay-title {
    font-size: 1.8rem;
  }

  .overlay-body {
    padding: 25px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }
}
