/* ==========================================================================
   PÁGINA DE CURSOS - BASE
   ========================================================================== */
.page-cursos {
    padding-top: 0;
}

.metodologia,
.tarifas h2,
.faq {
    margin-top: var(--section-spacing);
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero-z-pattern {
    min-height: calc(100dvh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem;
    margin-bottom: var(--spacing-massive);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.hero-copy {
    flex: .8;
/*     max-width: 600px; */
}

.hero-title-elegant {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.title-kicker {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    color: #999999;
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
}

.title-display {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.title-sub-elegant {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-subtitle strong {
    color: var(--text-main);
}

.hero-actions {
    margin-left: 2.5rem;
}

.cta-primary {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-primary:hover {
    background-color: var(--text-muted);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    width: 100%;
/*     max-width: 500px; */
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-image-caption {
    width: 75%;
    margin: 2rem auto 0;
    font-size: .8rem;
}

/* ==========================================================================
   MODALIDADES (TARJETAS)
   ========================================================================== */
.modalidades.container {
    max-width: 1280px;
}

.modalidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: calc(var(--section-spacing) / 2);
}

.card {
    background-color: var(--text-main);
    color: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 4/3;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-image-container img {
    transform: scale(1.05);
}

.card h3 {
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.card h3 .title-main {
    display: block;
    font-size: 1.7rem; /* Mayúsculas un poco más grandes (original era 1.5rem) */
    font-weight: 500;
}

.card h3 .title-sub {
    display: block;    /* Fuerza la segunda línea */
    font-size: 1.1rem; /* Más pequeño */
    font-weight: 700;  /* En negrita */
    margin-top: 0.2rem;
}

.card h3 .title-en {
    font-size: 0.85rem; /* La palabra "en" aún más pequeña */
    font-weight: 400;   /* Peso normal para no restar importancia al resto */
}

.card p {
    margin: 0 0 2.5rem 0;
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-color);
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-card::after {
    content: "→";
    font-size: 1.1rem;
    margin-left: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-card:hover {
    background-color: #ffffff;
}

.btn-card:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   ETIQUETA FLOTANTE
   ========================================================================== */
.badge-proximamente {
    position: absolute;
    /* Alineado basándose en el padding de la .card (1.5rem) */
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--bg-color); /* Fondo blanco para contraste con .card negra */
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Indicador visual de inactividad en la imagen */
.card.proximamente .card-image-container img {
    opacity: 0.6;
    filter: grayscale(40%);
    /* Sobrescribir el hover para que no haga scale si no está activo */
    transform: none !important;
}

/* Ajuste del botón para el estado "Próximamente" */
.card.proximamente .btn-disabled {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0a0a0;
}

.card.proximamente .btn-disabled:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Cambiar la flecha de dirección (hacia abajo para formularios en la misma página) */
.card.proximamente .btn-disabled::after {
    content: "↓";
}

/* ==========================================================================
   FORMULARIO INLINE (Ocupa el mismo espacio visual que .btn-card)
   ========================================================================== */
.form-inline-group {
    display: flex;
    align-items: center;
    background-color: transparent;
    /* Borde simulando el contenedor exterior */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    /* Altura basada en el padding (1rem x 2) + font-size de .btn-card */
    height: 54px;
    transition: border-color 0.3s ease;
}

.form-inline-group:focus-within {
    border-color: #ffffff;
}

/* Input integrado sin bordes propios */
.form-inline-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0 1rem;
    height: 100%;
    outline: none;
    font-size: 0.95rem;
    /* Prevenir overflow si el texto es largo */
    min-width: 0;
}

.form-inline-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Botón interior encapsulado */
.btn-inside {
    background-color: var(--bg-color);
    color: var(--text-main);
    border: none;
    height: 100%;
    padding: 0 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
}

.btn-inside:hover {
    background-color: #e0e0e0;
}

/* ==========================================================================
   FEEDBACK (Posicionamiento absoluto para no alterar el layout)
   ========================================================================== */
.form-captacion {
    margin-top: auto;
    position: relative; /* Clave para contener el mensaje absoluto */
}

.msg-feedback {
    position: absolute;
    bottom: 100%; /* Empuja el mensaje por encima del formulario */
    left: 0;
    width: 100%;
    margin-bottom: 0.5rem; /* Separación respecto al input */
    font-size: 0.85rem;
    display: none;
    /* Opcional: fondo sutil para garantizar lectura si el texto pisa la imagen/texto de arriba */
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ==========================================================================
   METODOLOGÍA (FILOSOFÍA DOCENTE)
   ========================================================================== */
.metodologia h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.metodologia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.metodologia-item {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.metodologia-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-main);
}

.metodologia-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   TARIFAS Y HORARIOS (GRID MONOCROMÁTICO)
   ========================================================================== */
.cta-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tarifas h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

#taller-virtual {
    text-align: center;
}

.pricing-grid-online,
.pricing-grid-presencial {
    display: grid;
    gap: 1px;
    background-color: var(--border-light);
    max-width: 900px;
    margin: 0 auto 4rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.pricing-grid-online {
    grid-template-columns: 1fr 1fr;
}

.pricing-grid-presencial {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.cell-header,
.cell-dark,
.cell-light,
.cell-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background-color: var(--bg-color);
    text-align: center;
    line-height: 1.5;
}

.cell-header {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background-color: #f8f8f8;
}

.cell-dark {
    background-color: var(--text-main);
    color: var(--bg-color);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cell-light {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
}

.cell-empty {
    background-color: transparent;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
}

a.cell-link {
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    /* Añadido gap para separar precio de CTA en flujo normal */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

a.cell-link .price {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

a.cell-link .link-cta {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Visibilidad por defecto activada */
    opacity: 1;
    /* Eliminado position: absolute para que ocupe espacio real */
    position: relative;
    /* Reseteo de transform inicial */
    transform: none;
    /* Color atenuado para no competir visualmente con el precio */
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a.cell-link:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
}

a.cell-link:hover .price {
    /* Efecto sutil de elevación en el precio */
/*     transform: translateY(-2px); */
}

a.cell-link:hover .link-cta {
    /* Igualar color al fondo invertido en hover */
    color: var(--bg-color);
    border-bottom-color: var(--bg-color);
    /* Efecto de descenso sutil en la llamada a la acción */
/*     transform: translateY(2px); */
}

/* ==========================================================================
   ACLARACIÓN DE TARIFAS (Añadir a tarifas.css)
   ========================================================================== */

/* Reduce la intensidad visual y alinea con el baseline del h2 */
.mes-aclaracion {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: normal;
}

/* ==========================================================================
   FAQ (ACORDEÓN - ESPECÍFICO CURSOS)
   ========================================================================== */
.faq h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.faq-category {
    margin-top: 4rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 0.75rem;
}

/* Efectos visuales mantenidos de cursos.css */
.accordion-item {
    transition: background-color 0.3s ease;
}

.accordion-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Sobreescritura de paddings del componente global para esta página */
.accordion-header {
    padding: 1.5rem 1rem;
}

.accordion-body-inner p {
    padding: 0 1rem 1.5rem 1rem;
}

/* ==========================================================================
   PLANTILLA CURSO ESTÁTICO Y MURO DE PAGO
   ========================================================================== */
.curso-estatico-wrapper {
    max-width: 800px;
    margin: 4rem auto;
}

.curso-header {
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 1rem;
}

.curso-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-transform: uppercase;
}

.np-paywall {
    background-color: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.np-paywall h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.np-paywall p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.np-paywall .button {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.np-paywall .button:hover {
    background-color: var(--text-muted);
/*     transform: translateY(-2px); */
}

/* ==========================================================================
   VIDEO METODOLOGIA
   ========================================================================== */
.video-metodologia {
    margin-top: var(--section-spacing);
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.video-viewport {
    width: 100%;
    max-width: 900px; /* Ajustar según ancho deseado */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

#video-metodologia {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE MÓVIL (PÁGINA CURSOS)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-z-pattern {
        padding: 0;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: left;
        gap: 2rem;
    }

    .hero-copy {
        padding: 0 2rem;
    }

    .hero-visual {
        width: 100%;
        padding: 2rem;
        justify-content: center;
        margin-top: 0;
    }

    .hero-image-caption {
        width: 100%;
        margin: 1.75rem auto 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .modalidades {
        grid-template-columns: 1fr;
    }

    .cta-title {
        margin-top: 2rem;
    }

    /* Tabla de Tarifas Ajustes */
    .cell-empty {
        display: block;
    }

    .pricing-grid-online,
    .pricing-grid-presencial {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        margin: 0 auto;
        width: 100%;
        gap: 1px;
    }

    .pricing-grid-online {
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: row;
        width: 100%;
        gap: 1px;
    }

    .cell-header,
    .cell-dark,
    .cell-light {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }

    .pricing-grid-online .cell-header,
    .pricing-grid-online .cell-dark,
    .pricing-grid-online .cell-light {
        padding: 0.6rem 0.2rem;
        font-size: 0.75rem;
    }

    /* Enlaces Tabla Móvil */
    a.cell-link .price {
        transform: translateY(0);
    }

    a.cell-link .link-cta {
        position: static;
        opacity: 0.7;
        transform: translateY(0);
        margin-top: 0.4rem;
        border: none;
        padding: none;
        font-size: 0.65rem;
    }

    .tarifas h2,
    .faq h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .pricing-grid-presencial {
        zoom: 0.9;
    }
}


/* ==========================================================================
   HERO: LISTA DE CARACTERÍSTICAS
   ========================================================================== */
.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-main);
}

.hero-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.hero-features-list i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ==========================================================================
   TARJETAS DE PRECIOS VIRTUAL
   ========================================================================== */
.pricing-cards-virtual {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.pricing-card {
    background: var(--bg-color, #ffffff);
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 8px;
    padding: 3rem 2rem;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card.highlighted {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0066cc; /* Azul heredado como requerimiento */
    text-transform: capitalize;
    margin: 0 0 1rem 0;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main, #1a1a1a);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    font-size: 1rem;
    color: var(--text-muted, #666666);
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    width: 100%;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.95rem;
    color: var(--text-main, #1a1a1a);
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    position: relative;
    font-weight: 500;
}

.plan-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-main);
    font-weight: bold;
}

.btn-plan {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: #0066cc;
    color: #ffffff;
    padding: 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
}

.btn-plan:hover {
    background-color: #004c99;
}

@media (max-width: 768px) {
    .pricing-card.highlighted {
        transform: scale(1);
    }
    .hero-actions {
        display: none;
    }
}
