/* ===== TIMONEL PAGE – Alineado con diseño principal ===== */

/* Ocultar botón Doná ahora en la página Timonel */
.timonel-page .btn-colabora,
.timonel-page .btn-colabora-mobile {
    display: none !important;
}

/* Hero del curso (mismo estilo que volunteer-hero, más compacto) */
.timonel-hero {
    background: linear-gradient(135deg, #004aad 0%, #013579 50%, #012758 100%);
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.timonel-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain-t" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain-t)"/></svg>');
    opacity: 0.3;
}

.timonel-hero .hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.timonel-hero .hero-content {
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.timonel-hero .card-icon {
    margin: 0 auto 1rem;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.timonel-hero .card-icon i {
    font-size: 2.25rem;
}

.timonel-hero .hero-title {
    font-family: 'Zing Rust Base', sans-serif;
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.timonel-hero .hero-subtitle {
    font-size: 1.15rem;
    color: #e3f2fd;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.timonel-hero .btn-hero-cta {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    white-space: nowrap;
}

.timonel-hero .btn-hero-cta:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

@media (max-width: 768px) {
    .timonel-hero {
        min-height: 36vh;
    }
    .timonel-hero .hero-content {
        padding: 1.75rem 0;
    }
    .timonel-hero .card-icon {
        width: 72px;
        height: 72px;
    }
    .timonel-hero .card-icon i {
        font-size: 1.75rem;
    }
    .timonel-hero .hero-title {
        font-size: 1.75rem;
    }
    .timonel-hero .hero-subtitle {
        font-size: 1rem;
    }
    .timonel-hero .btn-hero-cta {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

@media (max-width: 576px) {
    .timonel-hero {
        min-height: 32vh;
    }
    .timonel-hero .hero-content {
        padding: 1.25rem 0.5rem;
    }
    .timonel-hero .card-icon {
        width: 60px;
        height: 60px;
    }
    .timonel-hero .card-icon i {
        font-size: 1.5rem;
    }
    .timonel-hero .hero-title {
        font-size: 1.5rem;
    }
    .timonel-hero .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    .timonel-hero .btn-hero-cta {
        display: flex;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
        box-shadow: 0 4px 18px rgba(255, 107, 53, 0.45);
    }
    .timonel-hero .btn-hero-cta i {
        font-size: 1.05rem;
    }
}

/* Sección de contenido del curso (fondo suave como quienes-somos) */
.timonel-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.timonel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots-t" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,74,173,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots-t)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.timonel-section .container {
    position: relative;
    z-index: 1;
}

/* Bloque principal del curso con barra superior (como collaboration-card) */
.timonel-course-block {
    background: #ffffff;
    border: 1px solid rgba(0, 74, 173, 0.1);
    border-radius: 20px;
    padding: 2rem 2rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.1);
    position: relative;
    overflow: hidden;
}

.timonel-course-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #004aad, #ff6b35);
    border-radius: 20px 20px 0 0;
}

.timonel-course-block .section-header {
    margin-bottom: 2rem;
}

.timonel-course-block .section-title {
    margin-bottom: 0.5rem;
}

.timonel-course-block .section-header .section-title::after {
    display: none;
}

/* Tarjetas de info: Modalidad, Clases, Práctica, Certificación */
.timonel-info-cards {
    margin-top: 0.5rem;
}

.timonel-info-card {
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border: 1px solid rgba(0, 74, 173, 0.1);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.timonel-info-card:hover {
    box-shadow: 0 8px 24px rgba(0, 74, 173, 0.12);
    border-color: rgba(0, 74, 173, 0.18);
}

.timonel-info-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #004aad 0%, #013579 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.25);
}

.timonel-info-card-icon i {
    font-size: 1.35rem;
    color: #fff;
}

.timonel-info-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #013579;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    text-align: center;
}

.timonel-info-card-lead {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 0.6rem;
    text-align: center;
}

.timonel-info-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

.timonel-info-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
}

.timonel-info-card-list li:last-child {
    margin-bottom: 0;
}

.timonel-info-card-list li i {
    color: #ff6b35;
    margin-top: 0.2rem;
    width: 16px;
    min-width: 16px;
    text-align: center;
}

/* Listas de fechas: viñeta simple, sin repetir icono de calendario */
.timonel-info-card-dates {
    list-style: none;
    padding-left: 0;
}

.timonel-info-card-dates li {
    padding-left: 1.1rem;
    position: relative;
    justify-content: flex-start;
}

.timonel-info-card-dates li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #004aad;
}

@media (max-width: 991px) {
    .timonel-info-card {
        padding: 1.1rem 1rem;
    }
    .timonel-info-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .timonel-info-cards .col-md-6:not(:last-child) {
        margin-bottom: 1rem;
    }
}

/* Subsecciones con separación visual */
.timonel-course-block .institution-subtitle {
    margin-top: 1.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(0, 74, 173, 0.08);
}

