/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Edrian
 * Template: blocksy
 * Text Domain: blocksy
 */
 
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(45, 28, 120, 0.3);
    padding: 30px 40px;
}

.faq-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #020101;
}

.faq-item + .faq-item {
    margin-top: 15px;
}

.faq-question {
    background: linear-gradient(135deg, #4a29d0, #5B38ED, #5e39ef);
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    position: relative;
}

.faq-question:hover,
.faq-question.active {
    background: #4927CF;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    /* Mejorar posición y evitar que el texto se mueva */
    display: inline-block;
    width: 24px;
    text-align: center;
    line-height: 1;
    margin-left: 10px;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #ecf0f1;
    border-radius: 0 0 6px 6px;
    padding: 0 20px;
}

.faq-answer p {
    padding: 15px 0;
    font-size: 1rem;
    color: #444;
    margin: 0;
}

/* Cuando el FAQ está abierto, max-height debe ser grande para que se muestre el contenido */
/* Esto lo debes activar con JS (por ejemplo: agregar una clase que modifique max-height) */
.faq-answer.open {
    max-height: 500px; /* Ajusta según contenido máximo esperado */
    padding: 15px 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .faq-section {
        padding: 20px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}


.ct-header .ct-button {
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.15);
}

.widget-info {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #fff;
}

.widget-info .icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}





