/* ==========================================
   ESTRUCTURA BASE DEL MODAL (DIV 1 y DIV 2)
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Permite scroll si el contenido es largo */
    overflow-y: auto;
    padding: 40px 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estado activo del modal */
.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Div 2: Contenedor principal */
.modal-container {
    background-color: #F2F2F2;
    width: 100%;
    max-width: 928px;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    box-sizing: border-box;
}

/* Div 1: Zona del botón de cerrar */
.modal-header-close {
    width: 100%;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.modal-close-button {
    background: none;
    border: none;
    font-size: 40px;
    line-height: 1;
    color: #00000052;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close-button:hover {
    color: #0d0d0d;
}

/* Cuerpo interno del modal */
.modal-content {
    padding: 0 40px 40px 40px;
    /* Aire lateral e inferior */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* ==========================================
   DIV 3: TÍTULO Y SUBTÍTULO
   ========================================== */

.modal-title-section {
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    /* Espacio previo a la botonera */
    text-align: center;
}

.modal-main-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0px;
    color: #1E2D4C;
    margin: 0;
}

.modal-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.4px;
    color: #666666;
    margin: 0;
}

/* ==========================================
   DIV 4: BOTONERA / TABS UNIDAS
   ========================================== */

.modal-tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 640px;
    width: 100%;
    margin-bottom: 40px;
}

.buttons-container {
    background: #DEE5F2;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px;
    border-radius: 24px;
    box-sizing: border-box;
    opacity: 1;
    width: min(350px, 100%);
    display: flex;
    gap: 16px;
}

.tab-toggle-btn {
    flex: 1;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.2px;
    text-align: center;
    color: #1E2D4C;
    padding: 8px 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    width: 150px;
}

.tab-toggle-btn.active {
    background-color: #1E2D4C;
    color: #FFFFFF;
    opacity: 1;
    width: fit-content;
}

@media (max-width: 480px) {
    .buttons-container {
        gap: 8px;
        width: 100%;
    }
}

/* ==========================================
   DIV 5: SECCIÓN 1 - CARDS GENERAL
   ========================================== */

.modal-sections-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-sizing: border-box;
}

/* Contenedor Grid para posicionar las cards en fila */
.cards-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Estructura base de la tarjeta */
.card-item {
    background-color: #FFFFFF;
    min-height: 268px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 32px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    opacity: 1;
    gap: 20px;
    flex: 0 1 260px;
}

.cards-grid.dos-columnas .card-item {
    flex: 1 1 260px;
    max-width: 380px;
}

/* Contenedor superior (Tag + Info) */
.card-info-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
}


/* Estilo de las Etiquetas (Tags) */
.card-tag {
    background-color: #CEEACC;
    height: 24px;
    padding: 4px 8px;
    border-radius: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.card-tag span {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #4CA845;
}

/* Título de la tarjeta */
.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: #0D0D0D;
    margin: 0 0 4px 0;
}

/* Descripción corta */
.card-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.5px;
    color: #666666;
    margin-bottom: 16px;
}

/* Contenedor del Precio */
.card-price-block {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-symbol {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 40px;
    color: #0D0D0D;
}

.price-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: #0D0D0D;
}

.price-currency {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 40px;
    color: #B3B3B3;
    margin-left: 2px;
}

/* Botón "Continuar inscripción" */
.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CA845;
    width: 100%;
    height: 44px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    padding: 16px;
}

.btn-card-action:hover {
    background-color: #3d8b37;
}

.btn-card-action span {
    font-family: 'Roboto', sans-serif;
    /* font-weight: 500; */
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #FFFFFF;
    text-align: center;
}

@media (max-width: 768px) {

    .cards-grid.dos-columnas .card-item {
        flex: 0 1 260px;
        max-width: unset;
    }
}

@media (max-width: 580px) {
    .cards-grid.dos-columnas .card-item {
        flex: 0 1 360px;
        /* max-width: 380px; */
    }

    .card-item {
        flex: 0 1 360px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .card-item,
    .cards-grid.dos-columnas .card-item {
        flex: 0 1 100%;
        width: 100%;
        /* max-width: 280px; */
    }
}

/* ==========================================
   DIV 5: SECCIÓN 2 - ACORDEONES
   ========================================== */

.modal-accordion-section {
    width: 100%;
    max-width: 864px;
    margin: 0 auto;
    box-sizing: border-box;
}

.accordion-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: #1E2D4C;
    margin: 0 0 16px 0;
}

.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Espacio entre un acordeón y otro */
    width: 100%;
}

