/* ========================================
   VentanaPlus Presupuesto - Main Styles
   ======================================== */

.vpp-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vpp-wrapper * {
    box-sizing: border-box;
}

/* ========================================
   HEADER
   ======================================== */
.vpp-header {
    text-align: center;
    margin-bottom: 40px;
}

.vpp-title {
    font-size: 2em;
    font-weight: 700;
    color: #000066;
    margin: 0 0 10px;
}

.vpp-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* ========================================
   CATEGORY GRID
   ======================================== */
.vpp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.vpp-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vpp-card:hover {
    border-color: #2AB9AD;
    box-shadow: 0 8px 30px rgba(42, 185, 173, 0.15);
    transform: translateY(-4px);
}

.vpp-card.active {
    border-color: #2AB9AD;
    background: linear-gradient(135deg, rgba(42,185,173,0.05), rgba(42,185,173,0.02));
    box-shadow: 0 4px 20px rgba(42, 185, 173, 0.2);
}

.vpp-card-icon {
    margin-bottom: 15px;
}

.vpp-card-icon svg {
    width: 48px;
    height: 48px;
}

.vpp-card-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #000066;
    margin: 0 0 6px;
}

.vpp-card-desc {
    font-size: 0.85em;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.vpp-card-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #2AB9AD, #1a9a8f);
    color: #fff;
    font-size: 0.72em;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vpp-card-badge.vpp-badge-nuevo {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

/* ========================================
   SECTION CONTAINER
   ======================================== */
.vpp-section-container {
    animation: vppFadeIn 0.4s ease;
}

@keyframes vppFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vpp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 18px;
    color: #666;
    font-size: 0.9em;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.vpp-back-btn:hover {
    border-color: #2AB9AD;
    color: #2AB9AD;
}

/* ========================================
   FORM STYLES
   ======================================== */
.vpp-form-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #000066;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2AB9AD;
}

.vpp-form {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 30px;
}

.vpp-specs-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e0e0e0;
}

.vpp-field-row {
    margin-bottom: 18px;
}

.vpp-field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vpp-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.vpp-field label .required {
    color: #e74c3c;
}

.vpp-field input[type="text"],
.vpp-field input[type="email"],
.vpp-field input[type="tel"],
.vpp-field input[type="number"],
.vpp-field select,
.vpp-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.95em;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 44px;
}

.vpp-field input:focus,
.vpp-field select:focus,
.vpp-field textarea:focus {
    border-color: #2AB9AD;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 185, 173, 0.12);
}

.vpp-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* ========================================
   TYPE SELECTOR GRID (SVG cards)
   ======================================== */
.vpp-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.vpp-type-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 8px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vpp-type-card:hover {
    border-color: #2AB9AD;
    box-shadow: 0 4px 12px rgba(42,185,173,0.15);
    transform: translateY(-2px);
}

.vpp-type-card.selected {
    border-color: #2AB9AD;
    background: linear-gradient(135deg, rgba(42,185,173,0.06), rgba(42,185,173,0.02));
    box-shadow: 0 2px 10px rgba(42,185,173,0.2);
}

.vpp-type-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 8px;
    background: #2AB9AD;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
}

.vpp-type-card {
    position: relative;
}

.vpp-type-card svg {
    max-width: 100%;
    height: auto;
}

.vpp-type-card span {
    font-size: 0.78em;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.vpp-type-card.selected span {
    color: #2AB9AD;
}

/* Conditional fields */
.vpp-conditional {
    padding: 15px;
    margin-top: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #ddd;
    animation: vppFadeIn 0.3s ease;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.vpp-contact-section {
    margin-top: 20px;
}

.vpp-contact-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #000066;
    margin: 0 0 18px;
}

.vpp-field-check {
    display: flex;
    align-items: flex-end;
}

.vpp-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500 !important;
    color: #555 !important;
    padding: 10px 0;
}

.vpp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2AB9AD;
}

/* ========================================
   SUBMIT
   ======================================== */
.vpp-submit-row {
    margin-top: 25px;
    text-align: center;
}

.vpp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vpp-btn-primary {
    background: linear-gradient(135deg, #2AB9AD, #1a9a8f);
    color: #fff;
    min-width: 280px;
}

.vpp-btn-primary:hover {
    background: linear-gradient(135deg, #239e94, #158a80);
    box-shadow: 0 4px 15px rgba(42, 185, 173, 0.3);
    transform: translateY(-2px);
}

.vpp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vpp-privacy {
    font-size: 0.82em;
    color: #999;
    margin-top: 10px;
}

/* ========================================
   MESSAGE
   ======================================== */
.vpp-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    animation: vppFadeIn 0.3s ease;
}

.vpp-message.success {
    background: #e8f8f5;
    border: 1px solid #2AB9AD;
    color: #1a7a70;
}

.vpp-message.error {
    background: #fef2f2;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .vpp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .vpp-title {
        font-size: 1.5em;
    }

    .vpp-form {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .vpp-header {
        margin-bottom: 25px;
    }

    .vpp-form-title {
        font-size: 1.3em;
        margin-bottom: 18px;
    }

    .vpp-field input[type="text"],
    .vpp-field input[type="email"],
    .vpp-field input[type="tel"],
    .vpp-field input[type="number"],
    .vpp-field select {
        font-size: 16px;
        padding: 10px 12px;
    }

    .vpp-form {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .vpp-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vpp-card {
        padding: 20px 15px;
    }

    .vpp-field-row-2 {
        grid-template-columns: 1fr;
    }

    .vpp-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .vpp-wrapper {
        padding: 10px;
    }

    .vpp-form {
        padding: 15px;
        border-radius: 12px;
    }

    .vpp-btn-primary {
        min-width: 100%;
    }

    .vpp-card-icon svg {
        width: 40px;
        height: 40px;
    }

    .vpp-card-title {
        font-size: 1em;
    }

    .vpp-card-desc {
        font-size: 0.8em;
    }

    .vpp-back-btn {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    .vpp-contact-title {
        font-size: 1em;
    }

    .vpp-submit-row .vpp-btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 400px) {
    .vpp-wrapper {
        padding: 6px;
    }

    .vpp-form {
        padding: 12px;
        border-radius: 10px;
    }

    .vpp-specs-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .vpp-field label {
        font-size: 0.85em;
    }

    .vpp-title {
        font-size: 1.3em;
    }

    .vpp-subtitle {
        font-size: 0.9em;
    }
}
