/* ==============================
   GESTORÍA WP — Pleasant Design
   ============================== */

.gestoria-wrap {
    max-width: 720px;
    margin: 2em auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #1a1a2e;
}

/* ========== HEADER ========== */
.gestoria-header {
    text-align: center;
    padding: 32px 24px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    color: #fff;
}

.gestoria-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.gestoria-header p {
    margin: 0;
    font-size: 15px;
    opacity: .85;
}

/* ========== BODY ========== */
.gestoria-body {
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 40px rgba(102,126,234,.12);
    padding: 28px 28px 32px;
}

@media (max-width: 600px) {
    .gestoria-body { padding: 20px 16px; }
    .gestoria-header { padding: 24px 16px 20px; }
    .gestoria-header h2 { font-size: 21px; }
}

/* ========== SECTIONS ========== */
.gsection {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f2f5;
}
.gsection:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.gsection-title {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gsection-title span { font-size: 16px; }

/* ========== SERVICE CARDS ========== */
.glist { display: grid; gap: 8px; }

.gcard, .gcard-a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fafbff;
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s ease;
}

.gcard:hover, .gcard-a:hover {
    border-color: #667eea;
    background: #f5f7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102,126,234,.1);
}

.gcard.sel, .gcard-a.sel {
    border-color: #667eea;
    background: linear-gradient(135deg, #f5f7ff, #fff);
    box-shadow: 0 0 0 3px rgba(102,126,234,.12);
}

.gcard-icon, .gcard-av {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 18px;
}

.gcard-av { border-radius: 50%; }

.gcard-body { flex: 1; min-width: 0; }

.gcard-name {
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
    color: #1a1a2e;
}

.gcard-meta { display: flex; gap: 6px; flex-wrap: wrap; }

.gbadge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.gbadge-time { background: #eef2ff; color: #4f46e5; }
.gbadge-price { background: #ecfdf5; color: #059669; }
.gbadge-free { background: #fef3c7; color: #d97706; }

.gcard-a .gcard-body span {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 1px;
}

.gcard-check {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: all .2s ease;
}

.gcard.sel .gcard-check,
.gcard-a.sel .gcard-check {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}

/* ========== DATE & SLOTS ========== */
.gdt {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.gdt-date { flex: 0 0 200px; }

.glabel {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}

.gdt-date input[type="date"] {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fafbff;
    transition: border-color .25s;
    box-sizing: border-box;
}

.gdt-date input[type="date"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,.1);
    outline: none;
}

.gdt-slots { flex: 1; min-width: 260px; }

.gslots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gslot {
    padding: 9px 16px;
    border: 2px solid #e8ecf4;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    transition: all .2s ease;
    color: #1a1a2e;
}

.gslot:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.gslot.sel {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
    box-shadow: 0 3px 10px rgba(102,126,234,.25);
}

/* ========== FIELDS ========== */
.gfields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.gfld { margin: 0; }

.gfld input {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #e8ecf4;
    border-radius: 10px;
    font-size: 14px;
    background: #fafbff;
    transition: all .25s ease;
    color: #1a1a2e;
    box-sizing: border-box;
}

.gfld input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,.1);
    outline: none;
}

.gfld input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.gerr {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 500;
}

/* ========== MUTED ========== */
.gmuted {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 20px;
    background: #fafbff;
    border-radius: 10px;
    border: 2px dashed #e8ecf4;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* ========== BUTTON ========== */
.gbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    transition: all .25s ease;
    text-decoration: none;
    line-height: 1.3;
    width: 100%;
    margin-top: 20px;
}

.gbtn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(102,126,234,.25);
}

.gbtn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(102,126,234,.35);
}

.gbtn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.glegal {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
}

/* ========== MESSAGES ========== */
#gmsg {
    border-radius: 12px;
    margin: 12px 0 0;
    display: none;
    overflow: hidden;
}

#gmsg p { margin: 0; padding: 14px 18px; font-size: 14px; font-weight: 500; }
#gmsg.error { background: #fef2f2; border: 1px solid #fca5a5; }
#gmsg.error p { color: #991b1b; }

/* Success */
.gok { text-align: center; padding: 24px; }
.gok-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #ecfdf5; color: #10b981; font-size: 30px; align-items: center; justify-content: center; margin-bottom: 14px; font-weight: 700; }
.gok h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #1a1a2e; }
.gok p { margin: 0; color: #64748b; font-size: 14px; }

/* ========== reCAPTCHA ========== */
.grecaptcha-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0 0;
}

/* ========== LOADING ========== */
.gloading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: #64748b;
    font-size: 13px;
    justify-content: center;
    background: #fafbff;
    border-radius: 10px;
    border: 2px dashed #e8ecf4;
}

.gspin {
    width: 20px; height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: gspins .6s linear infinite;
    display: inline-block;
}

@keyframes gspins { to { transform: rotate(360deg); } }

/* ========== MY CITAS ========== */
.gestoria-my-citas { max-width: 920px; }

.gestoria-citas-form {
    background: #fafbff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e8ecf4;
}

.gestoria-input {
    padding: 11px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color .2s;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}
.gestoria-input:focus { border-color: #667eea; outline: none; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }

.gestoria-btn {
    padding: 11px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gestoria-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.gestoria-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,.3);
}

.gestoria-citas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.gestoria-citas-table th, .gestoria-citas-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f5;
    text-align: left;
    font-size: 14px;
}

.gestoria-citas-table th { background: #f5f7ff; font-weight: 600; color: #1a1a2e; }
.gestoria-citas-table tr:last-child td { border-bottom: none; }
.gestoria-citas-table tr:hover td { background: #fafbff; }

.gestoria-cancel-link {
    color: #ef4444;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.gestoria-cancel-link:hover { text-decoration: underline; }