.timonel-course-block .institution-subtitle:first-of-type {
    margin-top: 0;
}

/* Sección de inscripción (fondo blanco / alternado) */
.timonel-form-section {
    background: #fff;
    position: relative;
}

.timonel-form-section .institution-block {
    border-radius: 20px;
    padding: 2rem 2rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.08);
    border: 1px solid rgba(0, 74, 173, 0.1);
}

.timonel-form-section .institution-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #004aad, #ff6b35);
    border-radius: 20px 20px 0 0;
}

.timonel-form-section .institution-block {
    position: relative;
    overflow: hidden;
}

.timonel-form-section .enhanced-form .form-group label .form-label-icon,
.timonel-form-section .enhanced-form .form-group label i.fas {
    margin-right: 0.4rem;
    color: #004aad;
}

.timonel-form-section .section-header {
    margin-bottom: 1.5rem;
}

.timonel-form-section .section-header .section-title::after {
    display: none;
}

.timonel-form-section .section-title {
    margin-bottom: 0.5rem;
}

/* Documentos para descargar */
.timonel-downloads .institution-subtitle {
    margin-top: 0;
}
.timonel-download-btns .btn-outline-primary {
    border-color: #004aad;
    color: #004aad;
}
.timonel-download-btns .btn-outline-primary:hover {
    background: rgba(0, 74, 173, 0.08);
    border-color: #004aad;
    color: #004aad;
}

/* Resumen de pago en el formulario */
.timonel-payment-summary .institution-subtitle {
    margin-top: 0;
}

.timonel-payment-summary-box {
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border: 1px solid rgba(0, 74, 173, 0.12);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

/* Total primero (sin borde superior) */
.timonel-payment-total-first {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 74, 173, 0.2);
    border-top: none;
}

/* Bloque "Aboná ahora" – destacado */
.timonel-payment-now {
    background: rgba(0, 74, 173, 0.06);
    border: 1px solid rgba(0, 74, 173, 0.2);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.timonel-payment-now-label {
    font-weight: 700;
    color: #013579;
    font-size: 1rem;
    width: 100%;
}

.timonel-payment-now-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004aad;
}

.timonel-payment-now-detail {
    font-size: 0.85rem;
    color: #666;
}

/* Bloque "El resto en Módulo 5" */
.timonel-payment-later {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: #555;
}

.timonel-payment-later-label {
    font-weight: 600;
    color: #333;
}

.timonel-payment-later-amount {
    font-weight: 700;
    color: #004aad;
}

.timonel-payment-later-detail {
    font-size: 0.85rem;
    color: #666;
    width: 100%;
}

.timonel-payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(0, 74, 173, 0.2);
    font-weight: 700;
    font-size: 1.05rem;
}

.timonel-payment-summary-box .timonel-payment-total:not(.timonel-payment-total-first) {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.timonel-payment-total-label {
    color: #013579;
}

.timonel-payment-total-value {
    color: #004aad;
    font-size: 1.2rem;
}

/* Tabla de módulos: más aire y legibilidad */
.timonel-page .timonel-modules-table {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 74, 173, 0.08);
}

.timonel-page .timonel-modules-table thead th {
    font-size: 1rem;
    padding: 1rem 1.25rem;
}

.timonel-page .timonel-modules-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Modalidad de pago: tarjetas visuales */
.timonel-course-block .institution-subblock {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0, 74, 173, 0.12);
}

.timonel-course-block .institution-subblock p strong {
    color: #004aad;
}

.timonel-course-block .timonel-nivel-ubicacion {
    margin-left: 0.75rem;
}

