/* =======================================================
   PROYECTO CAMPEÓN V4
======================================================= */

#pc-app {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 24px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.pc-header {
    margin-bottom: 22px;
    text-align: center;
}

.pc-header h2 {
    margin: 0 0 10px;
    color: #003a70;
    font-size: 34px;
    line-height: 1.2;
}

.pc-header p {
    margin: 0;
    color: #5f5f5f;
    font-size: 18px;
    line-height: 1.5;
}

.pc-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 650px;
    margin: 0 auto 28px;
    padding: 13px 18px;
    border: 1px solid #dcecff;
    border-radius: 12px;
    background: #f4f9ff;
    color: #003a70;
    text-align: center;
    font-size: 17px;
}

.pc-counter-icon {
    font-size: 20px;
}

#pc-counter-number {
    color: #0066e6;
    font-size: 20px;
}

.pc-controls {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 24px;
}

.pc-field {
    display: flex;
    flex: 1;
    flex-direction: column;
    max-width: 350px;
}

.pc-field label {
    margin-bottom: 9px;
    color: #555;
    font-size: 17px;
    font-weight: 700;
}

.pc-field input[type="text"] {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #c9c9c9;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-size: 20px;
}

.pc-field input[type="text"]:focus {
    border-color: #0066e6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 230, 0.13);
}

.pc-field input[type="file"] {
    min-height: 54px;
    padding: 11px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
    font-size: 15px;
}

.pc-instructions {
    margin-bottom: 20px;
    color: #777;
    text-align: center;
    font-size: 16px;
}

#pc-workspace {
    display: flex;
    justify-content: center;
    width: 100%;
}

#pcCanvas {
    display: block;
    width: 700px;
    max-width: 100%;
    height: auto;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    cursor: default;
    touch-action: none;
    user-select: none;
}

.pc-photo-tools {
    max-width: 700px;
    margin: 24px auto 0;
}

.pc-zoom-control {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 13px;
    color: #666;
    font-size: 14px;
}

#pc-zoom {
    width: 100%;
    cursor: pointer;
    accent-color: #0066e6;
}

.pc-secondary-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.pc-secondary-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #0066e6;
    border-radius: 8px;
    background: #fff;
    color: #0054bd;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.pc-secondary-button:hover {
    background: #f0f6ff;
}

.pc-buttons {
    display: flex;
    justify-content: center;
    gap: 13px;
    margin-top: 26px;
}

.pc-primary-button,
.pc-share-button {
    min-width: 190px;
    min-height: 52px;
    padding: 13px 25px;
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.pc-primary-button {
    background: #0066e6;
}

.pc-primary-button:hover {
    background: #004fb5;
}

.pc-share-button {
    background: #00a859;
}

.pc-share-button:hover {
    background: #008c4b;
}

.pc-message {
    min-height: 24px;
    margin: 16px 0 0;
    color: #555;
    text-align: center;
    font-size: 15px;
}

.pc-primary-button:disabled,
.pc-share-button:disabled,
.pc-secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* =======================================================
   CELULAR
======================================================= */

@media (max-width: 768px) {

    #pc-app {
        margin: 20px auto;
        padding: 15px;
    }

    .pc-header h2 {
        font-size: 27px;
    }

    .pc-header p {
        font-size: 16px;
    }

    .pc-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .pc-field {
        width: 100%;
        max-width: none;
    }

    #pcCanvas {
        width: 100%;
    }

    .pc-zoom-control {
        grid-template-columns: 1fr;
        gap: 7px;
        text-align: center;
    }

    .pc-secondary-buttons,
    .pc-buttons {
        flex-direction: column;
    }

    .pc-secondary-button,
    .pc-primary-button,
    .pc-share-button {
        width: 100%;
    }
}