/* =============================================
   CAPACITACIONES TYM & TAT — MAIN STYLES
   ============================================= */
@import url('./variables.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    min-height: 100%;
    overflow-y: auto; /* Permitir scroll vertical */
}

body {
    font-family: 'Poppins', var(--main-font);
    min-height: 100vh; /* Cambiado de height a min-height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a2a3a 0%, #0f172a 100%); /* Fondo más oscuro y profundo */
    position: relative;
    overflow-y: auto;
    padding: 4rem 1rem;
}

/* ── Partículas decorativas de fondo ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(41,128,185,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(230,126,34,0.12) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Título principal ── */
.principal_title {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.principal_title span {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Contenedor de las cards ── */
.card-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ── Card ── */
.card {
    position: relative;
    width: 28rem;
    height: 36rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2rem 2rem;
    border-radius: 2.4rem;
    text-align: center;
    cursor: pointer;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Borde casi invisible */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

/* Brillo superior animado */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.card:hover::before {
    left: 130%;
}

/* Borde inferior de acento */
.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2980b9, #e67e22);
    border-radius: 0 0 2.4rem 2.4rem;
    transition: height 0.3s ease;
}

.card:hover::after {
    height: 5px;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255,255,255,0.14);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* ── Encabezado de la card ── */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.tittle {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.icon-img {
    width: 11rem;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.card:hover .icon-img {
    transform: scale(1.08);
}

/* ── Descripción ── */
.desc {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    padding: 0 1rem;
}

/* ── Botón ── */
.btn {
    margin-top: 1rem;
    padding: 1.3rem 2rem;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    cursor: pointer;
    border-radius: 1.2rem;
    width: 100%;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(230,126,34,0.4);
    font-family: inherit;
}

.btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230,126,34,0.5);
}

.btn:active {
    transform: translateY(0);
}