/* Contenedor individual del acordeón */
.accordion-item {
    width: 100%;
    border: 1px solid #CCCCCC;
    border-radius: 16px;
    overflow: hidden;
    background-color: #F9F9F9;
    /* Fondo sutil para el área cerrada */
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Cabecera / Botón del acordeón */
.accordion-header {
    width: 100%;
    height: 56px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F2F2F2;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
}

.accordion-header span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.1px;
    color: #0D0D0D;
}

.accordion-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenido oculto del acordeón */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    background-color: #F2F2F2;
    box-sizing: border-box;
    padding: 0 16px;
    transition:
        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        transform 0.35s ease,
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.is-open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-item.is-open .accordion-content {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    padding: 24px 16px;
}

.accordion-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #666666;
    margin: 0;
}

/* ==========================================
   DIV 5: SECCIÓN 3 - IMPORTANTE (CON ICONO Y RESPONSIVE)
   ========================================== */

.modal-important-section {
    width: 100%;
    max-width: 864px;
    min-height: 142px;
    background-color: #EEF7FB;
    border-top: 1px solid #C1E0F1;
    border-right: 1px solid #C1E0F1;
    border-bottom: 1px solid #C1E0F1;
    border-left: 4px solid #C1E0F1;
    border-radius: 4px;

    padding: 16px;
    box-sizing: border-box;
    opacity: 1;

    /* Estructura Flexbox horizontal para alinear icono y textos */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

/* Contenedor del Icono */
.important-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 2px;
}

.important-info-svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Contenedor de Textos */
.important-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.important-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
    color: #2A87BB;
    margin: 0;
}

.important-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.important-list li {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.4px;
    color: #333333;
    position: relative;
    padding-left: 14px;
}

/* Viñeta sutil tipo guion/punto del diseño */
.important-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333333;
}

/* Resaltado del texto solicitado */
.important-list li .highlight-text {
    font-weight: 700;
    color: #0D0D0D;
}

/* ==========================================
   RESPONSIVE SECCIÓN IMPORTANTE
   ========================================== */

@media (max-width: 480px) {
    .modal-important-section {
        flex-direction: column;
        /* Icono arriba, textos abajo */
        align-items: flex-start;
        gap: 12px;
        padding: 20px 16px;
    }

    .important-icon-wrapper {
        padding-top: 0;
    }

    .important-info-svg {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================
   DIV 5: SECCIÓN 4 - ¿TENÉS DUDAS?
   ========================================== */

.modal-footer-contact {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 16px;
    box-sizing: border-box;
}

/* Texto Izquierdo */
.dudas-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.4px;
    color: #666666;
}

/* Contenedor de métodos de contacto */
.contact-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Enlaces individuales de contacto */
.contact-item-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-item-link:hover {
    opacity: 0.8;
}

/* Control exacto de los iconos del diseñador */
.contact-icon-svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
}

/* Texto de Email */
.email-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.25px;
    color: #666666;
}

/* Texto de WhatsApp */
.whatsapp-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #4CA845;
}

/* ==========================================
   RESPONSIVE DEL CONTACTO
   ========================================== */

@media (max-width: 640px) {
    .modal-footer-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0;
        margin: 0;
    }

    .contact-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }
}

/* ==========================================
   INTERIOR DE LOS ACORDEONES Y RESPONSIVE (OPTIMIZADO)
   ========================================== */

.accordion-item.is-open .accordion-content {
    max-height: 1000px;
    padding: 0px 18px 16px;
}

.accordion-inner-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

.accordion-col {
    flex: 0 0 calc((100% - 64px) / 3);
    box-sizing: border-box;
}

.col-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 18px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.col-title.include {
    color: #4CA845;
}

.col-title.exclude {
    color: #B3B3B3;
}

.accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-list li {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #4D4D4D;
    position: relative;
    padding-left: 12px;
}

.accordion-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #808080;
}

.col-title .col-icon-svg {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

/* ==========================================
   RESPONSIVE MODERNO CON FLEXBOX
   ========================================== */

@media (max-width: 768px) {
    .accordion-inner-grid {
        gap: 20px;
    }

    .accordion-col {
        /* (100% - 1 gap de 20px) / 2 columnas */
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 480px) {
    .accordion-inner-grid {
        flex-direction: column;
        gap: 16px;
    }

    .accordion-col {
        flex: 0 0 100%;
        width: 100%;
    }
}

/*modal general*/
@media (max-width: 900px) {
    .modal-overlay {
        padding: 0;

    }

    .modal-container {
        border-radius: unset;

    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 0 20px 40px 20px;
    }
}