/* ═══════════════════════════════════════════
   ZARABANDA SHIELD — Components
   ═══════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn--secondary {
    background: rgba(0, 212, 255, 0.06);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.btn--secondary:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: var(--glow);
}

.btn--small {
    font-size: 0.8rem;
    padding: 0.55rem 1.4rem;
}

/* ── Cards ── */
.card {
    background: var(--panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.3s var(--ease-out);
}

.card:hover {
    border-color: var(--border2);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.card--featured {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.card--gold {
    border-color: rgba(255, 209, 102, 0.35);
}

.card--gold:hover {
    box-shadow: 0 0 30px rgba(255, 209, 102, 0.15);
}

.card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card__title {
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.card__body {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
}

.card__label {
    font-family: var(--font-m);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ── Stat Cards ── */
.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card__number {
    font-family: var(--font-h);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}

.stat-card__number--red {
    color: var(--red);
}

.stat-card__number--gold {
    color: var(--gold);
}

.stat-card__number--white {
    color: var(--white);
}

.stat-card__label {
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 0.4rem;
}

.stat-card__source {
    font-family: var(--font-m);
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-family: var(--font-m);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge--green {
    background: rgba(0, 245, 196, 0.15);
    color: var(--cyan2);
    border: 1px solid rgba(0, 245, 196, 0.3);
}

.badge--red {
    background: rgba(255, 45, 85, 0.15);
    color: var(--red);
    border: 1px solid rgba(255, 45, 85, 0.3);
}

.badge--yellow {
    background: rgba(255, 209, 102, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 209, 102, 0.3);
}

/* ── Data Table ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.data-table thead tr {
    background: rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-family: var(--font-m);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.9rem 1rem;
    text-align: left;
}

.data-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    color: var(--text);
    border-top: 1px solid rgba(0, 212, 255, 0.05);
}

.data-table tr.highlight td {
    background: rgba(0, 212, 255, 0.04);
}

.data-table tr.highlight td:first-child {
    color: var(--cyan);
    font-weight: 700;
}

/* ── Skill Bars ── */
.skill {
    margin-bottom: 1rem;
}

.skill__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.skill__name {
    font-size: 0.85rem;
    color: var(--text);
}

.skill__pct {
    font-family: var(--font-h);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
}

.skill__bar {
    height: 6px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-radius: 3px;
    width: 0;
    transition: width 1.2s var(--ease-out);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--blue), transparent);
}

.timeline__item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.timeline__dot {
    position: absolute;
    left: -3rem;
    top: 0.3rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg2);
    border: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--cyan);
    z-index: 1;
}

.timeline__dot--done {
    background: var(--cyan);
    color: var(--bg);
}

.timeline__month {
    font-family: var(--font-m);
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.timeline__text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

/* ── Highlight Box ── */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 102, 255, 0.06));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    padding: 1.5rem 2rem;
}

.highlight-box__text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
}

/* ── Chart Container ── */
.chart-container {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    position: relative;
}

.chart-container__label {
    font-family: var(--font-m);
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.chart-container canvas {
    max-height: 280px;
}

/* ── Trust Bar ── */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}

.trust-bar__item {
    font-family: var(--font-m);
    font-size: 0.75rem;
    color: var(--muted);
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s;
}

.trust-bar__item:hover {
    color: var(--cyan);
    border-color: var(--border2);
}

/* ── Form Elements ── */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    font-family: var(--font-m);
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-b);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Profile Selector ── */
.profile-selector {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-btn {
    flex: 1;
    min-width: 160px;
    padding: 0.9rem 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-family: var(--font-h);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.profile-btn:hover {
    border-color: var(--border2);
    color: var(--text);
}

.profile-btn.active {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1.2rem 2rem;
    background: rgba(5, 15, 32, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__text {
    font-size: 0.85rem;
    color: var(--text);
    flex: 1;
}

.cookie-banner__text a {
    color: var(--cyan);
    text-decoration: none;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

/* ── Separator ── */
.sep {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-radius: 2px;
    margin: 1.5rem 0;
}

.sep.centered {
    margin-left: auto;
    margin-right: auto;
}

/* ── Architecture Diagram ── */
.arch-diagram {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    font-family: var(--font-m);
    font-size: 0.8rem;
    color: var(--text);
}

.arch-layer {
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.arch-layer__title {
    font-family: var(--font-h);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.arch-layer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.arch-module {
    padding: 0.6rem 1rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-m);
    font-size: 0.75rem;
    color: var(--text);
}

.arch-connector {
    text-align: center;
    padding: 0.5rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.arch-connector::before {
    content: '│';
    display: block;
    color: var(--cyan);
    font-size: 1.2rem;
}

/* ── Pricing Cards ── */
.pricing-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--border2);
}

.pricing-card--featured {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
    position: relative;
}

.pricing-card--featured::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-m);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--white);
    border-radius: 100px;
}

.pricing-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-card__name {
    font-family: var(--font-h);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.pricing-card__features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    flex: 1;
}

.pricing-card__features li {
    font-size: 0.88rem;
    color: var(--text);
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card__features li::before {
    content: '✓';
    color: var(--cyan2);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Quote Block ── */
.quote-block {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.quote-block__text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.quote-block__author {
    font-family: var(--font-m);
    font-size: 0.8rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-selector {
        flex-direction: column;
    }

    .data-table th:nth-child(n+4),
    .data-table td:nth-child(n+4) {
        display: none;
    }
}