/* CSS para Plugin GAM Registro Personal
   Prefixeado para evitar conflictos con el tema de WordPress */

.gam-registro-wrapper {
    --primary: #15803d;
    /* Verde institucional */
    --primary-bg: #f0fdf4;
    --border: #d1d5db;
    --bg-gray: #f9fafb;
    --text-dark: #111827;
    --text-gray: #4b5563;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-gray);
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    max-width: 1200px;
    margin: 20px auto;
}

.gam-registro-wrapper * {
    box-sizing: border-box;
}

/* HEADER */
.gam-header {
    background: white;
    border-bottom: 2px solid var(--primary);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.gam-header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gam-logo-box {
    width: 40px;
    height: 40px;
    background: #e5e7eb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #6b7280;
    font-weight: bold;
    border: 1px dashed #9ca3af;
}

.gam-app-title h1 {
    font-size: 18px;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.gam-app-title p {
    font-size: 11px;
    margin: 0;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* LAYOUT PRINCIPAL */
.gam-main-container {
    display: flex;
    padding: 15px;
    gap: 15px;
    flex-wrap: wrap;
    /* Permitir wrap en móviles */
}

/* SIDEBAR (IZQUIERDA) */
.gam-sidebar {
    width: 260px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gam-sidebar {
        width: 100%;
    }
}

.gam-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.gam-photo-circle {
    width: 120px;
    height: 120px;
    background: var(--bg-gray);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
}

.gam-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gam-btn-upload {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

/* CONTENT (DERECHA) */
.gam-content-area {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

/* FORM GRIDS */
.gam-section-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    border-bottom: 2px solid var(--bg-gray);
    padding-bottom: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gam-form-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    margin-bottom: 5px;
}

/* INPUTS */
.gam-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.col-12 {
    grid-column: span 12;
}

.col-8 {
    grid-column: span 8;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

.col-2 {
    grid-column: span 2;
}

.col-9 {
    grid-column: span 9;
}

/* Responsive Grid adjustment */
@media (max-width: 768px) {

    .col-6,
    .col-4,
    .col-3,
    .col-2,
    .col-8,
    .col-9 {
        grid-column: span 12 !important;
    }
}

.gam-registro-wrapper label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 3px;
    display: block;
}

.gam-registro-wrapper input,
.gam-registro-wrapper select,
.gam-registro-wrapper textarea {
    width: 100%;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--text-dark);
    font-family: inherit;
}

.gam-registro-wrapper textarea {
    height: auto;
}

.gam-registro-wrapper input:focus,
.gam-registro-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* AUTO FIELDS */
.gam-auto-field input {
    background-color: var(--primary-bg);
    border-color: #86efac;
    color: #14532d;
    font-weight: 500;
    pointer-events: none;
}

/* FOOTER ACTIONS */
.gam-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.gam-btn {
    height: 38px;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gam-btn-primary {
    background: var(--primary);
    color: white;
}

.gam-btn-primary:hover {
    background: #166534;
    color: white;
}

.gam-btn-secondary {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-gray);
}