/* ══ Formación Web — estilos de sección y tarjetas ══ */

/* Sección contenedora */
#formacion-web {
    padding: 2.5rem 0 2rem;
}

.fw-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.fw-section-titulo {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--color-dark-tres, #1C2E3A);
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}

.fw-section-subtitulo {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--color-muted, #5a7a84);
    margin: 0;
    letter-spacing: 0.06em;
}

/* Wrapper del carrusel */
.fw-carousel-wrap {
    position: relative;
}

.fw-carousel-wrap .owl-carousel {
    padding: 0 56px;
}

.fw-carousel-wrap .owl-carousel .item {
    padding: 8px 6px;
    display: flex;
}

/* ══ Tarjeta web ══ */
.fw-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 220px;
    background: rgba(13, 27, 51, 0.88);
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 200, 0.14);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 229, 200, 0.1);
    border-color: rgba(0, 229, 200, 0.32);
}

/* Cabecera de tarjeta */
.fw-card__header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00e5c8;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 229, 200, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 85% 50%, rgba(167, 139, 250, 0.14) 0%, transparent 55%),
        linear-gradient(90deg, #0d1b33 0%, #1a1040 100%);
    border-bottom: 1px solid rgba(0, 229, 200, 0.2);
}

.fw-card__header svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: auto;
    stroke: #00e5c8;
    filter: drop-shadow(0 0 3px rgba(0, 229, 200, 0.35));
}

/* Cuerpo de tarjeta */
.fw-card__body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fw-card__titulo {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c8dff8;
    margin: 0 0 5px;
    line-height: 1.3;
}

.fw-card__meta {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    color: #7da8d4;
    margin: 0 0 10px;
    line-height: 1.4;
}

.fw-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #a78bfa;
    margin-bottom: 12px;
    align-self: flex-start;
}

.fw-card__badge--año {
    background: rgba(0, 229, 200, 0.1);
    border-color: rgba(0, 229, 200, 0.35);
    color: #00e5c8;
}

.fw-card__badge--hr {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.35);
    color: #14b8a6;
}

.fw-card__desc {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    color: #7da8d4;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* ══ Owl nav dentro de .fw-carousel-wrap ══ */
.fw-carousel-wrap .owl-theme .owl-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 40px;
    height: auto;
    margin: 0 !important;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.fw-carousel-wrap .owl-theme .owl-nav [class*='owl-'] {
    pointer-events: all;
    background: rgba(0, 229, 200, 0.08) !important;
    border: 1px solid rgba(0, 229, 200, 0.3) !important;
    color: #00e5c8 !important;
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    flex-shrink: 0;
    transition: background 0.25s, box-shadow 0.25s;
}

.fw-carousel-wrap .owl-theme .owl-nav [class*='owl-']:hover {
    background: rgba(0, 229, 200, 0.2) !important;
    box-shadow: 0 0 16px rgba(0, 229, 200, 0.3);
}

.fw-carousel-wrap .owl-theme .owl-nav [class*='owl-'] svg {
    width: 17px;
    height: 17px;
    display: block;
}

.fw-carousel-wrap .owl-theme .owl-dots { margin-top: 16px !important; }

.fw-carousel-wrap .owl-theme .owl-dots .owl-dot span {
    background: rgba(0, 229, 200, 0.25) !important;
    transition: background 0.25s, transform 0.25s;
}

.fw-carousel-wrap .owl-theme .owl-dots .owl-dot.active span,
.fw-carousel-wrap .owl-theme .owl-dots .owl-dot:hover span {
    background: #00e5c8 !important;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .fw-carousel-wrap .owl-carousel { padding: 0 40px; }
}

/* ══ Tecnologías & Herramientas — monedas ══ */
#tecnologias-web {
    padding: 2.5rem 0 2.5rem;
    border-top: 1px solid rgba(0, 229, 200, 0.1);
    margin-top: 1rem;
}

.tw-carousel-wrap {
    position: relative;
}

.tw-carousel-wrap .owl-carousel {
    padding: 0 56px;
}

.tw-carousel-wrap .owl-carousel .item {
    padding: 12px 10px;
    display: flex;
    justify-content: center;
}

/* Moneda */
.tech-coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 8px 14px;
}