.timonel-course-block .badge-obligatorio {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: #004aad;
    color: #fff;
    border-radius: 6px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .timonel-course-block,
    .timonel-form-section .institution-block {
        padding: 1.5rem 1.25rem;
    }
    .timonel-section .container,
    .timonel-form-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .timonel-course-block .section-title {
        font-size: 1.35rem;
    }
    .timonel-course-block .institution-subtitle {
        font-size: 1.1rem;
    }
    .timonel-page .timonel-modules-table thead th,
    .timonel-page .timonel-modules-table tbody td {
        padding: 0.75rem 0.65rem;
        font-size: 0.85rem;
    }
    .timonel-payment-now-amount {
        font-size: 1.35rem;
    }
    .timonel-payment-total-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .timonel-section,
    .timonel-form-section {
        padding-left: 0;
        padding-right: 0;
    }
    .timonel-section .container,
    .timonel-form-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
    }
    .timonel-section .py-5,
    .timonel-form-section .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .timonel-section .container.py-4,
    .timonel-form-section .container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .timonel-course-block,
    .timonel-form-section .institution-block {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
    .timonel-course-block .section-header {
        margin-bottom: 1.5rem;
    }
    .timonel-course-block .section-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    .timonel-course-block .services-subtitle,
    .timonel-form-section .services-subtitle {
        font-size: 0.95rem;
    }
    .timonel-course-block .institution-subtitle {
        font-size: 1rem;
        margin-top: 1.25rem;
    }
    .timonel-info-cards .col-md-6 {
        margin-bottom: 0.75rem;
    }
    .timonel-info-card {
        padding: 1rem 0.85rem;
    }
    .timonel-info-card-icon {
        width: 46px;
        height: 46px;
    }
    .timonel-info-card-icon i {
        font-size: 1.2rem;
    }
    .timonel-info-card-title {
        font-size: 0.95rem;
    }
    .timonel-info-card-list,
    .timonel-info-card-dates {
        font-size: 0.85rem;
    }
    .timonel-course-block .institution-subblock {
        padding: 1rem 1.1rem;
    }
    .timonel-page .timonel-modules-table thead th,
    .timonel-page .timonel-modules-table tbody td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .timonel-page .table-responsive {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 10px;
    }
    .timonel-payment-summary-box {
        padding: 1rem 1.1rem;
    }
    .timonel-payment-total-first {
        padding-bottom: 1rem;
        margin-bottom: 0.75rem;
    }
    .timonel-payment-now,
    .timonel-payment-later {
        padding: 0.85rem 1rem;
    }
    .timonel-payment-now-label {
        font-size: 0.95rem;
    }
    .timonel-payment-now-amount {
        font-size: 1.25rem;
    }
    .timonel-payment-later-label,
    .timonel-payment-later-amount {
        font-size: 0.9rem;
    }
    .timonel-payment-total {
        font-size: 0.95rem;
    }
    .timonel-payment-total-value {
        font-size: 1.05rem;
    }
    .timonel-form-section .section-header {
        margin-bottom: 1.25rem;
    }
    .timonel-form-section .section-title {
        font-size: 1.2rem;
    }
    .timonel-form-section .institution-subtitle {
        font-size: 1rem;
    }
    .timonel-form-section .enhanced-form .form-group label {
        font-size: 0.9rem;
    }
}

/* Contador de tiempo */
.timonel-countdown-container {
    background: rgba(0, 74, 173, 0.03);
    border: 1px dashed rgba(0, 74, 173, 0.2);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    max-width: 450px;
    margin: 1rem auto;
}

.countdown-badge {
    background: #ff6b35;
    color: white;
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

#timonel-countdown {
    gap: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.countdown-item span {
    font-size: 1.8rem;
    font-weight: 800;
    color: #004aad;
    line-height: 1;
}

.countdown-item small {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
}

.countdown-end-text {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .timonel-countdown-container {
        padding: 1rem 0.5rem;
    }
    .countdown-item {
        min-width: 55px;
    }
    .countdown-item span {
        font-size: 1.5rem;
    }
}

/* Datos de transferencia: legibles en celular */
@media (max-width: 768px) {
    .timonel-form-section .payment-info {
        padding: 1rem;
        border-radius: 10px;
        border: 1px solid rgba(0, 74, 173, 0.12);
        background: #f8fbff;
    }
    .timonel-form-section .payment-info .info-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding-top: 0.75rem;
        margin-top: 0;
    }
    .timonel-form-section .payment-info .info-row + .info-row {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 74, 173, 0.1);
    }
    .timonel-form-section .payment-info .info-label {
        font-size: 0.9rem;
        justify-self: unset;
        text-align: left;
    }
    .timonel-form-section .payment-info .info-value {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.65rem;
        font-size: 0.95rem;
        word-break: break-all;
    }
    .timonel-form-section .payment-info .info-row:first-child {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.35rem 0.5rem;
    }
    .timonel-form-section .payment-info .info-row:first-child .info-label {
        grid-column: 1 / -1;
    }
    .timonel-form-section .payment-info .info-row:first-child .info-value {
        grid-column: 1;
        min-width: 0;
    }
    .timonel-form-section .payment-info .info-row:first-child .btn-copy-alias {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        margin: 0;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        min-width: 44px;
        border-radius: 8px;
        background: rgba(0, 74, 173, 0.08);
    }
    .timonel-form-section .payment-info .btn-copy-alias i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .timonel-form-section .payment-info {
        padding: 0.85rem;
    }
    .timonel-form-section .payment-info .info-value {
        font-size: 0.9rem;
        padding: 0.45rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .timonel-hero .hero-title {
        font-size: 1.35rem;
    }
    .timonel-hero .hero-subtitle {
        font-size: 0.9rem;
    }
    .timonel-hero .btn-hero-cta {
        max-width: 100%;
        padding: 1rem 1.25rem;
        min-height: 52px;
        font-size: 1.05rem;
    }
    .timonel-course-block .section-title {
        font-size: 1.1rem;
    }
    .timonel-info-card-title {
        font-size: 0.9rem;
    }
    .timonel-payment-now-amount {
        font-size: 1.15rem;
    }
    .timonel-payment-total-value {
        font-size: 1rem;
    }
}
