/* WhatAPI - Sección proyecto destacado (tema claro, acorde al sitio) */
.whatapi-showcase {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    margin: 30px 20px;
    border-radius: 24px;
    background: #ecf6fa;
    color: #0e2258;
    box-shadow: 0 8px 32px rgba(5, 84, 242, 0.08);
}

.whatapi-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    pointer-events: none;
}

.whatapi-glow-1 {
    width: 420px;
    height: 420px;
    background: #25D366;
    top: -120px;
    right: -80px;
    animation: whatapi-pulse 6s ease-in-out infinite;
}

.whatapi-glow-2 {
    width: 320px;
    height: 320px;
    background: #0554f2;
    bottom: -100px;
    left: -60px;
    animation: whatapi-pulse 8s ease-in-out infinite reverse;
}

@keyframes whatapi-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.45; }
}

.whatapi-info {
    position: relative;
    z-index: 2;
}

.whatapi-badge {
    display: inline-block;
    background: #0554f2;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.whatapi-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.whatapi-brand i {
    font-size: 36px;
    color: #25D366;
}

.whatapi-brand span {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0e2258;
}

.whatapi-showcase h2 {
    color: #0e2258;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

.whatapi-showcase .whatapi-desc {
    color: #5a6a85;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.whatapi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.whatapi-tags span {
    background: #ffffff;
    border: 1px solid rgba(5, 84, 242, 0.25);
    color: #0554f2;
    font-family: "Courier New", monospace;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(5, 84, 242, 0.08);
}

.whatapi-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 35px;
}

.whatapi-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e0eaf5;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #0e2258;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(5, 84, 242, 0.06);
}

.whatapi-feature-item:hover {
    background: #ffffff;
    border-color: rgba(5, 84, 242, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 84, 242, 0.12);
}

.whatapi-feature-item i {
    color: #25D366;
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.whatapi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-whatapi-primary {
    display: inline-block;
    background: #0554f2;
    color: #fff !important;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(5, 84, 242, 0.3);
}

.btn-whatapi-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(5, 84, 242, 0.4);
    color: #fff;
    background: #0446d0;
}

.btn-whatapi-outline {
    display: inline-block;
    background: #ffffff;
    color: #0554f2 !important;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 30px;
    border: 2px solid #0554f2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatapi-outline:hover {
    border-color: #0554f2;
    color: #fff !important;
    background: #0554f2;
}

/* Terminal demo */
.whatapi-demo {
    position: relative;
    z-index: 2;
}

.whatapi-demo-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.whatapi-demo-tab {
    flex: 1;
    background: #ffffff;
    border: 1px solid #dce8f5;
    color: #5a6a85;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatapi-demo-tab i {
    margin-right: 6px;
}

.whatapi-demo-tab:hover {
    background: #f5f9ff;
    color: #0554f2;
    border-color: rgba(5, 84, 242, 0.3);
}

.whatapi-demo-tab.active {
    background: #0554f2;
    border-color: #0554f2;
    color: #ffffff;
}

.whatapi-tab-panel {
    display: none;
    position: relative;
}

.whatapi-tab-panel.active {
    display: block;
}

.whatapi-terminal-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.whatapi-status-bar {
    display: flex;
    gap: 12px;
}

.whatapi-status-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e0eaf5;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 10px rgba(5, 84, 242, 0.06);
}

.whatapi-status-pill strong {
    display: block;
    font-size: 13px;
    color: #0e2258;
    line-height: 1.2;
}

.whatapi-status-pill small {
    font-size: 11px;
    color: #5a6a85;
}

.whatapi-status-pill i {
    font-size: 18px;
    color: #25D366;
    flex-shrink: 0;
}

.whatapi-status-ok .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #25D366;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.8);
    animation: whatapi-pulse-dot 2s ease-in-out infinite;
}

@keyframes whatapi-pulse-dot {
    0%, 100% { box-shadow: 0 0 6px rgba(37, 211, 102, 0.6); }
    50% { box-shadow: 0 0 14px rgba(37, 211, 102, 1); }
}

