/* ============================================================
   Timeline Vertical Widget — Elementor
   Colores: #053751 (azul marino) · #1ab2ab (teal) · blanco
   ============================================================ */

/* Wrapper principal */
.tl-wrapper {
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* Cada fila (paso) */
.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

.tl-item + .tl-item {
    margin-top: 40px;
}

/* Columna izquierda: círculo + línea */
.tl-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

/* Círculo numerado */
.tl-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background-color: #053751;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(5, 55, 81, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tl-circle:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(5, 55, 81, 0.35);
}

/* Línea vertical entre pasos */
.tl-line {
    width: 3px;
    flex: 1;
    min-height: 40px;
    background-color: #053751;
    margin-top: 6px;
    border-radius: 2px;
    opacity: 0.35;
}

/* Bloque de texto */
.tl-content {
    flex: 1;
    padding-left: 18px;
    border-left: 4px solid #1ab2ab;
    padding-top: 4px;
    padding-bottom: 4px;
    transition: border-color 0.2s ease;
}

.tl-content:hover {
    border-left-color: #053751;
}

/* Título */
.tl-title {
    color: #053751;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
    padding: 0;
}

/* Descripción */
.tl-description {
    color: #444444;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .tl-item {
        gap: 16px;
    }

    .tl-circle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .tl-content {
        padding-left: 12px;
        border-left-width: 3px;
    }

    .tl-title {
        font-size: 1rem;
    }

    .tl-description {
        font-size: 0.875rem;
    }
}

/* ============================================================
   VARIANTE: fondo oscuro (añadir clase CSS extra al widget)
   Clase: tl-dark
   ============================================================ */
.tl-dark .tl-wrapper {
    background-color: #053751;
    padding: 32px;
    border-radius: 12px;
}

.tl-dark .tl-circle {
    background-color: #1ab2ab;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(26, 178, 171, 0.4);
}

.tl-dark .tl-line {
    background-color: #1ab2ab;
    opacity: 0.4;
}

.tl-dark .tl-content {
    border-left-color: #1ab2ab;
}

.tl-dark .tl-title {
    color: #ffffff;
}

.tl-dark .tl-description {
    color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   Tabla Comparativa Widget
   ============================================================ */

.ct-wrapper {
    background-color: #053751;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 24px 0;
}

.ct-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Cabecera */
.ct-header th {
    color: #1ab2ab;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 28px 16px;
    border-bottom: 1px solid rgba(26,178,171,0.25);
    line-height: 1.35;
}

.ct-header th.ct-th-label {
    text-align: left;
    padding-left: 32px;
    width: 55%;
}

.ct-header th:not(.ct-th-label) {
    width: 22.5%;
}

/* Filas del cuerpo */
.ct-body tr {
    border-bottom: 1px solid rgba(26,178,171,0.15);
    transition: background-color 0.15s ease;
}

.ct-body tr:last-child {
    border-bottom: none;
}

.ct-body tr:hover {
    background-color: rgba(255,255,255,0.04);
}

.ct-body td {
    padding: 20px 16px;
    vertical-align: middle;
}

.ct-body td.ct-benefit {
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.5;
    padding-left: 32px;
    text-align: left;
}

.ct-body td.ct-status {
    text-align: center;
}

/* Iconos */
.ct-icon {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.ct-check {
    color: #1ab2ab;
}

.ct-cross {
    color: #e05c5c;
}

.ct-dash {
    color: rgba(255,255,255,0.55);
    font-size: 1.5rem;
}

/* Leyenda */
.ct-legend {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 20px 32px 0 32px;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
}

.ct-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ct-legend .ct-icon {
    font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .ct-header th.ct-th-label {
        padding-left: 16px;
        width: 50%;
        font-size: 0.68rem;
    }

    .ct-header th:not(.ct-th-label) {
        width: 25%;
        font-size: 0.68rem;
        padding: 20px 8px;
    }

    .ct-body td.ct-benefit {
        font-size: 0.8rem;
        padding-left: 16px;
    }

    .ct-body td.ct-status {
        padding: 14px 8px;
    }

    .ct-legend {
        padding: 16px 16px 0;
        gap: 14px;
        font-size: 0.75rem;
    }
}


/* ============================================================
   Carrusel de Tarjetas Widget
   ============================================================ */

.cc-section {
    background-color: #f0f7f4;
    padding: 60px 24px 48px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

/* Cabecera */
.cc-header {
    text-align: center;
    margin-bottom: 44px;
}

.cc-title {
    color: #053751;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
    padding: 0;
}

.cc-subtitle {
    color: #444444;
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
    padding: 0;
}

/* Carrusel */
.cc-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.cc-track-outer {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.cc-track {
    display: flex;
    gap: 20px;
    transition: transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* Tarjeta */
.cc-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(5, 55, 81, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(5, 55, 81, 0.14);
}

/* Icono */
.cc-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(26, 178, 171, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cc-icon i,
.cc-icon svg {
    font-size: 1.6rem;
    width: 1.6rem;
    height: 1.6rem;
    color: #1ab2ab;
    fill: #1ab2ab;
}

/* Texto de la tarjeta */
.cc-card-title {
    color: #053751;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 12px;
    padding: 0;
    line-height: 1.3;
}

.cc-card-text {
    color: #555555;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

/* Flechas */
.cc-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #053751;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
    line-height: 1;
    padding: 0;
}

.cc-arrow:hover {
    background-color: #1ab2ab;
    transform: scale(1.08);
}

/* Dots */
.cc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.cc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(5, 55, 81, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cc-dot.active,
.cc-dot:hover {
    background-color: #1ab2ab;
    transform: scale(1.3);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .cc-section {
        padding: 40px 16px 36px;
    }
    .cc-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .cc-header {
        margin-bottom: 28px;
    }
    .cc-card {
        padding: 24px 20px;
    }
}