.tech-coin__circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 28% 20%, rgba(255,255,255,0.55) 0%, rgba(180,215,255,0.22) 24%, transparent 52%),
        radial-gradient(ellipse at 68% 82%, rgba(0,8,35,0.78) 0%, transparent 55%),
        linear-gradient(135deg, #1e3f7a 0%, #0d2550 35%, #071630 65%, #1c3a72 100%);
    border: 2.5px solid rgba(80, 145, 215, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1.5px rgba(255,255,255,0.18) inset,
        0 0 14px rgba(20, 70, 180, 0.28),
        0 6px 24px rgba(0,0,0,0.55);
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
}

.tech-coin__circle::before {
    content: '';
    position: absolute;
    top: 7%; left: 11%;
    width: 56%; height: 34%;
    background: linear-gradient(155deg, rgba(255,255,255,0.50) 0%, rgba(200,230,255,0.18) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.tech-coin__circle::after {
    display: none;
}

.tech-coin:hover .tech-coin__circle {
    transform: scale(1.12) translateY(-4px);
    box-shadow:
        0 0 0 1.5px rgba(255,255,255,0.22) inset,
        0 0 26px rgba(20, 70, 200, 0.42),
        0 12px 36px rgba(0,0,0,0.65);
}

.tech-coin__icon {
    width: 52px;
    height: 52px;
    color: #14b8a6;
    display: block;
    filter: drop-shadow(0 0 5px rgba(20, 184, 166, 0.45));
    flex-shrink: 0;
}

.tech-coin__name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #c8dff8;
    margin: 0 0 4px;
    letter-spacing: 0.03em;
}

.tech-coin__desc {
    font-size: 0.68rem;
    color: #7da8d4;
    margin: 0 0 8px;
    line-height: 1.4;
}

.tech-coin__dominio-wrap {
    width: 100%;
    max-width: 96px;
}

.tech-coin__dominio-bar {
    background: rgba(0,229,200,0.1);
    border-radius: 10px;
    height: 4px;
    overflow: hidden;
    margin-bottom: 3px;
}

.tech-coin__dominio-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #0284c7 0%, #00e5c8 100%);
}

.tech-coin__dominio-pct {
    font-size: 0.62rem;
    font-weight: 700;
    color: #00e5c8;
    text-align: center;
    display: block;
    letter-spacing: 0.06em;
}

/* Nav del carrusel de monedas */
.tw-carousel-wrap .owl-theme .owl-nav {
    position: absolute;
    top: 0; left: 0;
    width: 100%; bottom: 40px; height: auto;
    margin: 0 !important; padding: 0 10px;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.tw-carousel-wrap .owl-theme .owl-nav [class*='owl-'] {
    pointer-events: all;
    background: rgba(0,229,200,0.08) !important;
    border: 1px solid rgba(0,229,200,0.3) !important;
    color: #00e5c8 !important;
    border-radius: 50% !important;
    width: 38px; height: 38px;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    margin: 0 !important; flex-shrink: 0;
    transition: background 0.25s, box-shadow 0.25s;
}

.tw-carousel-wrap .owl-theme .owl-nav [class*='owl-']:hover {
    background: rgba(0,229,200,0.2) !important;
    box-shadow: 0 0 16px rgba(0,229,200,0.3);
}

.tw-carousel-wrap .owl-theme .owl-nav [class*='owl-'] svg {
    width: 17px; height: 17px; display: block;
}

.tw-carousel-wrap .owl-theme .owl-dots { margin-top: 16px !important; }

.tw-carousel-wrap .owl-theme .owl-dots .owl-dot span {
    background: rgba(0,229,200,0.25) !important;
    transition: background 0.25s, transform 0.25s;
}

.tw-carousel-wrap .owl-theme .owl-dots .owl-dot.active span,
.tw-carousel-wrap .owl-theme .owl-dots .owl-dot:hover span {
    background: #00e5c8 !important;
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .tech-coin__circle { width: 88px; height: 88px; }
    .tech-coin__icon { width: 44px; height: 44px; }
}

@media (max-width: 576px) {
    .tw-carousel-wrap .owl-carousel { padding: 0 44px; }
    .tech-coin__circle { width: 80px; height: 80px; }
    .tech-coin__icon { width: 40px; height: 40px; }
}