.whatapi-terminal {
    background: #1e2a3a;
    border: 1px solid #2d3f55;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(5, 84, 242, 0.15);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header span:nth-child(1) { background: #ff5f57; }
.terminal-header span:nth-child(2) { background: #febc2e; }
.terminal-header span:nth-child(3) { background: #28c840; }

.terminal-header p {
    margin: 0 0 0 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.terminal-body {
    padding: 22px;
    font-family: "Courier New", Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
    min-height: 300px;
    max-height: 340px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.terminal-output {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: inherit;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: none;
}

.terminal-body .t-method {
    color: #25D366;
    font-weight: 700;
}

.terminal-body .t-url {
    color: #6cb6ff;
}

.terminal-body .t-key {
    color: #f97583;
}

.terminal-body .t-string {
    color: #9ecbff;
}

.terminal-body .t-comment {
    color: rgba(255, 255, 255, 0.35);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #25D366;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: whatapi-blink 1s step-end infinite;
}

@keyframes whatapi-blink {
    50% { opacity: 0; }
}

/* Dashboard mock preview */
.dashboard-browser {
    background: #f0f2f5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e8eaed;
    border-bottom: 1px solid #d0d4d9;
}

.browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.browser-bar span:nth-child(1) { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    margin-left: 12px;
    background: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: #555;
    font-family: monospace;
}

.browser-url i {
    color: #25D366;
    margin-right: 6px;
    font-size: 10px;
}

.dashboard-mock {
    display: flex;
    min-height: 380px;
    font-size: 12px;
}

.dash-sidebar {
    width: 160px;
    background: #1a2332;
    padding: 16px 0;
    flex-shrink: 0;
}

.dash-logo {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    padding: 0 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.dash-logo span {
    font-size: 13px;
    font-weight: 600;
}

.dash-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.2s;
}

.dash-sidebar nav a.active,
.dash-sidebar nav a:hover {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.dash-main {
    flex: 1;
    padding: 16px;
    background: #f5f7fa;
    overflow: hidden;
}

.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dash-topbar h3 {
    margin: 0;
    font-size: 16px;
    color: #1a2332;
    font-weight: 700;
}

.dash-user {
    font-size: 11px;
    color: #666;
}

.dash-status-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.dash-status-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-status-card i {
    font-size: 18px;
    color: #0554f2;
}

.dash-status-ok i {
    color: #25D366;
}

.dash-status-card strong {
    display: block;
    font-size: 11px;
    color: #1a2332;
}

.dash-status-card small {
    font-size: 10px;
    color: #888;
}

.dash-green {
    color: #25D366 !important;
    font-weight: 600;
}

.dash-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.dash-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-card h4 {
    margin: 0 0 8px;
    font-size: 11px;
    color: #1a2332;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-copy {
    font-size: 9px;
    color: #0554f2;
    font-weight: 600;
    cursor: pointer;
}

.dash-card code {
    display: block;
    background: #f0f2f5;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 9px;
    color: #333;
    margin-bottom: 10px;
    word-break: break-all;
}

.dash-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #888;
    margin-bottom: 4px;
}

.dash-progress-bar {
    height: 5px;
    background: #e8eaed;
    border-radius: 3px;
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #25D366, #128C7E);
    border-radius: 3px;
    transition: width 1.5s ease-out;
}

.dash-progress-blue {
    background: linear-gradient(90deg, #0554f2, #3d8bfd);
}

.dash-table-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1a2332;
}

.dash-btn-sm {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.dash-table th {
    text-align: left;
    padding: 6px 8px;
    color: #888;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    font-size: 9px;
    text-transform: uppercase;
}

.dash-table td {
    padding: 8px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.dash-badge-ok {
    background: rgba(37, 211, 102, 0.15);
    color: #128C7E;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
}

.dashboard-live-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: #0554f2 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.dashboard-live-link:hover {
    color: #0446d0 !important;
}

@media (max-width: 991px) {
    .whatapi-showcase {
        padding: 70px 0;
        margin: 20px 12px;
        border-radius: 18px;
    }

    .whatapi-showcase h2 {
        font-size: 28px;
    }

    .whatapi-demo {
        margin-top: 50px;
    }

    .whatapi-status-bar {
        flex-direction: column;
    }

    .whatapi-features {
        grid-template-columns: 1fr;
    }

    .dash-status-row,
    .dash-cards-row {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }
}
