/* ===== TECHNIQUES SECTION — v3 blanco, compacto, con profundidad sutil ===== */
.tq-section {
    --tq-primary: #2d4f95;
    --tq-accent: #d01341;
    --tq-gold: #b4935a;

    position: relative;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232d4f95' fill-opacity='0.35' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    color: #475569;
    padding: 80px 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    isolation: isolate;
}

/* ── fondo con profundidad, muy sutil sobre blanco ── */
.tq-bg-fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.tq-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.tq-blob--1 {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -100px;
    background: radial-gradient(circle, var(--tq-primary) 0%, transparent 70%);
    animation: tqFloat1 24s ease-in-out infinite;
}

.tq-blob--2 {
    width: 360px;
    height: 360px;
    bottom: -120px;
    left: -90px;
    background: radial-gradient(circle, var(--tq-accent) 0%, transparent 70%);
    opacity: 0.07;
    animation: tqFloat2 28s ease-in-out infinite;
}

@keyframes tqFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 25px) scale(1.08);
    }
}

@keyframes tqFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.06);
    }
}

.tq-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    background-image:
        linear-gradient(rgba(45, 79, 149, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 79, 149, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 30%, transparent 100%);
}

/* línea de electrocardiograma, discreta sobre blanco */
.tq-pulse-line {
    position: absolute;
    top: 8%;
    left: 0;
    width: 100%;
    height: 70px;
    opacity: 0.1;
}

.tq-pulse-path {
    fill: none;
    stroke: var(--tq-accent);
    stroke-width: 1.5;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: tqDrawPulse 6s linear infinite;
}

@keyframes tqDrawPulse {
    0% {
        stroke-dashoffset: 1600;
    }

    60% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -100;
    }
}

.tq-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ── reveal genérico ── */
[data-tq-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--tq-delay, 0ms), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--tq-delay, 0ms);
}

[data-tq-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── header, más compacto ── */
.tq-header {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.tq-overline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--tq-gold);
    font-family: monospace;
    font-size: 10.5px;
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tq-pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.tq-pulse-dot span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--tq-accent);
}

.tq-pulse-dot::before,
.tq-pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--tq-accent);
    animation: tqPulseRing 2.2s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

.tq-pulse-dot::after {
    animation-delay: 1.1s;
}

@keyframes tqPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.tq-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 400;
    line-height: 1.2;
    color: #0a1a35;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.tq-title em {
    font-style: italic;
    color: var(--tq-gold);
}

.tq-subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

/* ── grid de tarjetas, compacto ── */
.tq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.technique-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 24px 24px 20px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 16px 32px -20px rgba(45, 79, 149, 0.06);
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.technique-card:hover {
    border-color: rgba(180, 147, 90, 0.3);
    box-shadow:
        0 24px 48px -20px rgba(45, 79, 149, 0.1),
        0 0 0 1px rgba(45, 79, 149, 0.02);
}

/* spotlight que sigue el cursor, sutil sobre blanco */
.tq-card-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(280px circle at var(--tq-mx, 50%) var(--tq-my, 50%), rgba(180, 147, 90, 0.06), transparent 65%);
}

.technique-card:hover .tq-card-glow {
    opacity: 1;
}

/* anillo de pulso decorativo, más pequeño */
.tq-card-pulse-ring {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.tq-card-pulse-ring::before,
.tq-card-pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(208, 19, 65, 0.22);
    animation: tqPulseRing 2.6s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

.tq-card-pulse-ring::after {
    animation-delay: 1.3s;
}

.card-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.tq-icon-box {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: rgba(45, 80, 149, 0.337);
    border: 1px solid rgba(45, 80, 149, 0.851);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tq-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.technique-card:hover .tq-icon-box {
    background: var(--tq-primary);
    color: #fff;
    transform: rotate(-5deg) scale(1.06);
}

.tq-icon-box svg {
    width: 18px;
    height: 18px;
}

.card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16.5px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.card-body {
    position: relative;
    z-index: 2;
}

.card-body>p {
    font-size: 12.5px;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 14px;
}

.tq-indications {
    background: rgba(45, 79, 149, 0.025);
    border-left: 2px solid var(--tq-gold);
    border-radius: 0 8px 8px 0;
    padding: 9px 12px;
}

.tq-indications-label {
    display: block;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tq-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.tq-indications p {
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
    margin: 0;
}

.card-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.tq-time-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tq-time-track {
    width: 64px;
    height: 3px;
    background: rgba(45, 79, 149, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.tq-time-track span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--tq-accent), var(--tq-gold));
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

[data-tq-reveal].is-visible .tq-time-track span {
    width: var(--tq-time-w, 50%);
}

.tq-time-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.2px;
}

.tq-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(45, 79, 149, 0.05);
    border: 1px solid rgba(45, 79, 149, 0.12);
    color: var(--tq-primary);
    text-decoration: none;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tq-btn svg {
    width: 13px;
    transition: transform 0.25s ease;
}

.tq-btn:hover {
    background: var(--tq-accent);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(208, 19, 65, 0.22);
}

.tq-btn:hover svg {
    transform: translateX(2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .tq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tq-section {
        padding: 60px 0;
    }

    .tq-header {
        margin-bottom: 32px;
    }
}

@media (max-width: 560px) {
    .technique-card {
        padding: 20px 18px 16px;
    }

    .card-footer {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tq-blob,
    .tq-pulse-path,
    .tq-pulse-dot::before,
    .tq-pulse-dot::after,
    .tq-card-pulse-ring::before,
    .tq-card-pulse-ring::after {
        animation: none;
    }

    [data-tq-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tq-time-track span {
        width: var(--tq-time-w, 50%);
        transition: none;
    }
}