.nervio-form {
    max-width: 700px;
    margin: 2rem auto;
    font-family: inherit;
    line-height: 1.6;
}

.nervio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4%;
}

.nervio-field {
    margin-bottom: 1.8rem;
    width: 100%;
    box-sizing: border-box;
}

.nervio-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: inherit;
    text-transform: none !important;
}

.nervio-field input[type="text"],
.nervio-field input[type="email"],
.nervio-field input[type="url"],
.nervio-field input[type="number"],
.nervio-field select,
.nervio-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s ease;
    text-transform: none !important;
}

.nervio-field input:focus,
.nervio-field select:focus,
.nervio-field textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.nervio-field textarea {
    resize: vertical;
    min-height: 120px;
}

.nervio-field input[type="file"] {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border: none;
    background: transparent;
}

.nervio-field select {
    appearance: auto;
    cursor: pointer;
}

/* Anchos */
.nervio-wide {
    flex: 0 0 100%;
}

.nervio-half {
    flex: 0 0 48%;
}

.nervio-short {
    flex: 0 0 120px;
}

@media (max-width: 600px) {
    .nervio-half,
    .nervio-short {
        flex: 0 0 100%;
    }
}

/* Uploader */
.nervio-uploader {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 1.2rem;
    background: #fafafa;
    transition: border-color 0.2s;
}

.nervio-uploader:hover {
    border-color: #999;
}

.nervio-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
    min-height: 0;
}

.nervio-file-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nervio-file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nervio-file-item .ns-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nervio-file-item .ns-remove:hover {
    background: rgba(200,0,0,0.8);
}

.nervio-file-item span {
    display: none;
}

.nervio-add-file {
    background: #fff;
    border: 1px solid #bbb;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    border-radius: 4px;
    transition: all 0.2s;
}

.nervio-add-file:hover {
    border-color: #000;
    background: #f5f5f5;
}

.nervio-add-file:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Checkbox */
.nervio-field-check {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.nervio-check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 400 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    text-transform: none !important;
    cursor: pointer;
}

.nervio-check input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    cursor: pointer;
    flex-shrink: 0;
}

.nervio-hint {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Botón */
.nervio-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    transition: opacity 0.2s ease;
    text-transform: none !important;
}

.nervio-btn:hover {
    opacity: 0.85;
}

.nervio-mensaje {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    display: none;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    text-transform: none !important;
}

.nervio-mensaje.success {
    background: #e8f5e9;
    color: #1b5e20;
    display: block;
    border-left: 4px solid #2e7d32;
}

.nervio-mensaje.error {
    background: #ffebee;
    color: #b71c1c;
    display: block;
    border-left: 4px solid #c62828;
}
